udp-react-enterprise-component-library 27.0.0-next.11 → 27.0.0-next.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/UI/feedback/PageLoading.d.ts +11 -1
- package/dist/UI/feedback/PageLoading.d.ts.map +1 -1
- package/dist/UI/feedback/PageLoading.js +12 -12
- package/dist/UI/feedback/PageLoading.js.map +1 -1
- package/dist/UI/feedback/PageLoading.mjs +35 -21
- package/dist/UI/feedback/PageLoading.mjs.map +1 -1
- package/dist/UI/feedback/PageLoading.module.css +9 -0
- package/dist/UI/fluent-web-components/UdpIconPicker.d.ts +4 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.js +2 -2
- package/dist/UI/fluent-web-components/UdpIconPicker.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.mjs +32 -28
- package/dist/UI/fluent-web-components/UdpIconPicker.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.d.ts +6 -0
- package/dist/UI/fluent-web-components/UdpLink.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.mjs.map +1 -1
- package/dist/UI/fluent-web-components/index.d.ts +10 -0
- package/dist/UI/fluent-web-components/index.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/index.js +10 -0
- package/dist/UI/fluent-web-components/index.js.map +1 -1
- package/dist/UI/fluent-web-components/shell/UdpShell.d.ts +10 -0
- package/dist/UI/fluent-web-components/shell/UdpShell.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShell.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShell.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShell.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShell.mjs.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.d.ts +11 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.mjs.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.d.ts +16 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.mjs.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.d.ts +21 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.mjs.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.d.ts +10 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.mjs.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.d.ts +13 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.mjs.map +1 -0
- package/dist/UI/fluent-web-components/types.d.ts +2 -0
- package/dist/UI/fluent-web-components/types.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts +16 -3
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js +36 -13
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs +119 -62
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/index.mjs +3 -2
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts +9 -2
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js +18 -18
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs +79 -67
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts +8 -2
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js +32 -16
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs +129 -102
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts +3 -2
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js +11 -12
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs +6 -4
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts +2 -19
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js +4 -5
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs +5 -4
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs.map +1 -1
- package/dist/actionPanels/index.d.ts +0 -2
- package/dist/actionPanels/index.d.ts.map +1 -1
- package/dist/actionPanels/index.js +0 -2
- package/dist/actionPanels/index.js.map +1 -1
- package/dist/actionPanels/panelActionFields.d.ts +9 -26
- package/dist/actionPanels/panelActionFields.d.ts.map +1 -1
- package/dist/actionPanels/panelActionFields.js +32 -55
- package/dist/actionPanels/panelActionFields.js.map +1 -1
- package/dist/actionPanels/panelActionFields.mjs +159 -375
- package/dist/actionPanels/panelActionFields.mjs.map +1 -1
- package/dist/actionPanels/panelOperations.d.ts +15 -41
- package/dist/actionPanels/panelOperations.d.ts.map +1 -1
- package/dist/actionPanels/panelOperations.js +51 -89
- package/dist/actionPanels/panelOperations.js.map +1 -1
- package/dist/actionPanels/panelOperations.mjs +37 -92
- package/dist/actionPanels/panelOperations.mjs.map +1 -1
- package/dist/aiAssistant/aiFeatures.d.ts +1 -1
- package/dist/aiAssistant/aiFeatures.d.ts.map +1 -1
- package/dist/aiAssistant/aiFeatures.js +5 -0
- package/dist/aiAssistant/aiFeatures.js.map +1 -1
- package/dist/aiAssistant/aiFeatures.mjs +5 -1
- package/dist/aiAssistant/aiFeatures.mjs.map +1 -1
- package/dist/dashboard/DashboardWidget.d.ts.map +1 -1
- package/dist/dashboard/DashboardWidget.js +1 -1
- package/dist/dashboard/DashboardWidget.js.map +1 -1
- package/dist/dashboard/DashboardWidget.mjs +24 -21
- package/dist/dashboard/DashboardWidget.mjs.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.d.ts +15 -2
- package/dist/domain/actionPanel/actionTypeMeta.d.ts.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.js +21 -2
- package/dist/domain/actionPanel/actionTypeMeta.js.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.mjs +18 -3
- package/dist/domain/actionPanel/actionTypeMeta.mjs.map +1 -1
- package/dist/domain/actionPanel/buttonOrder.d.ts +67 -0
- package/dist/domain/actionPanel/buttonOrder.d.ts.map +1 -0
- package/dist/domain/actionPanel/buttonOrder.js +105 -0
- package/dist/domain/actionPanel/buttonOrder.js.map +1 -0
- package/dist/domain/actionPanel/buttonOrder.mjs +90 -0
- package/dist/domain/actionPanel/buttonOrder.mjs.map +1 -0
- package/dist/domain/actionPanel/index.d.ts +1 -0
- package/dist/domain/actionPanel/index.d.ts.map +1 -1
- package/dist/domain/actionPanel/index.js +1 -0
- package/dist/domain/actionPanel/index.js.map +1 -1
- package/dist/domain/actionPanel/index.mjs +4 -3
- package/dist/domain/actionPanel/serialize.d.ts +6 -2
- package/dist/domain/actionPanel/serialize.d.ts.map +1 -1
- package/dist/domain/actionPanel/serialize.js +10 -3
- package/dist/domain/actionPanel/serialize.js.map +1 -1
- package/dist/domain/actionPanel/serialize.mjs +7 -3
- package/dist/domain/actionPanel/serialize.mjs.map +1 -1
- package/dist/domain/actionPanel/types.d.ts +24 -8
- package/dist/domain/actionPanel/types.d.ts.map +1 -1
- package/dist/domain/actionPanel/types.js.map +1 -1
- package/dist/domain/actionPanel/types.mjs.map +1 -1
- package/dist/domain/inquiryTree/describe.d.ts +15 -3
- package/dist/domain/inquiryTree/describe.d.ts.map +1 -1
- package/dist/domain/inquiryTree/describe.js +32 -28
- package/dist/domain/inquiryTree/describe.js.map +1 -1
- package/dist/domain/inquiryTree/describe.mjs +34 -16
- package/dist/domain/inquiryTree/describe.mjs.map +1 -1
- package/dist/domain/inquiryTree/displayTree.d.ts +75 -97
- package/dist/domain/inquiryTree/displayTree.d.ts.map +1 -1
- package/dist/domain/inquiryTree/displayTree.js +418 -551
- package/dist/domain/inquiryTree/displayTree.js.map +1 -1
- package/dist/domain/inquiryTree/displayTree.mjs +345 -414
- package/dist/domain/inquiryTree/displayTree.mjs.map +1 -1
- package/dist/domain/inquiryTree/groups.d.ts +2 -0
- package/dist/domain/inquiryTree/groups.d.ts.map +1 -1
- package/dist/domain/inquiryTree/groups.js.map +1 -1
- package/dist/domain/inquiryTree/groups.mjs.map +1 -1
- package/dist/domain/inquiryTree/index.d.ts +1 -1
- package/dist/domain/inquiryTree/index.d.ts.map +1 -1
- package/dist/domain/inquiryTree/index.js +1 -1
- package/dist/domain/inquiryTree/index.js.map +1 -1
- package/dist/domain/inquiryTree/index.mjs +12 -12
- package/dist/domain/inquiryTree/lazyLoad.d.ts +20 -129
- package/dist/domain/inquiryTree/lazyLoad.d.ts.map +1 -1
- package/dist/domain/inquiryTree/lazyLoad.js +48 -233
- package/dist/domain/inquiryTree/lazyLoad.js.map +1 -1
- package/dist/domain/inquiryTree/lazyLoad.mjs +32 -187
- package/dist/domain/inquiryTree/lazyLoad.mjs.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.d.ts +13 -14
- package/dist/domain/inquiryTree/legalChildren.d.ts.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.js +21 -42
- package/dist/domain/inquiryTree/legalChildren.js.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.mjs +19 -37
- package/dist/domain/inquiryTree/legalChildren.mjs.map +1 -1
- package/dist/domain/inquiryTree/names.d.ts +38 -0
- package/dist/domain/inquiryTree/names.d.ts.map +1 -0
- package/dist/domain/inquiryTree/names.js +64 -0
- package/dist/domain/inquiryTree/names.js.map +1 -0
- package/dist/domain/inquiryTree/names.mjs +56 -0
- package/dist/domain/inquiryTree/names.mjs.map +1 -0
- package/dist/domain/inquiryTree/operations.d.ts +6 -2
- package/dist/domain/inquiryTree/operations.d.ts.map +1 -1
- package/dist/domain/inquiryTree/operations.js +17 -16
- package/dist/domain/inquiryTree/operations.js.map +1 -1
- package/dist/domain/inquiryTree/operations.mjs +14 -11
- package/dist/domain/inquiryTree/operations.mjs.map +1 -1
- package/dist/domain/inquiryTree/rules.d.ts +3 -4
- package/dist/domain/inquiryTree/rules.d.ts.map +1 -1
- package/dist/domain/inquiryTree/rules.js +3 -13
- package/dist/domain/inquiryTree/rules.js.map +1 -1
- package/dist/domain/inquiryTree/rules.mjs +3 -9
- package/dist/domain/inquiryTree/rules.mjs.map +1 -1
- package/dist/domain/inquiryTree/runtime.d.ts +23 -16
- package/dist/domain/inquiryTree/runtime.d.ts.map +1 -1
- package/dist/domain/inquiryTree/runtime.js +46 -54
- package/dist/domain/inquiryTree/runtime.js.map +1 -1
- package/dist/domain/inquiryTree/runtime.mjs +31 -26
- package/dist/domain/inquiryTree/runtime.mjs.map +1 -1
- package/dist/domain/inquiryTree/serialize.d.ts +20 -29
- package/dist/domain/inquiryTree/serialize.d.ts.map +1 -1
- package/dist/domain/inquiryTree/serialize.js +93 -205
- package/dist/domain/inquiryTree/serialize.js.map +1 -1
- package/dist/domain/inquiryTree/serialize.mjs +89 -180
- package/dist/domain/inquiryTree/serialize.mjs.map +1 -1
- package/dist/domain/inquiryTree/types.d.ts +146 -65
- package/dist/domain/inquiryTree/types.d.ts.map +1 -1
- package/dist/domain/inquiryTree/types.js +5 -0
- package/dist/domain/inquiryTree/types.js.map +1 -1
- package/dist/domain/inquiryTree/types.mjs +3 -1
- package/dist/domain/inquiryTree/types.mjs.map +1 -1
- package/dist/domain/inquiryTree/validate.d.ts +9 -2
- package/dist/domain/inquiryTree/validate.d.ts.map +1 -1
- package/dist/domain/inquiryTree/validate.js +30 -58
- package/dist/domain/inquiryTree/validate.js.map +1 -1
- package/dist/domain/inquiryTree/validate.mjs +29 -44
- package/dist/domain/inquiryTree/validate.mjs.map +1 -1
- package/dist/domain/inquiryTree/view.d.ts +8 -12
- package/dist/domain/inquiryTree/view.d.ts.map +1 -1
- package/dist/domain/inquiryTree/view.js +40 -66
- package/dist/domain/inquiryTree/view.js.map +1 -1
- package/dist/domain/inquiryTree/view.mjs +30 -60
- package/dist/domain/inquiryTree/view.mjs.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.d.ts +32 -48
- package/dist/domain/inquiryTree/waveLoad.d.ts.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.js +75 -90
- package/dist/domain/inquiryTree/waveLoad.js.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.mjs +54 -60
- package/dist/domain/inquiryTree/waveLoad.mjs.map +1 -1
- package/dist/domain/inquiryTree/wireString.d.ts +5 -0
- package/dist/domain/inquiryTree/wireString.d.ts.map +1 -1
- package/dist/domain/inquiryTree/wireString.js +11 -0
- package/dist/domain/inquiryTree/wireString.js.map +1 -1
- package/dist/domain/inquiryTree/wireString.mjs +10 -1
- package/dist/domain/inquiryTree/wireString.mjs.map +1 -1
- package/dist/domain/nodeView/index.mjs +2 -2
- package/dist/domain/nodeView/model.d.ts +35 -30
- package/dist/domain/nodeView/model.d.ts.map +1 -1
- package/dist/domain/nodeView/model.js +108 -69
- package/dist/domain/nodeView/model.js.map +1 -1
- package/dist/domain/nodeView/model.mjs +86 -36
- package/dist/domain/nodeView/model.mjs.map +1 -1
- package/dist/errorBoundary/ErrorBoundary.d.ts +17 -1
- package/dist/errorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/dist/errorBoundary/ErrorBoundary.js +25 -21
- package/dist/errorBoundary/ErrorBoundary.js.map +1 -1
- package/dist/errorBoundary/ErrorBoundary.mjs +22 -34
- package/dist/errorBoundary/ErrorBoundary.mjs.map +1 -1
- package/dist/errorBoundary/ErrorBoundaryFallback.d.ts +10 -0
- package/dist/errorBoundary/ErrorBoundaryFallback.d.ts.map +1 -0
- package/dist/errorBoundary/ErrorBoundaryFallback.js +8 -0
- package/dist/errorBoundary/ErrorBoundaryFallback.js.map +1 -0
- package/dist/errorBoundary/ErrorBoundaryFallback.mjs +91 -0
- package/dist/errorBoundary/ErrorBoundaryFallback.mjs.map +1 -0
- package/dist/icons/legacyIconNames.d.ts.map +1 -1
- package/dist/icons/legacyIconNames.js +46 -1
- package/dist/icons/legacyIconNames.js.map +1 -1
- package/dist/icons/legacyIconNames.mjs +46 -1
- package/dist/icons/legacyIconNames.mjs.map +1 -1
- package/dist/index.mjs +19 -14
- package/dist/inquiry/Inquiry.d.ts +3 -0
- package/dist/inquiry/Inquiry.d.ts.map +1 -1
- package/dist/inquiry/Inquiry.js +3 -0
- package/dist/inquiry/Inquiry.js.map +1 -1
- package/dist/inquiry/Inquiry.mjs +3 -0
- package/dist/inquiry/Inquiry.mjs.map +1 -1
- package/dist/inquiry/InquiryContainer.d.ts.map +1 -1
- package/dist/inquiry/InquiryContainer.js +22 -21
- package/dist/inquiry/InquiryContainer.js.map +1 -1
- package/dist/inquiry/InquiryContainer.mjs +14 -10
- package/dist/inquiry/InquiryContainer.mjs.map +1 -1
- package/dist/inquiry/InquiryTreeMenu.d.ts.map +1 -1
- package/dist/inquiry/InquiryTreeMenu.js +14 -23
- package/dist/inquiry/InquiryTreeMenu.js.map +1 -1
- package/dist/inquiry/InquiryTreeMenu.mjs +20 -20
- package/dist/inquiry/InquiryTreeMenu.mjs.map +1 -1
- package/dist/inquiry/v2/InquiryV2.d.ts +8 -6
- package/dist/inquiry/v2/InquiryV2.d.ts.map +1 -1
- package/dist/inquiry/v2/InquiryV2.js +45 -24
- package/dist/inquiry/v2/InquiryV2.js.map +1 -1
- package/dist/inquiry/v2/InquiryV2.mjs +108 -61
- package/dist/inquiry/v2/InquiryV2.mjs.map +1 -1
- package/dist/inquiry/v2/InquiryV2.module.css +60 -15
- package/dist/inquiry/v2/InquiryWorkspace.d.ts +9 -9
- package/dist/inquiry/v2/InquiryWorkspace.d.ts.map +1 -1
- package/dist/inquiry/v2/InquiryWorkspace.js +531 -408
- package/dist/inquiry/v2/InquiryWorkspace.js.map +1 -1
- package/dist/inquiry/v2/InquiryWorkspace.mjs +524 -408
- package/dist/inquiry/v2/InquiryWorkspace.mjs.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts +3 -2
- package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.js +20 -37
- package/dist/inquiry/v2/ai/InquiryV2Copilot.js.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs +19 -31
- package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.d.ts +6 -14
- package/dist/inquiry/v2/ai/copilotModel.d.ts.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.js +35 -87
- package/dist/inquiry/v2/ai/copilotModel.js.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.mjs +23 -47
- package/dist/inquiry/v2/ai/copilotModel.mjs.map +1 -1
- package/dist/inquiry/v2/api/queries.d.ts +46 -73
- package/dist/inquiry/v2/api/queries.d.ts.map +1 -1
- package/dist/inquiry/v2/api/queries.js +151 -210
- package/dist/inquiry/v2/api/queries.js.map +1 -1
- package/dist/inquiry/v2/api/queries.mjs +227 -183
- package/dist/inquiry/v2/api/queries.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js +103 -32
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs +92 -32
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.module.css +8 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts +20 -16
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js +111 -68
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs +108 -142
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/RetrieveSurface.mjs +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts +66 -50
- package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.js +141 -66
- package/dist/inquiry/v2/capabilities/actions/actionModel.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.mjs +115 -53
- package/dist/inquiry/v2/capabilities/actions/actionModel.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts +26 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js +36 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs +41 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/runAction.d.ts +3 -2
- package/dist/inquiry/v2/capabilities/actions/runAction.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/runAction.js +27 -23
- package/dist/inquiry/v2/capabilities/actions/runAction.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/runAction.mjs +26 -20
- package/dist/inquiry/v2/capabilities/actions/runAction.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts +20 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js +112 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs +118 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts +25 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js +7 -4
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs +9 -4
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts +5 -3
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js +11 -8
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs +13 -7
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.module.css +4 -4
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.js +20 -17
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs +101 -111
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.module.css +9 -6
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts +2 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js +9 -2
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs +18 -15
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/index.d.ts +0 -1
- package/dist/inquiry/v2/index.d.ts.map +1 -1
- package/dist/inquiry/v2/index.js.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts +3 -3
- package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.js +11 -5
- package/dist/inquiry/v2/kernel/ActionRunnerContext.js.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs +15 -12
- package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts +3 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts.map +1 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.js +14 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.js.map +1 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs +20 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs.map +1 -0
- package/dist/inquiry/v2/kernel/RecordContext.d.ts +2 -0
- package/dist/inquiry/v2/kernel/RecordContext.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/RecordContext.js.map +1 -1
- package/dist/inquiry/v2/kernel/RecordContext.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.js +18 -13
- package/dist/inquiry/v2/kernel/UdpNodeView.js.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.mjs +177 -140
- package/dist/inquiry/v2/kernel/UdpNodeView.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.module.css +56 -5
- package/dist/inquiry/v2/kernel/capabilities.d.ts +0 -2
- package/dist/inquiry/v2/kernel/capabilities.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/capabilities.js.map +1 -1
- package/dist/inquiry/v2/kernel/capabilities.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts +26 -37
- package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.js +48 -57
- package/dist/inquiry/v2/landing/InquiryExplorePage.js.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.mjs +102 -106
- package/dist/inquiry/v2/landing/InquiryExplorePage.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.module.css +58 -6
- package/dist/inquiry/v2/landing/InquiryLanding.d.ts +3 -3
- package/dist/inquiry/v2/landing/InquiryLanding.d.ts.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.js +8 -3
- package/dist/inquiry/v2/landing/InquiryLanding.js.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.mjs +51 -35
- package/dist/inquiry/v2/landing/InquiryLanding.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.module.css +8 -0
- package/dist/inquiry/v2/page/UdpPageRenderer.d.ts +5 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.d.ts.map +1 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.js +13 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.js.map +1 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.mjs +36 -7
- package/dist/inquiry/v2/page/UdpPageRenderer.mjs.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.d.ts +1 -7
- package/dist/inquiry/v2/search/InquirySearchPanel.d.ts.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.js +6 -13
- package/dist/inquiry/v2/search/InquirySearchPanel.js.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.mjs +4 -8
- package/dist/inquiry/v2/search/InquirySearchPanel.mjs.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.d.ts +30 -1
- package/dist/inquiry/v2/search/RecordFinder.d.ts.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.js +43 -20
- package/dist/inquiry/v2/search/RecordFinder.js.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.mjs +68 -42
- package/dist/inquiry/v2/search/RecordFinder.mjs.map +1 -1
- package/dist/inquiry/v2/search/index.d.ts +3 -3
- package/dist/inquiry/v2/search/index.d.ts.map +1 -1
- package/dist/inquiry/v2/search/index.js +1 -1
- package/dist/inquiry/v2/search/index.js.map +1 -1
- package/dist/inquiry/v2/search/searchModel.d.ts +130 -23
- package/dist/inquiry/v2/search/searchModel.d.ts.map +1 -1
- package/dist/inquiry/v2/search/searchModel.js +237 -36
- package/dist/inquiry/v2/search/searchModel.js.map +1 -1
- package/dist/inquiry/v2/search/searchModel.mjs +207 -34
- package/dist/inquiry/v2/search/searchModel.mjs.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.d.ts.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.js +46 -19
- package/dist/inquiry/v2/search/useInquirySearch.js.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.mjs +83 -84
- package/dist/inquiry/v2/search/useInquirySearch.mjs.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts +4 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js +174 -166
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs +343 -325
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts +3 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.js +8 -7
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.js.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs +68 -72
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts +3 -3
- package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.js +12 -7
- package/dist/inquiry/v2/tree/LoadRecordDialog.js.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.mjs +48 -33
- package/dist/inquiry/v2/tree/LoadRecordDialog.mjs.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.js +17 -6
- package/dist/inquiry/v2/tree/NodeList.js.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.mjs +49 -36
- package/dist/inquiry/v2/tree/NodeList.mjs.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.d.ts +15 -0
- package/dist/inquiry/v2/tree/arrivalModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.js +14 -1
- package/dist/inquiry/v2/tree/arrivalModel.js.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.mjs +12 -1
- package/dist/inquiry/v2/tree/arrivalModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/branchRefreshModel.d.ts +32 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.d.ts.map +1 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.js +62 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.js.map +1 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.mjs +60 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.mjs.map +1 -0
- package/dist/inquiry/v2/tree/droppedPageModel.d.ts +23 -1
- package/dist/inquiry/v2/tree/droppedPageModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/droppedPageModel.js +53 -26
- package/dist/inquiry/v2/tree/droppedPageModel.js.map +1 -1
- package/dist/inquiry/v2/tree/droppedPageModel.mjs +48 -20
- package/dist/inquiry/v2/tree/droppedPageModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts +7 -12
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js +44 -15
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs +34 -15
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js +7 -18
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs +6 -14
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts +20 -16
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js +77 -55
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs +85 -106
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.d.ts +18 -1
- package/dist/inquiry/v2/tree/lineageModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.js +71 -2
- package/dist/inquiry/v2/tree/lineageModel.js.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.mjs +53 -3
- package/dist/inquiry/v2/tree/lineageModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.d.ts +10 -27
- package/dist/inquiry/v2/tree/menuRebuildModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.js +8 -58
- package/dist/inquiry/v2/tree/menuRebuildModel.js.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.mjs +8 -51
- package/dist/inquiry/v2/tree/menuRebuildModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts +26 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts.map +1 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.js +56 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.js.map +1 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.mjs +43 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.mjs.map +1 -0
- package/dist/inquiry/v2/tree/rootRemovalModel.d.ts +7 -0
- package/dist/inquiry/v2/tree/rootRemovalModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/rootRemovalModel.js +31 -5
- package/dist/inquiry/v2/tree/rootRemovalModel.js.map +1 -1
- package/dist/inquiry/v2/tree/rootRemovalModel.mjs +21 -4
- package/dist/inquiry/v2/tree/rootRemovalModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.d.ts +0 -2
- package/dist/inquiry/v2/tree/treeFilterModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.js +0 -7
- package/dist/inquiry/v2/tree/treeFilterModel.js.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.d.ts +16 -7
- package/dist/inquiry/v2/tree/useInquiryMenu.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.js +401 -163
- package/dist/inquiry/v2/tree/useInquiryMenu.js.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.mjs +511 -310
- package/dist/inquiry/v2/tree/useInquiryMenu.mjs.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.d.ts +10 -11
- package/dist/inquiry/v2/tree/waveLoader.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.js +78 -72
- package/dist/inquiry/v2/tree/waveLoader.js.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.mjs +79 -68
- package/dist/inquiry/v2/tree/waveLoader.mjs.map +1 -1
- package/dist/inquiry/v2/widgets/listRow.module.css +27 -0
- package/dist/inquiry/v2/widgets/widgetRowModel.d.ts +6 -2
- package/dist/inquiry/v2/widgets/widgetRowModel.d.ts.map +1 -1
- package/dist/inquiry/v2/widgets/widgetRowModel.js +49 -14
- package/dist/inquiry/v2/widgets/widgetRowModel.js.map +1 -1
- package/dist/inquiry/v2/widgets/widgetRowModel.mjs +36 -12
- package/dist/inquiry/v2/widgets/widgetRowModel.mjs.map +1 -1
- package/dist/maintenance/UdpTaggedRecordsPage.mjs +1 -1
- package/dist/maintenance/api/lookupApi.mjs +1 -1
- package/dist/maintenance/api/tagsApi.mjs +1 -1
- package/dist/maintenance/config/nodeDefaults.d.ts.map +1 -1
- package/dist/maintenance/config/nodeDefaults.js +16 -5
- package/dist/maintenance/config/nodeDefaults.js.map +1 -1
- package/dist/maintenance/config/nodeDefaults.mjs +14 -5
- package/dist/maintenance/config/nodeDefaults.mjs.map +1 -1
- package/dist/maintenance/config/useEntityConfig.mjs +1 -1
- package/dist/maintenance/config/useLinkedLabels.mjs +1 -1
- package/dist/maintenance/grid/MaintenanceGrid.mjs +1 -1
- package/dist/maintenance/metadata/useEntityMetadata.mjs +1 -1
- package/dist/maintenance/record/ChildTab.mjs +1 -1
- package/dist/maintenance/record/DeleteRecordDialog.mjs +1 -1
- package/dist/maintenance/record/LinkRecordsSheet.mjs +1 -1
- package/dist/maintenance/record/RecordFacts.mjs +1 -1
- package/dist/maintenance/record/RecordSheet.mjs +2 -2
- package/dist/maintenance/record/displayValue.mjs +1 -1
- package/dist/maintenance/record/stampDisplayText.mjs +1 -1
- package/dist/maintenance/settings/UdpEntitySettingsPage.d.ts.map +1 -1
- package/dist/maintenance/settings/UdpEntitySettingsPage.js +3 -0
- package/dist/maintenance/settings/UdpEntitySettingsPage.js.map +1 -1
- package/dist/maintenance/settings/UdpEntitySettingsPage.mjs +2 -0
- package/dist/maintenance/settings/UdpEntitySettingsPage.mjs.map +1 -1
- package/dist/maintenance/settings/useEntityCatalog.mjs +1 -1
- package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +4 -5
- package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts.map +1 -1
- package/dist/page/PageContainer/PageContainer.d.ts.map +1 -1
- package/dist/page/PageContainer/PageContainer.js +4 -11
- package/dist/page/PageContainer/PageContainer.js.map +1 -1
- package/dist/page/PageContainer/PageContainer.mjs +39 -50
- package/dist/page/PageContainer/PageContainer.mjs.map +1 -1
- package/dist/stores/inquiryStore.d.ts +2 -1
- package/dist/stores/inquiryStore.d.ts.map +1 -1
- package/dist/stores/inquiryStore.js +4 -3
- package/dist/stores/inquiryStore.js.map +1 -1
- package/dist/stores/inquiryStore.mjs +18 -11
- package/dist/stores/inquiryStore.mjs.map +1 -1
- package/dist/udp/extraFields/useExtraFieldsGridConfig.d.ts +3 -2
- package/dist/udp/extraFields/useExtraFieldsGridConfig.d.ts.map +1 -1
- package/dist/udp/extraFields/useExtraFieldsGridConfig.js +7 -6
- package/dist/udp/extraFields/useExtraFieldsGridConfig.js.map +1 -1
- package/dist/udp/extraFields/useExtraFieldsGridConfig.mjs +27 -22
- package/dist/udp/extraFields/useExtraFieldsGridConfig.mjs.map +1 -1
- package/dist/udp/fileImportMapping/FileImportMappingWizard.d.ts.map +1 -1
- package/dist/udp/fileImportMapping/FileImportMappingWizard.js +4 -4
- package/dist/udp/fileImportMapping/FileImportMappingWizard.js.map +1 -1
- package/dist/udp/fileImportMapping/FileImportMappingWizard.mjs +10 -9
- package/dist/udp/fileImportMapping/FileImportMappingWizard.mjs.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.d.ts.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs +2 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/components/EntitiyTimeLine.mjs +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.d.ts.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.js +84 -27
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.js.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.mjs +53 -23
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.mjs.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.d.ts.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.js +45 -32
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.js.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.mjs +27 -33
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.mjs.map +1 -1
- package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.d.ts.map +1 -1
- package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.js +14 -16
- package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.js.map +1 -1
- package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.mjs +2 -4
- package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.mjs.map +1 -1
- package/dist/udp/utilities/useDateStringColumnDef.d.ts +1 -1
- package/dist/utilities/i18n/locales/es-US.json +24 -9
- package/dist/utilities/i18n/locales/es-US.mjs +25 -8
- package/dist/utilities/i18n/locales/fr-CA.json +24 -9
- package/dist/utilities/i18n/locales/fr-CA.mjs +25 -8
- package/dist/utilities/tree/TreeUtilities.d.ts +10 -10
- package/dist/utilities/tree/TreeUtilities.d.ts.map +1 -1
- package/dist/utilities/tree/TreeUtilities.js +41 -58
- package/dist/utilities/tree/TreeUtilities.js.map +1 -1
- package/dist/utilities/tree/TreeUtilities.mjs +32 -41
- package/dist/utilities/tree/TreeUtilities.mjs.map +1 -1
- package/dist/utilities/tree/lazyLevels.d.ts +32 -0
- package/dist/utilities/tree/lazyLevels.d.ts.map +1 -0
- package/dist/utilities/tree/lazyLevels.js +25 -0
- package/dist/utilities/tree/lazyLevels.js.map +1 -0
- package/dist/utilities/tree/lazyLevels.mjs +16 -0
- package/dist/utilities/tree/lazyLevels.mjs.map +1 -0
- package/dist/utilities/types.d.ts +4 -4
- package/dist/utilities/types.d.ts.map +1 -1
- package/package.json +62 -18
- package/dist/actionPanels/PanelActionForm.d.ts +0 -56
- package/dist/actionPanels/PanelActionForm.d.ts.map +0 -1
- package/dist/actionPanels/PanelActionForm.js +0 -30
- package/dist/actionPanels/PanelActionForm.js.map +0 -1
- package/dist/actionPanels/PanelActionForm.mjs +0 -168
- package/dist/actionPanels/PanelActionForm.mjs.map +0 -1
- package/dist/actionPanels/PanelEditor.d.ts +0 -44
- package/dist/actionPanels/PanelEditor.d.ts.map +0 -1
- package/dist/actionPanels/PanelEditor.js +0 -78
- package/dist/actionPanels/PanelEditor.js.map +0 -1
- package/dist/actionPanels/PanelEditor.mjs +0 -345
- package/dist/actionPanels/PanelEditor.mjs.map +0 -1
- package/dist/actionPanels/panelActionFields.module.css +0 -18
- package/dist/domain/inquiryTree/ruleBindings.d.ts +0 -10
- package/dist/domain/inquiryTree/ruleBindings.d.ts.map +0 -1
- package/dist/domain/inquiryTree/ruleBindings.js +0 -20
- package/dist/domain/inquiryTree/ruleBindings.js.map +0 -1
- package/dist/domain/inquiryTree/ruleBindings.mjs +0 -21
- package/dist/domain/inquiryTree/ruleBindings.mjs.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.d.ts +0 -17
- package/dist/inquiry/v2/kernel/readOnlyModel.d.ts.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.js +0 -19
- package/dist/inquiry/v2/kernel/readOnlyModel.js.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.mjs +0 -21
- package/dist/inquiry/v2/kernel/readOnlyModel.mjs.map +0 -1
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* Composition follows the Tree Builder preview's live-menu path: the nested
|
|
15
15
|
* seed (makeDisplayTreeStructure output, built once by the caller from the
|
|
16
|
-
*
|
|
16
|
+
* tree) + the root-record page → buildPreloadedDisplayList, so root
|
|
17
17
|
* group configuration, icons, and lazy-child descriptors are all stamped by the
|
|
18
18
|
* domain pipeline. `rows` arrive WAVE-HYDRATED (v2/tree/waveLoader): every
|
|
19
19
|
* eager level's records are already grafted onto their parent row, so the
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
* across through menuRebuildModel — the roots the user loaded in, and how far
|
|
32
32
|
* they had opened the tree. Only `resetTree` throws that away. A mutation on a
|
|
33
33
|
* CHILD record leaves the root page answering identically, so no rebuild fires
|
|
34
|
-
* at all: `
|
|
34
|
+
* at all: `refreshRecord` recomposes the branch that mutation touched.
|
|
35
35
|
*
|
|
36
36
|
* Loaded records graft through the same pipeline: the searched entity's config
|
|
37
37
|
* node is located in the nested seed and buildDisplayTree composes its subtree
|
|
@@ -41,35 +41,68 @@
|
|
|
41
41
|
* Loaded roots live until they are removed, or the tree is reset.
|
|
42
42
|
*/
|
|
43
43
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
44
|
-
import {
|
|
45
|
-
import { buildRecordEntryFilterElements, getSearchIdentifiers
|
|
46
|
-
import { resolveRowLabel } from '../../../domain/inquiryTree/displayTree';
|
|
47
|
-
import { findNodeById, findRecordParent, locateNodeById } from './lineageModel';
|
|
48
|
-
import {
|
|
44
|
+
import { buildDisplayTree, buildPreloadedDisplayList } from '../../../domain/inquiryTree';
|
|
45
|
+
import { buildRecordEntryFilterElements, getSearchIdentifiers } from '../../../domain/inquiryTree';
|
|
46
|
+
import { groupsLevelRecords, hasUnloadedChildren, resolveRowLabel } from '../../../domain/inquiryTree/displayTree';
|
|
47
|
+
import { ancestorIdsOf, findNodeById, findRecordParent, locateInMenus, locateNodeById, patchMenuEntry } from './lineageModel';
|
|
48
|
+
import { reloadBranch } from './branchRefreshModel';
|
|
49
|
+
import { asDrop, dropPageNode, isDroppedPageNode, rebuildDroppedPage } from './droppedPageModel';
|
|
50
|
+
import { preserveMenuWorkspace } from './menuRebuildModel';
|
|
49
51
|
import { removeRootFromMenus } from './rootRemovalModel';
|
|
50
52
|
import { firstRecordId, locateRecordByKey, reselectAfterRebuild } from './selectionModel';
|
|
51
53
|
/**
|
|
52
|
-
* v1's expandAllNodes/collapseAllNodes walk. `cachedOnly`
|
|
53
|
-
* whose children haven't loaded, so expand-all never triggers a
|
|
54
|
-
* unloaded lazy folders stay collapsed until the user opens them.
|
|
55
|
-
* (`properties.lazyLoad` here is the DISPLAY marker the composer stamps on rows
|
|
56
|
-
* that have an unloaded level, not the retired wire flag.)
|
|
54
|
+
* v1's expandAllNodes/collapseAllNodes walk: every row id. `cachedOnly` stops
|
|
55
|
+
* at lazy levels whose children haven't loaded, so expand-all never triggers a
|
|
56
|
+
* fetch storm — unloaded lazy folders stay collapsed until the user opens them.
|
|
57
57
|
*/
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
58
|
+
const collectRowIds = (menus, cachedOnly) => {
|
|
59
|
+
const ids = new Set();
|
|
60
|
+
const walk = (node) => {
|
|
61
|
+
var _a;
|
|
62
|
+
if (cachedOnly && hasUnloadedChildren(node))
|
|
63
|
+
return;
|
|
64
|
+
ids.add(node.id);
|
|
65
|
+
((_a = node.children) !== null && _a !== void 0 ? _a : []).forEach(walk);
|
|
66
|
+
};
|
|
67
|
+
menus.forEach((menu) => menu.forEach(walk));
|
|
68
|
+
return ids;
|
|
68
69
|
};
|
|
69
70
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
|
|
71
|
+
* Set `isExpanded` on the rows `ids` names, path-copying (patchMenuEntry):
|
|
72
|
+
* untouched rows keep their identity, and nothing to change → same list.
|
|
73
|
+
*/
|
|
74
|
+
const setExpansion = (menus, ids, expandedOf) => {
|
|
75
|
+
const next = menus.map((menu) => patchMenuEntry(menu, ids, (copy) => {
|
|
76
|
+
const expanded = expandedOf(copy);
|
|
77
|
+
if (copy.isExpanded === expanded)
|
|
78
|
+
return false;
|
|
79
|
+
copy.isExpanded = expanded;
|
|
80
|
+
return true;
|
|
81
|
+
}));
|
|
82
|
+
return next.some((menu, index) => menu !== menus[index]) ? next : menus;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Open every row above `id` (and `id` itself when `openSelf`). The tree item
|
|
86
|
+
* shows a selected row's ancestors open on its own, so a row selected inside
|
|
87
|
+
* a collapsed branch (a deep link, a load, filter stepping, the copilot, the
|
|
88
|
+
* default selection) must open them in the model too — else the first chevron
|
|
89
|
+
* click on such an ancestor flips it to open, which it already looks, and
|
|
90
|
+
* nothing visibly happens.
|
|
91
|
+
*/
|
|
92
|
+
const revealRow = (menus, id, openSelf = false) => {
|
|
93
|
+
const location = locateNodeById(menus, id);
|
|
94
|
+
if (!location)
|
|
95
|
+
return menus;
|
|
96
|
+
const ids = new Set(ancestorIdsOf(location.root, id));
|
|
97
|
+
if (openSelf)
|
|
98
|
+
ids.add(location.node.id);
|
|
99
|
+
return setExpansion(menus, ids, () => true);
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Identifier `=` filters for a row — the load-record refetch recipe: the
|
|
103
|
+
* entity's catalog identifiers, read off the row. (A `?node` link resolves
|
|
104
|
+
* through its level's identifiers instead — getLevelSearchIdentifiers, where
|
|
105
|
+
* an associatedTreePrimaryKeyMap replaces them.)
|
|
73
106
|
*/
|
|
74
107
|
export const buildIdentifierFilterElements = (catalogObjects, entityName, row) => {
|
|
75
108
|
var _a;
|
|
@@ -78,22 +111,23 @@ export const buildIdentifierFilterElements = (catalogObjects, entityName, row) =
|
|
|
78
111
|
const identifiers = (_a = getSearchIdentifiers(catalogObjects, entityName)) !== null && _a !== void 0 ? _a : [];
|
|
79
112
|
if (!identifiers.length)
|
|
80
113
|
return [];
|
|
81
|
-
return buildRecordEntryFilterElements(identifiers,
|
|
114
|
+
return buildRecordEntryFilterElements(identifiers, identifiers.map((identifier) => row[identifier]));
|
|
82
115
|
};
|
|
83
116
|
export const useInquiryMenu = ({ seed, rows, catalogObjects, promotedEntities, autoSelectFirst = true }) => {
|
|
84
117
|
var _a, _b;
|
|
85
|
-
// v2 composes under the CONFIG rule: a level is eager because the tree says
|
|
86
|
-
// so, never because a response happened to nest its rows. The composer's
|
|
87
|
-
// default is v1's data-decides rule, so this opt-in is what separates the two
|
|
88
|
-
// viewers running in one bundle.
|
|
89
118
|
const buildOptions = useMemo(() => ({
|
|
90
119
|
makeId: () => crypto.randomUUID(),
|
|
91
|
-
loadMode: 'config',
|
|
92
120
|
catalogObjects,
|
|
93
121
|
promotedEntities
|
|
94
122
|
}), [catalogObjects, promotedEntities]);
|
|
95
123
|
const [menuList, setMenuList] = useState([]);
|
|
96
124
|
const [selectedId, setSelectedId] = useState(null);
|
|
125
|
+
/**
|
|
126
|
+
* The rows the menu was last built from. The build runs in an effect, so a
|
|
127
|
+
* host can tell rows that are about to appear (not built yet) from a menu
|
|
128
|
+
* that was built and then emptied by the user.
|
|
129
|
+
*/
|
|
130
|
+
const [seededRows, setSeededRows] = useState(rows);
|
|
97
131
|
const location = useMemo(() => locateNodeById(menuList, selectedId), [menuList, selectedId]);
|
|
98
132
|
const selectedNode = (_a = location === null || location === void 0 ? void 0 : location.node) !== null && _a !== void 0 ? _a : null;
|
|
99
133
|
/** The selected row's own root record — what the kernel files notes against. */
|
|
@@ -105,18 +139,41 @@ export const useInquiryMenu = ({ seed, rows, catalogObjects, promotedEntities, a
|
|
|
105
139
|
* the node objects, and a stamped lineage would go stale with them.
|
|
106
140
|
*/
|
|
107
141
|
const selectedParent = useMemo(() => location ? findRecordParent(menuList[location.menuIndex], location.node) : null, [menuList, location]);
|
|
142
|
+
/**
|
|
143
|
+
* A root the user loaded joins the root page's groups when the root level
|
|
144
|
+
* groups its records — it is one more root record, so it belongs in its
|
|
145
|
+
* group, not appended flat below them.
|
|
146
|
+
*/
|
|
147
|
+
const joinsRootGroups = useCallback((level) => !!seed && level.id === seed.id && groupsLevelRecords(seed), [seed]);
|
|
148
|
+
/**
|
|
149
|
+
* The page's records the user removed (✕), by record. Every rebuild leaves
|
|
150
|
+
* them out — a later Load, a refetch after a save — until the user asks for
|
|
151
|
+
* the page again: the toolbar's Refresh (`restoreRemoved`), Reset tree, or
|
|
152
|
+
* loading that record by hand.
|
|
153
|
+
*/
|
|
154
|
+
const removedKeysRef = useRef(new Set());
|
|
108
155
|
/**
|
|
109
156
|
* The seeded page is ONE menu: buildPreloadedDisplayList already returns the
|
|
110
157
|
* tree's root list (record roots, or the configured top-level group nodes),
|
|
111
158
|
* which is exactly a menu's roots — so the domain layer needs no change and
|
|
112
|
-
* the consumer just stops splitting the list into N menus.
|
|
159
|
+
* the consumer just stops splitting the list into N menus. Loaded roots that
|
|
160
|
+
* join the root groups are built with the page.
|
|
113
161
|
*/
|
|
114
|
-
const buildSeededList = useCallback(() => {
|
|
115
|
-
if (!seed
|
|
162
|
+
const buildSeededList = useCallback((loaded) => {
|
|
163
|
+
if (!seed)
|
|
164
|
+
return [];
|
|
165
|
+
const keys = new Set((rows !== null && rows !== void 0 ? rows : []).map((row) => row.businessObjectKey));
|
|
166
|
+
const joining = loaded
|
|
167
|
+
.filter((root) => joinsRootGroups(root.level))
|
|
168
|
+
.map((root) => root.row)
|
|
169
|
+
.filter((row) => !keys.has(row.businessObjectKey));
|
|
170
|
+
const kept = (rows !== null && rows !== void 0 ? rows : []).filter((row) => !removedKeysRef.current.has(row.businessObjectKey));
|
|
171
|
+
const pageRows = [...kept, ...joining];
|
|
172
|
+
if (!pageRows.length)
|
|
116
173
|
return [];
|
|
117
|
-
const built = buildPreloadedDisplayList(seed,
|
|
174
|
+
const built = buildPreloadedDisplayList(seed, pageRows, buildOptions);
|
|
118
175
|
return Array.isArray(built) && built.length ? [built] : [];
|
|
119
|
-
}, [seed, rows, buildOptions]);
|
|
176
|
+
}, [seed, rows, buildOptions, joinsRootGroups]);
|
|
120
177
|
/**
|
|
121
178
|
* The live menu, and the roots the USER put in it. A rebuild reads both to
|
|
122
179
|
* carry the workspace across (menuRebuildModel) — refs because the rebuild
|
|
@@ -127,41 +184,104 @@ export const useInquiryMenu = ({ seed, rows, catalogObjects, promotedEntities, a
|
|
|
127
184
|
useEffect(() => {
|
|
128
185
|
menuListRef.current = menuList;
|
|
129
186
|
}, [menuList]);
|
|
187
|
+
/**
|
|
188
|
+
* A menu update the ref sees at once, not after the next render — for a
|
|
189
|
+
* writer that reads the ref back in the same tick (loadRecord in a bulk
|
|
190
|
+
* load's loop).
|
|
191
|
+
*/
|
|
192
|
+
const updateMenuList = useCallback((update) => {
|
|
193
|
+
menuListRef.current = update(menuListRef.current);
|
|
194
|
+
setMenuList(update);
|
|
195
|
+
}, []);
|
|
196
|
+
/**
|
|
197
|
+
* The roots the USER loaded, kept as what they are MADE FROM — the config
|
|
198
|
+
* level and the record — with the node last built from them. Every rebuild
|
|
199
|
+
* composes them again against the current config, so a label or rule the
|
|
200
|
+
* Tree Builder just changed reaches them exactly as it reaches the page.
|
|
201
|
+
*/
|
|
130
202
|
const loadedRootsRef = useRef([]);
|
|
131
|
-
|
|
203
|
+
/**
|
|
204
|
+
* Config levels of OTHER trees that loaded roots were composed against. A
|
|
205
|
+
* row's `configNodeId` names its level; ids are tree-node GUIDs, unique
|
|
206
|
+
* across trees, so one lookup over this tree's seed and these finds any row's
|
|
207
|
+
* level.
|
|
208
|
+
*/
|
|
209
|
+
const foreignLevelsRef = useRef([]);
|
|
210
|
+
const findConfigLevel = useCallback((id) => {
|
|
211
|
+
const own = findNodeById(seed, id);
|
|
212
|
+
if (own)
|
|
213
|
+
return own;
|
|
214
|
+
for (const level of foreignLevelsRef.current) {
|
|
215
|
+
const found = findNodeById(level, id);
|
|
216
|
+
if (found)
|
|
217
|
+
return found;
|
|
218
|
+
}
|
|
219
|
+
return null;
|
|
220
|
+
}, [seed]);
|
|
221
|
+
/** One record composed against its level's CURRENT config. */
|
|
222
|
+
const composeRecord = useCallback((level, row) => {
|
|
223
|
+
var _a, _b;
|
|
224
|
+
const built = buildDisplayTree(row, (_a = findConfigLevel(level.id)) !== null && _a !== void 0 ? _a : level, buildOptions);
|
|
225
|
+
return (_b = (Array.isArray(built) ? built[0] : built)) !== null && _b !== void 0 ? _b : null;
|
|
226
|
+
}, [findConfigLevel, buildOptions]);
|
|
227
|
+
/**
|
|
228
|
+
* Load_Inquiry_Page drops, newest first, kept as the drops they were made
|
|
229
|
+
* from (droppedPageModel) and rebuilt against the current config.
|
|
230
|
+
*/
|
|
132
231
|
const droppedPagesRef = useRef([]);
|
|
133
232
|
const selectedIdRef = useRef(null);
|
|
134
233
|
useEffect(() => {
|
|
135
234
|
selectedIdRef.current = selectedId;
|
|
136
235
|
}, [selectedId]);
|
|
236
|
+
/** The whole workspace composed again from what it is made of. */
|
|
237
|
+
const composeWorkspace = useCallback((previous) => preserveMenuWorkspace({
|
|
238
|
+
fresh: buildSeededList(loadedRootsRef.current),
|
|
239
|
+
previous,
|
|
240
|
+
loadedRoots: loadedRootsRef.current
|
|
241
|
+
.filter((loaded) => !joinsRootGroups(loaded.level))
|
|
242
|
+
.map((loaded) => loaded.node),
|
|
243
|
+
droppedPages: droppedPagesRef.current.flatMap((page) => {
|
|
244
|
+
const node = rebuildDroppedPage(page, findConfigLevel);
|
|
245
|
+
return node ? [node] : [];
|
|
246
|
+
})
|
|
247
|
+
}), [buildSeededList, joinsRootGroups, findConfigLevel]);
|
|
137
248
|
useEffect(() => {
|
|
138
249
|
if (!seed)
|
|
139
250
|
return;
|
|
140
251
|
const previous = menuListRef.current;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
loadedRoots: loadedRootsRef.current,
|
|
145
|
-
droppedPages: droppedPagesRef.current
|
|
252
|
+
loadedRootsRef.current = loadedRootsRef.current.flatMap((loaded) => {
|
|
253
|
+
const node = composeRecord(loaded.level, loaded.row);
|
|
254
|
+
return node ? [Object.assign(Object.assign({}, loaded), { node })] : [];
|
|
146
255
|
});
|
|
147
|
-
|
|
148
|
-
|
|
256
|
+
// A local composer, not a parent's setter.
|
|
257
|
+
// eslint-disable-next-line react-you-might-not-need-an-effect/no-pass-data-to-parent
|
|
258
|
+
const list = composeWorkspace(previous);
|
|
259
|
+
const nextSelectedId = reselectAfterRebuild({
|
|
149
260
|
list,
|
|
150
261
|
previous,
|
|
151
262
|
selectedId: selectedIdRef.current,
|
|
152
263
|
autoSelectFirst
|
|
153
|
-
})
|
|
154
|
-
|
|
264
|
+
});
|
|
265
|
+
setMenuList(revealRow(list, nextSelectedId));
|
|
266
|
+
setSelectedId(nextSelectedId);
|
|
267
|
+
// Not derived state: it records which rows THIS build consumed, which only
|
|
268
|
+
// the effect knows.
|
|
269
|
+
// eslint-disable-next-line react-you-might-not-need-an-effect/no-derived-state
|
|
270
|
+
setSeededRows(rows);
|
|
271
|
+
}, [seed, rows, composeWorkspace, composeRecord, autoSelectFirst]);
|
|
155
272
|
/** NodeList onSelectNode — group/synthetic rows only expand, never load. */
|
|
156
273
|
const handleSelectNode = useCallback((node) => {
|
|
157
274
|
if (!(node === null || node === void 0 ? void 0 : node.nodeObj) || node.isGroupNode)
|
|
158
275
|
return;
|
|
159
|
-
|
|
276
|
+
const id = String(node.id);
|
|
277
|
+
setMenuList((previous) => revealRow(previous, id));
|
|
278
|
+
setSelectedId(id);
|
|
160
279
|
}, []);
|
|
161
280
|
/**
|
|
162
281
|
* Select a row the user reached without clicking it — the filter's Enter/F3
|
|
163
|
-
* stepping. Identical to a click: unselectable rows (groups) are
|
|
164
|
-
* the record pane only ever changes for a real record
|
|
282
|
+
* stepping, the copilot. Identical to a click: unselectable rows (groups) are
|
|
283
|
+
* ignored, so the record pane only ever changes for a real record, and the
|
|
284
|
+
* row is revealed.
|
|
165
285
|
*/
|
|
166
286
|
const selectNodeById = useCallback((nodeId) => {
|
|
167
287
|
var _a;
|
|
@@ -174,28 +294,78 @@ export const useInquiryMenu = ({ seed, rows, catalogObjects, promotedEntities, a
|
|
|
174
294
|
* put it. An already-loaded record is not
|
|
175
295
|
* duplicated — it is simply selected (dedup by businessObjectKey), and the
|
|
176
296
|
* caller is told so it can say "already loaded" instead of "loaded".
|
|
297
|
+
* `select: false` loads without moving the selection: a bulk load selects
|
|
298
|
+
* only its first record, the top of what it adds.
|
|
177
299
|
*/
|
|
178
|
-
const loadRecord = useCallback((configNode, row) => {
|
|
300
|
+
const loadRecord = useCallback((configNode, row, { select = true } = {}) => {
|
|
179
301
|
const key = row === null || row === void 0 ? void 0 : row.businessObjectKey;
|
|
180
|
-
|
|
302
|
+
// Asked for by hand: no longer removed.
|
|
303
|
+
removedKeysRef.current.delete(key);
|
|
304
|
+
// The ref, not this render's `menuList`: a bulk load calls this after
|
|
305
|
+
// awaits and in a loop, so the list may have changed since — including
|
|
306
|
+
// a record the previous iteration just appended.
|
|
307
|
+
const existing = key != null ? locateRecordByKey(menuListRef.current, key) : null;
|
|
181
308
|
if (existing) {
|
|
182
|
-
|
|
309
|
+
const id = String(existing.node.id);
|
|
310
|
+
if (select) {
|
|
311
|
+
updateMenuList((previous) => revealRow(previous, id));
|
|
312
|
+
setSelectedId(id);
|
|
313
|
+
}
|
|
183
314
|
return {
|
|
184
315
|
rootId: String(existing.root.id),
|
|
185
|
-
nodeId:
|
|
316
|
+
nodeId: id,
|
|
186
317
|
label: resolveRowLabel(existing.node),
|
|
187
318
|
alreadyLoaded: true
|
|
188
319
|
};
|
|
189
320
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
321
|
+
// A level of ANOTHER tree (an associated tree's hit, load-to-tree) is
|
|
322
|
+
// remembered, so its rows can find their levels on expand and refresh.
|
|
323
|
+
if (!findNodeById(seed, configNode === null || configNode === void 0 ? void 0 : configNode.id)) {
|
|
324
|
+
foreignLevelsRef.current = [
|
|
325
|
+
...foreignLevelsRef.current.filter((level) => level.id !== configNode.id),
|
|
326
|
+
configNode
|
|
327
|
+
];
|
|
328
|
+
}
|
|
329
|
+
const root = composeRecord(configNode, row);
|
|
197
330
|
if (!root)
|
|
198
331
|
return null;
|
|
332
|
+
if (joinsRootGroups(configNode)) {
|
|
333
|
+
loadedRootsRef.current = [
|
|
334
|
+
...loadedRootsRef.current,
|
|
335
|
+
{ level: configNode, row, node: root }
|
|
336
|
+
];
|
|
337
|
+
// Regrouping mints new row ids, so the selection is carried by record.
|
|
338
|
+
const previous = menuListRef.current;
|
|
339
|
+
const list = composeWorkspace(previous);
|
|
340
|
+
const placed = key != null ? locateRecordByKey(list, key) : null;
|
|
341
|
+
if (!placed) {
|
|
342
|
+
// No heading took it (a hidden outlier): it was never loaded, so the
|
|
343
|
+
// next rebuild must not carry it either.
|
|
344
|
+
loadedRootsRef.current = loadedRootsRef.current.filter((loaded) => loaded.node !== root);
|
|
345
|
+
return null;
|
|
346
|
+
}
|
|
347
|
+
const id = String(placed.node.id);
|
|
348
|
+
const nextSelectedId = select
|
|
349
|
+
? id
|
|
350
|
+
: reselectAfterRebuild({
|
|
351
|
+
list,
|
|
352
|
+
previous,
|
|
353
|
+
selectedId: selectedIdRef.current,
|
|
354
|
+
autoSelectFirst: false
|
|
355
|
+
});
|
|
356
|
+
selectedIdRef.current = nextSelectedId;
|
|
357
|
+
// A record asked for by hand is on screen whether or not it is the one
|
|
358
|
+
// selected: its heading opens. (The workspace also keeps the record's
|
|
359
|
+
// placeholder until the tree draws its row.)
|
|
360
|
+
updateMenuList(() => revealRow(revealRow(list, nextSelectedId), id));
|
|
361
|
+
setSelectedId(nextSelectedId);
|
|
362
|
+
return {
|
|
363
|
+
rootId: String(placed.root.id),
|
|
364
|
+
nodeId: id,
|
|
365
|
+
label: resolveRowLabel(placed.node),
|
|
366
|
+
alreadyLoaded: false
|
|
367
|
+
};
|
|
368
|
+
}
|
|
199
369
|
// APPENDED, never sorted in. The root list's order belongs to the Data
|
|
200
370
|
// Builder query's orderElements — the rows already on screen are in the
|
|
201
371
|
// order the query authored, and a load has no business rewriting it. The
|
|
@@ -204,66 +374,150 @@ export const useInquiryMenu = ({ seed, rows, catalogObjects, promotedEntities, a
|
|
|
204
374
|
// Into the first RECORD menu — dropped-page roots sit above it as menus
|
|
205
375
|
// of their own (droppedPageModel), and a record never joins one.
|
|
206
376
|
const pages = droppedPagesRef.current.length;
|
|
207
|
-
|
|
377
|
+
updateMenuList((previous) => {
|
|
208
378
|
if (previous.length <= pages)
|
|
209
379
|
return [...previous, [root]];
|
|
210
380
|
return previous.map((menu, index) => index === pages ? [...menu, root] : menu);
|
|
211
381
|
});
|
|
212
382
|
// Remembered so the next rebuild re-grafts it: a refetched root page has
|
|
213
383
|
// no reason to contain a record the user reached for by hand.
|
|
214
|
-
loadedRootsRef.current = [
|
|
215
|
-
|
|
384
|
+
loadedRootsRef.current = [
|
|
385
|
+
...loadedRootsRef.current,
|
|
386
|
+
{ level: configNode, row, node: root }
|
|
387
|
+
];
|
|
388
|
+
if (select)
|
|
389
|
+
setSelectedId(String(root.id));
|
|
216
390
|
return {
|
|
217
391
|
rootId: String(root.id),
|
|
218
392
|
nodeId: String(root.id),
|
|
219
393
|
label: resolveRowLabel(root),
|
|
220
394
|
alreadyLoaded: false
|
|
221
395
|
};
|
|
222
|
-
}, [
|
|
396
|
+
}, [seed, composeRecord, updateMenuList, joinsRootGroups, composeWorkspace]);
|
|
223
397
|
/**
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
398
|
+
* Drop `source` onto `target` as a Load_Inquiry_Page drop and select the page
|
|
399
|
+
* root it loads (droppedPageModel). A drop onto a page root extends it in
|
|
400
|
+
* place; any other drop prepends a new page as its own menu, as v1 did.
|
|
401
|
+
* Returns null — and changes nothing — when the target configures no page
|
|
402
|
+
* for the dragged entity.
|
|
227
403
|
*/
|
|
228
|
-
const
|
|
229
|
-
|
|
230
|
-
if (
|
|
231
|
-
|
|
232
|
-
|
|
404
|
+
const dropOnto = useCallback((target, source) => {
|
|
405
|
+
var _a;
|
|
406
|
+
if (!dropPageNode(target, source, () => ''))
|
|
407
|
+
return null;
|
|
408
|
+
const drop = asDrop(source);
|
|
409
|
+
const existing = isDroppedPageNode(target)
|
|
410
|
+
? droppedPagesRef.current.find((page) => page.id === String(target.id))
|
|
411
|
+
: undefined;
|
|
412
|
+
const pageSource = existing
|
|
413
|
+
? Object.assign(Object.assign({}, existing), { drops: [...existing.drops, drop] }) : {
|
|
414
|
+
id: crypto.randomUUID(),
|
|
415
|
+
targetLevelId: String((_a = target.configNodeId) !== null && _a !== void 0 ? _a : ''),
|
|
416
|
+
targetRecord: target.nodeObj,
|
|
417
|
+
drops: [drop]
|
|
418
|
+
};
|
|
419
|
+
const page = rebuildDroppedPage(pageSource, findConfigLevel);
|
|
420
|
+
if (!page)
|
|
421
|
+
return null;
|
|
422
|
+
if (existing) {
|
|
423
|
+
droppedPagesRef.current = droppedPagesRef.current.map((candidate) => candidate.id === pageSource.id ? pageSource : candidate);
|
|
424
|
+
setMenuList((previous) => previous.map((menu) => menu.map((root) => (String(root.id) === pageSource.id ? page : root))));
|
|
233
425
|
}
|
|
234
426
|
else {
|
|
235
|
-
droppedPagesRef.current = [
|
|
427
|
+
droppedPagesRef.current = [pageSource, ...droppedPagesRef.current];
|
|
236
428
|
setMenuList((previous) => [[page], ...previous]);
|
|
237
429
|
}
|
|
238
|
-
setSelectedId(id);
|
|
239
|
-
|
|
430
|
+
setSelectedId(pageSource.id);
|
|
431
|
+
return page;
|
|
432
|
+
}, [findConfigLevel]);
|
|
240
433
|
/**
|
|
241
|
-
*
|
|
242
|
-
* a
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
434
|
+
* Swap one RECORD row's whole branch for a fresh composition of `row` — the
|
|
435
|
+
* refresh a mutation owes the rows no query owns (branchRefreshModel). The
|
|
436
|
+
* branch is composed by the SAME builder `loadRecord` uses, re-opened and
|
|
437
|
+
* re-fetched to where the user had it, and only then swapped in, so the
|
|
438
|
+
* selection is re-found by record key on the finished branch: the same
|
|
439
|
+
* record if it is still there, else its record parent, else the refreshed
|
|
440
|
+
* row. A null `row` means the record is gone and its row goes with it.
|
|
441
|
+
*
|
|
442
|
+
* `record` is the row as the caller read it. It is found by id, else by
|
|
443
|
+
* record on its level: the caller re-reads the record first, and a rebuild
|
|
444
|
+
* that lands meanwhile (the root page answering differently after the same
|
|
445
|
+
* save) re-mints every row id.
|
|
247
446
|
*/
|
|
248
|
-
const
|
|
249
|
-
|
|
447
|
+
const refreshRecord = useCallback(async (record, row, loadChildren) => {
|
|
448
|
+
var _a, _b, _c, _d, _e, _f;
|
|
449
|
+
var _g, _h;
|
|
450
|
+
const before = menuListRef.current;
|
|
451
|
+
const key = (_a = record.nodeObj) === null || _a === void 0 ? void 0 : _a.businessObjectKey;
|
|
452
|
+
const location = (_g = locateNodeById(before, String(record.id))) !== null && _g !== void 0 ? _g : (key == null
|
|
453
|
+
? null
|
|
454
|
+
: locateInMenus(before, (node) => {
|
|
455
|
+
var _a;
|
|
456
|
+
return !node.isGroupNode &&
|
|
457
|
+
node.configNodeId === record.configNodeId &&
|
|
458
|
+
((_a = node.nodeObj) === null || _a === void 0 ? void 0 : _a.businessObjectKey) === key;
|
|
459
|
+
}));
|
|
460
|
+
if (!location)
|
|
250
461
|
return;
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
462
|
+
const old = location.node;
|
|
463
|
+
let fresh = null;
|
|
464
|
+
if (row) {
|
|
465
|
+
const level = findConfigLevel(old.configNodeId);
|
|
466
|
+
fresh = level ? composeRecord(level, row) : null;
|
|
467
|
+
if (!fresh)
|
|
468
|
+
return;
|
|
469
|
+
await reloadBranch(fresh, old, loadChildren);
|
|
470
|
+
// It sits where the old row sat.
|
|
471
|
+
fresh.parentId = old.parentId;
|
|
472
|
+
fresh.parentGroupId = old.parentGroupId;
|
|
473
|
+
fresh['parentGroupName'] = old['parentGroupName'];
|
|
474
|
+
fresh['entityNodeParentId'] = old['entityNodeParentId'];
|
|
475
|
+
}
|
|
476
|
+
/** `old` swapped for `fresh` — or dropped, when the record is gone. */
|
|
477
|
+
const swap = (nodes) => nodes.flatMap((node) => node.id !== old.id ? [node] : fresh ? [fresh] : []);
|
|
478
|
+
const isRoot = location.root === old;
|
|
479
|
+
const list = menuListRef.current
|
|
480
|
+
.map((menu) => isRoot
|
|
481
|
+
? swap(menu)
|
|
482
|
+
: patchMenuEntry(menu, new Set([old.parentId]), (copy) => {
|
|
483
|
+
var _a;
|
|
484
|
+
copy.children = swap((_a = copy.children) !== null && _a !== void 0 ? _a : []);
|
|
485
|
+
return true;
|
|
486
|
+
}))
|
|
487
|
+
.filter((menu) => menu.length > 0);
|
|
488
|
+
// By record as well as by row: a loaded root that joined a group
|
|
489
|
+
// heading is not a depth-0 root, and regrouping re-minted its id.
|
|
490
|
+
const oldKey = (_b = old.nodeObj) === null || _b === void 0 ? void 0 : _b.businessObjectKey;
|
|
491
|
+
loadedRootsRef.current = loadedRootsRef.current.flatMap((loaded) => loaded.node.id !== old.id &&
|
|
492
|
+
(oldKey == null ||
|
|
493
|
+
loaded.level.id !== old.configNodeId ||
|
|
494
|
+
loaded.row.businessObjectKey !== oldKey)
|
|
495
|
+
? [loaded]
|
|
496
|
+
: fresh && row
|
|
497
|
+
? [Object.assign(Object.assign({}, loaded), { row, node: fresh })]
|
|
498
|
+
: []);
|
|
499
|
+
setMenuList(list);
|
|
500
|
+
// The selection as it is NOW: the re-fetch above takes a moment, and the
|
|
501
|
+
// user may have picked another row while it ran. A row outside the
|
|
502
|
+
// branch kept its id and stays selected; one inside it was re-minted and
|
|
503
|
+
// is found again by record — itself, else its parent, else the branch.
|
|
504
|
+
if (locateNodeById(list, selectedIdRef.current))
|
|
505
|
+
return;
|
|
506
|
+
const selectedAt = locateNodeById(menuListRef.current, selectedIdRef.current);
|
|
507
|
+
const selected = selectedAt === null || selectedAt === void 0 ? void 0 : selectedAt.node;
|
|
508
|
+
const reselected = [
|
|
509
|
+
(_c = selected === null || selected === void 0 ? void 0 : selected.nodeObj) === null || _c === void 0 ? void 0 : _c.businessObjectKey,
|
|
510
|
+
(_e = (_d = findRecordParent(menuListRef.current[(_h = selectedAt === null || selectedAt === void 0 ? void 0 : selectedAt.menuIndex) !== null && _h !== void 0 ? _h : location.menuIndex], selected)) === null || _d === void 0 ? void 0 : _d.nodeObj) === null || _e === void 0 ? void 0 : _e.businessObjectKey,
|
|
511
|
+
(_f = old.nodeObj) === null || _f === void 0 ? void 0 : _f.businessObjectKey
|
|
512
|
+
]
|
|
513
|
+
.filter((key) => key != null)
|
|
514
|
+
.map((key) => locateRecordByKey(list, key))
|
|
515
|
+
.find((found) => !!found);
|
|
516
|
+
setSelectedId(reselected ? String(reselected.node.id) : null);
|
|
517
|
+
}, [composeRecord, findConfigLevel]);
|
|
260
518
|
/** Expand every loaded level (v1 parity, minus its lazy fetch storm). */
|
|
261
519
|
const expandAll = useCallback(() => {
|
|
262
|
-
setMenuList((previous) =>
|
|
263
|
-
const next = previous.map((menu) => structuredClone(menu));
|
|
264
|
-
next.forEach((menu) => menu.forEach((root) => setExpandedDeep(root, true, true)));
|
|
265
|
-
return next;
|
|
266
|
-
});
|
|
520
|
+
setMenuList((previous) => setExpansion(previous, collectRowIds(previous, true), () => true));
|
|
267
521
|
}, []);
|
|
268
522
|
/**
|
|
269
523
|
* Expand ONE row and every ancestor above it, so it is on screen open — the
|
|
@@ -274,39 +528,15 @@ export const useInquiryMenu = ({ seed, rows, catalogObjects, promotedEntities, a
|
|
|
274
528
|
* when no such row is loaded.
|
|
275
529
|
*/
|
|
276
530
|
const expandNode = useCallback((nodeId) => {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
break;
|
|
283
|
-
}
|
|
284
|
-
if (target)
|
|
285
|
-
break;
|
|
286
|
-
}
|
|
287
|
-
if (!target)
|
|
288
|
-
return null;
|
|
289
|
-
const expandPath = (node) => {
|
|
290
|
-
var _a;
|
|
291
|
-
const onPath = String(node.id) === nodeId ||
|
|
292
|
-
((_a = node.children) !== null && _a !== void 0 ? _a : []).some((child) => expandPath(child));
|
|
293
|
-
if (onPath)
|
|
294
|
-
node.isExpanded = true;
|
|
295
|
-
return onPath;
|
|
296
|
-
};
|
|
297
|
-
setMenuList((previous) => {
|
|
298
|
-
const next = previous.map((menu) => structuredClone(menu));
|
|
299
|
-
next.forEach((menu) => menu.forEach((root) => expandPath(root)));
|
|
300
|
-
return next;
|
|
301
|
-
});
|
|
531
|
+
var _a;
|
|
532
|
+
var _b;
|
|
533
|
+
const target = (_b = (_a = locateNodeById(menuList, nodeId)) === null || _a === void 0 ? void 0 : _a.node) !== null && _b !== void 0 ? _b : null;
|
|
534
|
+
if (target)
|
|
535
|
+
setMenuList((previous) => revealRow(previous, nodeId, true));
|
|
302
536
|
return target;
|
|
303
537
|
}, [menuList]);
|
|
304
538
|
const collapseAll = useCallback(() => {
|
|
305
|
-
setMenuList((previous) =>
|
|
306
|
-
const next = previous.map((menu) => structuredClone(menu));
|
|
307
|
-
next.forEach((menu) => menu.forEach((root) => setExpandedDeep(root, false, false)));
|
|
308
|
-
return next;
|
|
309
|
-
});
|
|
539
|
+
setMenuList((previous) => setExpansion(previous, collectRowIds(previous, false), () => false));
|
|
310
540
|
}, []);
|
|
311
541
|
/**
|
|
312
542
|
* Remove one ROOT record from the workspace (v1 handleRemoveMenuItem, now
|
|
@@ -318,14 +548,21 @@ export const useInquiryMenu = ({ seed, rows, catalogObjects, promotedEntities, a
|
|
|
318
548
|
* is CLEARED, never handed to a neighbour (rootRemovalModel).
|
|
319
549
|
*/
|
|
320
550
|
const removeRoot = useCallback((rootId) => {
|
|
551
|
+
var _a;
|
|
321
552
|
const outcome = removeRootFromMenus(menuList, rootId, selectedId);
|
|
322
553
|
if (!outcome.removed)
|
|
323
554
|
return;
|
|
324
555
|
setMenuList(outcome.menus);
|
|
325
556
|
// Removing a loaded root must also retire it from the graft list, or the
|
|
326
557
|
// next rebuild would bring back the row the user just dismissed.
|
|
327
|
-
|
|
328
|
-
|
|
558
|
+
// By record, not row id: a root under a group heading was re-minted when
|
|
559
|
+
// the page regrouped around it.
|
|
560
|
+
const key = (_a = outcome.removed.nodeObj) === null || _a === void 0 ? void 0 : _a.businessObjectKey;
|
|
561
|
+
if (key != null)
|
|
562
|
+
removedKeysRef.current.add(key);
|
|
563
|
+
loadedRootsRef.current = loadedRootsRef.current.filter((loaded) => String(loaded.node.id) !== rootId &&
|
|
564
|
+
(key == null || loaded.row.businessObjectKey !== key));
|
|
565
|
+
droppedPagesRef.current = droppedPagesRef.current.filter((page) => page.id !== rootId);
|
|
329
566
|
setSelectedId(outcome.selectedNodeId);
|
|
330
567
|
}, [menuList, selectedId]);
|
|
331
568
|
/**
|
|
@@ -342,17 +579,10 @@ export const useInquiryMenu = ({ seed, rows, catalogObjects, promotedEntities, a
|
|
|
342
579
|
return;
|
|
343
580
|
const wanted = new Set(ids);
|
|
344
581
|
setMenuList((previous) => {
|
|
582
|
+
const next = setExpansion(previous, wanted, () => true);
|
|
345
583
|
// Nothing to do when every wanted row is already open — guards the effect
|
|
346
584
|
// that calls this on each match-set change from looping.
|
|
347
|
-
|
|
348
|
-
const check = (node) => {
|
|
349
|
-
var _a;
|
|
350
|
-
if (wanted.has(String(node.id)) && !node.isExpanded)
|
|
351
|
-
needsWork = true;
|
|
352
|
-
((_a = node.children) !== null && _a !== void 0 ? _a : []).forEach(check);
|
|
353
|
-
};
|
|
354
|
-
previous.forEach((menu) => menu.forEach(check));
|
|
355
|
-
if (!needsWork)
|
|
585
|
+
if (next === previous)
|
|
356
586
|
return previous;
|
|
357
587
|
if (!expansionSnapshotRef.current) {
|
|
358
588
|
const snapshot = new Map();
|
|
@@ -364,14 +594,6 @@ export const useInquiryMenu = ({ seed, rows, catalogObjects, promotedEntities, a
|
|
|
364
594
|
previous.forEach((menu) => menu.forEach(record));
|
|
365
595
|
expansionSnapshotRef.current = snapshot;
|
|
366
596
|
}
|
|
367
|
-
const next = previous.map((menu) => structuredClone(menu));
|
|
368
|
-
const open = (node) => {
|
|
369
|
-
var _a;
|
|
370
|
-
if (wanted.has(String(node.id)))
|
|
371
|
-
node.isExpanded = true;
|
|
372
|
-
((_a = node.children) !== null && _a !== void 0 ? _a : []).forEach(open);
|
|
373
|
-
};
|
|
374
|
-
next.forEach((menu) => menu.forEach(open));
|
|
375
597
|
return next;
|
|
376
598
|
});
|
|
377
599
|
}, []);
|
|
@@ -380,47 +602,63 @@ export const useInquiryMenu = ({ seed, rows, catalogObjects, promotedEntities, a
|
|
|
380
602
|
if (!snapshot)
|
|
381
603
|
return;
|
|
382
604
|
expansionSnapshotRef.current = null;
|
|
383
|
-
setMenuList((previous) =>
|
|
384
|
-
const next = previous.map((menu) => structuredClone(menu));
|
|
385
|
-
const apply = (node) => {
|
|
386
|
-
var _a;
|
|
387
|
-
const was = snapshot.get(String(node.id));
|
|
388
|
-
if (was !== undefined)
|
|
389
|
-
node.isExpanded = was;
|
|
390
|
-
((_a = node.children) !== null && _a !== void 0 ? _a : []).forEach(apply);
|
|
391
|
-
};
|
|
392
|
-
next.forEach((menu) => menu.forEach(apply));
|
|
393
|
-
return next;
|
|
394
|
-
});
|
|
605
|
+
setMenuList((previous) => setExpansion(previous, new Set(snapshot.keys()), (node) => !!snapshot.get(String(node.id))));
|
|
395
606
|
}, []);
|
|
396
607
|
/** Reset to the seeded root page (drops search-loaded roots + removals). */
|
|
608
|
+
/** The toolbar's Refresh: the page's removed records come back. */
|
|
609
|
+
const restoreRemoved = useCallback(() => {
|
|
610
|
+
if (!removedKeysRef.current.size)
|
|
611
|
+
return;
|
|
612
|
+
removedKeysRef.current.clear();
|
|
613
|
+
const previous = menuListRef.current;
|
|
614
|
+
const list = composeWorkspace(previous);
|
|
615
|
+
const nextSelectedId = reselectAfterRebuild({
|
|
616
|
+
list,
|
|
617
|
+
previous,
|
|
618
|
+
selectedId: selectedIdRef.current,
|
|
619
|
+
autoSelectFirst: false
|
|
620
|
+
});
|
|
621
|
+
// Seen at once (the refs): the rebuild re-minted every row id, and the
|
|
622
|
+
// refresh that follows in the same tick looks the selection up by id.
|
|
623
|
+
selectedIdRef.current = nextSelectedId;
|
|
624
|
+
updateMenuList(() => revealRow(list, nextSelectedId));
|
|
625
|
+
setSelectedId(nextSelectedId);
|
|
626
|
+
}, [composeWorkspace, updateMenuList]);
|
|
397
627
|
const resetTree = useCallback(() => {
|
|
398
628
|
// Reset is the ONE rebuild that keeps nothing — the graft list goes with it,
|
|
399
629
|
// so the tree really does come back as the query authored it.
|
|
400
630
|
loadedRootsRef.current = [];
|
|
401
631
|
droppedPagesRef.current = [];
|
|
402
|
-
|
|
403
|
-
|
|
632
|
+
foreignLevelsRef.current = [];
|
|
633
|
+
removedKeysRef.current.clear();
|
|
634
|
+
const list = buildSeededList([]);
|
|
404
635
|
// Reset goes all the way back to how the tree opens — which, for a tree
|
|
405
636
|
// with a landing screen, is the landing screen.
|
|
406
|
-
|
|
637
|
+
const firstId = autoSelectFirst ? firstRecordId(list) : null;
|
|
638
|
+
setMenuList(revealRow(list, firstId));
|
|
639
|
+
setSelectedId(firstId);
|
|
407
640
|
}, [buildSeededList, autoSelectFirst]);
|
|
408
641
|
return {
|
|
409
642
|
menuList,
|
|
643
|
+
menuListRef,
|
|
410
644
|
setMenuList,
|
|
645
|
+
seededRows,
|
|
411
646
|
selectedId,
|
|
647
|
+
selectedIdRef,
|
|
412
648
|
selectedNode,
|
|
413
649
|
selectedRoot,
|
|
414
650
|
selectedParent,
|
|
415
651
|
handleSelectNode,
|
|
416
652
|
selectNodeById,
|
|
417
653
|
loadRecord,
|
|
418
|
-
|
|
419
|
-
|
|
654
|
+
dropOnto,
|
|
655
|
+
refreshRecord,
|
|
656
|
+
findConfigLevel,
|
|
420
657
|
expandAll,
|
|
421
658
|
expandNode,
|
|
422
659
|
collapseAll,
|
|
423
660
|
removeRoot,
|
|
661
|
+
restoreRemoved,
|
|
424
662
|
resetTree,
|
|
425
663
|
expandForFilter,
|
|
426
664
|
restoreExpansion
|