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
|
@@ -2,34 +2,32 @@
|
|
|
2
2
|
* Structural + semantic tree validation — the thing the legacy app never had.
|
|
3
3
|
* Returns structured issues consumed identically by the UI (inline) and the
|
|
4
4
|
* AI copilot (repair loop). Pure: no React, no HTTP.
|
|
5
|
+
*
|
|
6
|
+
* A message never names its node: a consumer prefixes the level the issue's
|
|
7
|
+
* `nodeId` points at (TreeSerializationError names it by the node's name).
|
|
5
8
|
*/
|
|
6
9
|
import { isEntityNode } from './types';
|
|
7
|
-
import { legalChildEntities,
|
|
8
|
-
import { toWireString } from './wireString';
|
|
10
|
+
import { legalChildEntities, sameEntityName } from './legalChildren';
|
|
9
11
|
/**
|
|
10
12
|
* Legacy required node fields (TreeConfiguration.jsx:472-481 validateFormValues),
|
|
11
13
|
* split by what actually breaks at runtime. Only catalogReturnObject is
|
|
12
14
|
* load-bearing (the backend's panel/node-action join and child loading key off
|
|
13
15
|
* it) — missing it is an error the strict writer refuses to save. The rest are
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
16
|
+
* not findings: Inquiry falls back gracefully (a blank name shows as Unnamed,
|
|
17
|
+
* a blank record label shows the level name), and plenty of working production
|
|
18
|
+
* trees predate the legacy form's requirements.
|
|
17
19
|
*/
|
|
18
20
|
const REQUIRED_FIELDS = ['catalogReturnObject'];
|
|
19
21
|
// sequenceNo is deliberately NOT here: the legacy form required it, but the
|
|
20
22
|
// runtime never orders sibling levels by it (levels render in array order;
|
|
21
23
|
// only actions/tabs/header-pages sub-lists use sequenceNo) — warning about a
|
|
22
24
|
// blank one told builders to fix a field that changes nothing.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const RECOMMENDED_FIELDS = ['name', 'displayName'];
|
|
26
|
-
const RECOMMENDED_MESSAGES = {
|
|
27
|
-
name: (label) => `A node ("${label}") has no name — it will show as Untitled.`,
|
|
28
|
-
displayName: (label) => `"${label}" has no record label — rows in this level will show the level name instead.`
|
|
29
|
-
};
|
|
25
|
+
/** The issue path of a tab's page — what the tab's page picker shows. */
|
|
26
|
+
export const tabPagePath = (tabId) => `tabs.${String(tabId)}.page`;
|
|
30
27
|
const activeNodes = (tree) => tree.nodes.filter((node) => !node.isDeleted);
|
|
31
28
|
export const validateTree = (tree, context) => {
|
|
32
|
-
var _a;
|
|
29
|
+
var _a, _b;
|
|
30
|
+
var _c;
|
|
33
31
|
const issues = [];
|
|
34
32
|
const byId = new Map();
|
|
35
33
|
for (const node of tree.nodes) {
|
|
@@ -52,7 +50,9 @@ export const validateTree = (tree, context) => {
|
|
|
52
50
|
byId.set(node.id, node);
|
|
53
51
|
}
|
|
54
52
|
// Exactly one active root — GET {id}/detailed NPEs server-side otherwise (§2).
|
|
55
|
-
|
|
53
|
+
// A group heading hangs off its parentGroupId, so its blank parentId does not
|
|
54
|
+
// make it a root.
|
|
55
|
+
const roots = activeNodes(tree).filter((node) => isEntityNode(node) && !node.parentId);
|
|
56
56
|
if (roots.length === 0) {
|
|
57
57
|
issues.push({
|
|
58
58
|
severity: 'error',
|
|
@@ -72,7 +72,7 @@ export const validateTree = (tree, context) => {
|
|
|
72
72
|
}
|
|
73
73
|
// Orphan parent references + parent-is-deleted warnings.
|
|
74
74
|
for (const node of activeNodes(tree)) {
|
|
75
|
-
if (node.parentId
|
|
75
|
+
if (!node.parentId)
|
|
76
76
|
continue;
|
|
77
77
|
const parent = byId.get(node.parentId);
|
|
78
78
|
if (!parent) {
|
|
@@ -80,7 +80,7 @@ export const validateTree = (tree, context) => {
|
|
|
80
80
|
severity: 'error',
|
|
81
81
|
code: 'orphan-parent',
|
|
82
82
|
nodeId: node.id,
|
|
83
|
-
message: `
|
|
83
|
+
message: `Points at missing parent ${node.parentId}.`
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
else if (parent.isDeleted) {
|
|
@@ -88,7 +88,7 @@ export const validateTree = (tree, context) => {
|
|
|
88
88
|
severity: 'warning',
|
|
89
89
|
code: 'parent-deleted',
|
|
90
90
|
nodeId: node.id,
|
|
91
|
-
message:
|
|
91
|
+
message: 'Its parent is soft-deleted, so it will not render.'
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -107,21 +107,21 @@ export const validateTree = (tree, context) => {
|
|
|
107
107
|
severity: 'error',
|
|
108
108
|
code: 'cycle',
|
|
109
109
|
nodeId: current.id,
|
|
110
|
-
message:
|
|
110
|
+
message: 'Its parent chain contains a cycle.'
|
|
111
111
|
});
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
visitState.set(current.id, 'visiting');
|
|
115
115
|
chain.push(current.id);
|
|
116
116
|
current =
|
|
117
|
-
current.parentId
|
|
117
|
+
current.parentId ? byId.get(current.parentId) : undefined;
|
|
118
118
|
}
|
|
119
119
|
for (const id of chain)
|
|
120
120
|
visitState.set(id, 'done');
|
|
121
121
|
};
|
|
122
122
|
for (const node of tree.nodes)
|
|
123
123
|
walkUp(node);
|
|
124
|
-
// Required
|
|
124
|
+
// Required fields on active entity nodes.
|
|
125
125
|
const isBlank = (value) => value === undefined || value === null || value === '';
|
|
126
126
|
for (const node of activeNodes(tree)) {
|
|
127
127
|
if (!isEntityNode(node))
|
|
@@ -133,27 +133,23 @@ export const validateTree = (tree, context) => {
|
|
|
133
133
|
code: 'missing-required-field',
|
|
134
134
|
nodeId: node.id,
|
|
135
135
|
path: field,
|
|
136
|
-
message: `
|
|
136
|
+
message: `Missing required field "${field}".`
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
path: field,
|
|
147
|
-
message: RECOMMENDED_MESSAGES[field](nodeLabel(node))
|
|
148
|
-
});
|
|
149
|
-
}
|
|
140
|
+
// 26.x draws a tab without a page as a blank, label-less tab. A tab with
|
|
141
|
+
// no id has no picker to point at, so its issue is the level's.
|
|
142
|
+
for (const tab of (_c = node.properties.tabs) !== null && _c !== void 0 ? _c : []) {
|
|
143
|
+
if ((_a = tab === null || tab === void 0 ? void 0 : tab.page) === null || _a === void 0 ? void 0 : _a.pageId)
|
|
144
|
+
continue;
|
|
145
|
+
issues.push(Object.assign(Object.assign({ severity: 'error', code: 'tab-page-missing', nodeId: node.id }, ((tab === null || tab === void 0 ? void 0 : tab.id) ? { path: tabPagePath(tab.id) } : {})), { message: 'Pick a page — a tab without one shows blank.' }));
|
|
150
146
|
}
|
|
151
147
|
}
|
|
152
148
|
// Catalog reachability (when context supplied): every non-root entity node's
|
|
153
149
|
// entity must be navigable from its parent's entity (the legal-children oracle).
|
|
154
|
-
if ((
|
|
150
|
+
if ((_b = context === null || context === void 0 ? void 0 : context.catalogObjects) === null || _b === void 0 ? void 0 : _b.length) {
|
|
155
151
|
for (const node of activeNodes(tree)) {
|
|
156
|
-
if (!isEntityNode(node) || node.parentId
|
|
152
|
+
if (!isEntityNode(node) || !node.parentId)
|
|
157
153
|
continue;
|
|
158
154
|
const parent = byId.get(node.parentId);
|
|
159
155
|
if (!parent || !isEntityNode(parent))
|
|
@@ -165,8 +161,7 @@ export const validateTree = (tree, context) => {
|
|
|
165
161
|
const legal = legalChildEntities(context.catalogObjects, parentEntity);
|
|
166
162
|
if (!legal.length)
|
|
167
163
|
continue; // parent entity unknown to this catalog — cannot judge
|
|
168
|
-
|
|
169
|
-
if (!legal.some((entity) => getSanitizedName(entity.catalogObjectName) === childName)) {
|
|
164
|
+
if (!legal.some((entity) => sameEntityName(entity.catalogObjectName, childEntity))) {
|
|
170
165
|
issues.push({
|
|
171
166
|
severity: 'error',
|
|
172
167
|
code: 'illegal-child-entity',
|
|
@@ -177,29 +172,6 @@ export const validateTree = (tree, context) => {
|
|
|
177
172
|
}
|
|
178
173
|
}
|
|
179
174
|
}
|
|
180
|
-
// Associated tree existence (when context supplied).
|
|
181
|
-
if (context === null || context === void 0 ? void 0 : context.knownTreeIds) {
|
|
182
|
-
for (const node of activeNodes(tree)) {
|
|
183
|
-
if (!isEntityNode(node))
|
|
184
|
-
continue;
|
|
185
|
-
const associatedTreeId = node.properties.associatedTreeId;
|
|
186
|
-
if (associatedTreeId && !context.knownTreeIds.has(associatedTreeId)) {
|
|
187
|
-
issues.push({
|
|
188
|
-
severity: 'warning',
|
|
189
|
-
code: 'unknown-associated-tree',
|
|
190
|
-
nodeId: node.id,
|
|
191
|
-
path: 'associatedTreeId',
|
|
192
|
-
message: `Node "${nodeLabel(node)}" references associated tree ${associatedTreeId}, which is not in the known tree list.`
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
175
|
return issues;
|
|
198
176
|
};
|
|
199
|
-
const nodeLabel = (node) => {
|
|
200
|
-
if (isEntityNode(node))
|
|
201
|
-
return node.properties.name || node.properties.displayName || node.id;
|
|
202
|
-
const label = node.properties.label;
|
|
203
|
-
return label == null ? node.id : toWireString(label);
|
|
204
|
-
};
|
|
205
177
|
//# sourceMappingURL=validate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/domain/inquiryTree/validate.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/domain/inquiryTree/validate.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAA0C,YAAY,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,EACL,kBAAkB,EAElB,cAAc,EACf,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;;GAQG;AACH,MAAM,eAAe,GAAG,CAAC,qBAAqB,CAAU,CAAC;AACzD,4EAA4E;AAC5E,2EAA2E;AAC3E,+EAA6E;AAC7E,+DAA+D;AAE/D,2EAAyE;AACzE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAc,EAAU,EAAE,CAAC,QAAQ,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;AAOpF,MAAM,WAAW,GAAG,CAAC,IAAiB,EAAc,EAAE,CACpD,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AAE/C,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,IAAiB,EACjB,OAA2B,EACR,EAAE,CAAC;;;IACtB,MAAM,MAAM,GAAsB,EAAE,CAAC;IACrC,MAAM,IAAI,GAAG,IAAI,GAAG,EAAoB,CAAC;IAEzC,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;QAC9B,IAAI,CAAC,IAAI,CAAC,EAAE,E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AAI,CAAC,KAAK,CAAC,MAAM;gBAAE,SAAS,CAAC,yDAAuD;YACpF,IACE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CACrB,cAAc,CAAC,MAAM,CAAC,iBAAiB,EAAE,WAAW,CAAC,CACtD,EACD,CAAC;gBACD,MAAM,CAAC,IAAI,CAAC;oBACV,QAAQ,EAAE,OAAO;oBACjB,IAAI,EAAE,sBAAsB;oBAC5B,MAAM,EAAE,IAAI,CAAC,EAAE;oBACf,IAAI,EAAE,qBAAqB;oBAC3B,OAAO,EAAE,WAAW,WAAW,0CAA0C,YAAY,IAAI;iBAC1F,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAAA,CACf,CAAC"}
|
|
@@ -1,27 +1,26 @@
|
|
|
1
|
+
import { legalChildEntities, sameEntityName } from "./legalChildren.mjs";
|
|
1
2
|
import { isEntityNode } from "./types.mjs";
|
|
2
|
-
import { toWireString } from "./wireString.mjs";
|
|
3
|
-
import { getSanitizedName, legalChildEntities } from "./legalChildren.mjs";
|
|
4
3
|
//#region src/domain/inquiryTree/validate.ts
|
|
5
4
|
/**
|
|
6
5
|
* Structural + semantic tree validation — the thing the legacy app never had.
|
|
7
6
|
* Returns structured issues consumed identically by the UI (inline) and the
|
|
8
7
|
* AI copilot (repair loop). Pure: no React, no HTTP.
|
|
8
|
+
*
|
|
9
|
+
* A message never names its node: a consumer prefixes the level the issue's
|
|
10
|
+
* `nodeId` points at (TreeSerializationError names it by the node's name).
|
|
9
11
|
*/
|
|
10
12
|
/**
|
|
11
13
|
* Legacy required node fields (TreeConfiguration.jsx:472-481 validateFormValues),
|
|
12
14
|
* split by what actually breaks at runtime. Only catalogReturnObject is
|
|
13
15
|
* load-bearing (the backend's panel/node-action join and child loading key off
|
|
14
16
|
* it) — missing it is an error the strict writer refuses to save. The rest are
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
17
|
+
* not findings: Inquiry falls back gracefully (a blank name shows as Unnamed,
|
|
18
|
+
* a blank record label shows the level name), and plenty of working production
|
|
19
|
+
* trees predate the legacy form's requirements.
|
|
18
20
|
*/
|
|
19
21
|
const REQUIRED_FIELDS = ["catalogReturnObject"];
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
name: (label) => `A node ("${label}") has no name — it will show as Untitled.`,
|
|
23
|
-
displayName: (label) => `"${label}" has no record label — rows in this level will show the level name instead.`
|
|
24
|
-
};
|
|
22
|
+
/** The issue path of a tab's page — what the tab's page picker shows. */
|
|
23
|
+
const tabPagePath = (tabId) => `tabs.${String(tabId)}.page`;
|
|
25
24
|
const activeNodes = (tree) => tree.nodes.filter((node) => !node.isDeleted);
|
|
26
25
|
const validateTree = (tree, context) => {
|
|
27
26
|
const issues = [];
|
|
@@ -43,7 +42,7 @@ const validateTree = (tree, context) => {
|
|
|
43
42
|
});
|
|
44
43
|
byId.set(node.id, node);
|
|
45
44
|
}
|
|
46
|
-
const roots = activeNodes(tree).filter((node) => node.parentId
|
|
45
|
+
const roots = activeNodes(tree).filter((node) => isEntityNode(node) && !node.parentId);
|
|
47
46
|
if (roots.length === 0) issues.push({
|
|
48
47
|
severity: "error",
|
|
49
48
|
code: "no-root",
|
|
@@ -56,19 +55,19 @@ const validateTree = (tree, context) => {
|
|
|
56
55
|
message: `More than one root node (${roots.length} found); the backend requires exactly one.`
|
|
57
56
|
});
|
|
58
57
|
for (const node of activeNodes(tree)) {
|
|
59
|
-
if (node.parentId
|
|
58
|
+
if (!node.parentId) continue;
|
|
60
59
|
const parent = byId.get(node.parentId);
|
|
61
60
|
if (!parent) issues.push({
|
|
62
61
|
severity: "error",
|
|
63
62
|
code: "orphan-parent",
|
|
64
63
|
nodeId: node.id,
|
|
65
|
-
message: `
|
|
64
|
+
message: `Points at missing parent ${node.parentId}.`
|
|
66
65
|
});
|
|
67
66
|
else if (parent.isDeleted) issues.push({
|
|
68
67
|
severity: "warning",
|
|
69
68
|
code: "parent-deleted",
|
|
70
69
|
nodeId: node.id,
|
|
71
|
-
message:
|
|
70
|
+
message: "Its parent is soft-deleted, so it will not render."
|
|
72
71
|
});
|
|
73
72
|
}
|
|
74
73
|
const visitState = /* @__PURE__ */ new Map();
|
|
@@ -83,13 +82,13 @@ const validateTree = (tree, context) => {
|
|
|
83
82
|
severity: "error",
|
|
84
83
|
code: "cycle",
|
|
85
84
|
nodeId: current.id,
|
|
86
|
-
message:
|
|
85
|
+
message: "Its parent chain contains a cycle."
|
|
87
86
|
});
|
|
88
87
|
break;
|
|
89
88
|
}
|
|
90
89
|
visitState.set(current.id, "visiting");
|
|
91
90
|
chain.push(current.id);
|
|
92
|
-
current = current.parentId
|
|
91
|
+
current = current.parentId ? byId.get(current.parentId) : void 0;
|
|
93
92
|
}
|
|
94
93
|
for (const id of chain) visitState.set(id, "done");
|
|
95
94
|
};
|
|
@@ -102,18 +101,21 @@ const validateTree = (tree, context) => {
|
|
|
102
101
|
code: "missing-required-field",
|
|
103
102
|
nodeId: node.id,
|
|
104
103
|
path: field,
|
|
105
|
-
message: `
|
|
106
|
-
});
|
|
107
|
-
for (const field of RECOMMENDED_FIELDS) if (isBlank(node.properties[field])) issues.push({
|
|
108
|
-
severity: "warning",
|
|
109
|
-
code: "missing-recommended-field",
|
|
110
|
-
nodeId: node.id,
|
|
111
|
-
path: field,
|
|
112
|
-
message: RECOMMENDED_MESSAGES[field](nodeLabel(node))
|
|
104
|
+
message: `Missing required field "${field}".`
|
|
113
105
|
});
|
|
106
|
+
for (const tab of node.properties.tabs ?? []) {
|
|
107
|
+
if (tab?.page?.pageId) continue;
|
|
108
|
+
issues.push({
|
|
109
|
+
severity: "error",
|
|
110
|
+
code: "tab-page-missing",
|
|
111
|
+
nodeId: node.id,
|
|
112
|
+
...tab?.id ? { path: tabPagePath(tab.id) } : {},
|
|
113
|
+
message: "Pick a page — a tab without one shows blank."
|
|
114
|
+
});
|
|
115
|
+
}
|
|
114
116
|
}
|
|
115
117
|
if (context?.catalogObjects?.length) for (const node of activeNodes(tree)) {
|
|
116
|
-
if (!isEntityNode(node) || node.parentId
|
|
118
|
+
if (!isEntityNode(node) || !node.parentId) continue;
|
|
117
119
|
const parent = byId.get(node.parentId);
|
|
118
120
|
if (!parent || !isEntityNode(parent)) continue;
|
|
119
121
|
const parentEntity = parent.properties.catalogReturnObject;
|
|
@@ -121,8 +123,7 @@ const validateTree = (tree, context) => {
|
|
|
121
123
|
if (!parentEntity || !childEntity) continue;
|
|
122
124
|
const legal = legalChildEntities(context.catalogObjects, parentEntity);
|
|
123
125
|
if (!legal.length) continue;
|
|
124
|
-
|
|
125
|
-
if (!legal.some((entity) => getSanitizedName(entity.catalogObjectName) === childName)) issues.push({
|
|
126
|
+
if (!legal.some((entity) => sameEntityName(entity.catalogObjectName, childEntity))) issues.push({
|
|
126
127
|
severity: "error",
|
|
127
128
|
code: "illegal-child-entity",
|
|
128
129
|
nodeId: node.id,
|
|
@@ -130,25 +131,9 @@ const validateTree = (tree, context) => {
|
|
|
130
131
|
message: `Entity "${childEntity}" is not reachable from parent entity "${parentEntity}".`
|
|
131
132
|
});
|
|
132
133
|
}
|
|
133
|
-
if (context?.knownTreeIds) for (const node of activeNodes(tree)) {
|
|
134
|
-
if (!isEntityNode(node)) continue;
|
|
135
|
-
const associatedTreeId = node.properties.associatedTreeId;
|
|
136
|
-
if (associatedTreeId && !context.knownTreeIds.has(associatedTreeId)) issues.push({
|
|
137
|
-
severity: "warning",
|
|
138
|
-
code: "unknown-associated-tree",
|
|
139
|
-
nodeId: node.id,
|
|
140
|
-
path: "associatedTreeId",
|
|
141
|
-
message: `Node "${nodeLabel(node)}" references associated tree ${associatedTreeId}, which is not in the known tree list.`
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
134
|
return issues;
|
|
145
135
|
};
|
|
146
|
-
const nodeLabel = (node) => {
|
|
147
|
-
if (isEntityNode(node)) return node.properties.name || node.properties.displayName || node.id;
|
|
148
|
-
const label = node.properties.label;
|
|
149
|
-
return label == null ? node.id : toWireString(label);
|
|
150
|
-
};
|
|
151
136
|
//#endregion
|
|
152
|
-
export { validateTree };
|
|
137
|
+
export { tabPagePath, validateTree };
|
|
153
138
|
|
|
154
139
|
//# sourceMappingURL=validate.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.mjs","names":["InquiryTree","TreeNode","ValidationIssue","isEntityNode","legalChildEntities","CatalogObject","getSanitizedName","toWireString","REQUIRED_FIELDS","const","RECOMMENDED_FIELDS","RECOMMENDED_MESSAGES","Record","label","name","displayName","ValidationContext","catalogObjects","knownTreeIds","Set","activeNodes","tree","nodes","filter","node","isDeleted","validateTree","context","issues","byId","Map","id","push","severity","code","message","has","nodeId","set","roots","parentId","length","root","slice","parent","get","nodeLabel","visitState","walkUp","chain","current","undefined","isBlank","value","field","properties","path","parentEntity","catalogReturnObject","childEntity","legal","childName","some","entity","catalogObjectName","associatedTreeId"],"sources":["../../../src/domain/inquiryTree/validate.ts"],"sourcesContent":["/**\n * Structural + semantic tree validation — the thing the legacy app never had.\n * Returns structured issues consumed identically by the UI (inline) and the\n * AI copilot (repair loop). Pure: no React, no HTTP.\n */\nimport { InquiryTree, TreeNode, ValidationIssue, isEntityNode } from './types';\nimport {\n legalChildEntities,\n CatalogObject,\n getSanitizedName\n} from './legalChildren';\nimport { toWireString } from './wireString';\n\n/**\n * Legacy required node fields (TreeConfiguration.jsx:472-481 validateFormValues),\n * split by what actually breaks at runtime. Only catalogReturnObject is\n * load-bearing (the backend's panel/node-action join and child loading key off\n * it) — missing it is an error the strict writer refuses to save. The rest are\n * warnings: Inquiry falls back gracefully, and plenty of working production\n * trees predate the legacy form's requirements — flagging them red (and\n * refusing to save the whole tree) over a blank description helps no one.\n */\nconst REQUIRED_FIELDS = ['catalogReturnObject'] as const;\n// sequenceNo is deliberately NOT here: the legacy form required it, but the\n// runtime never orders sibling levels by it (levels render in array order;\n// only actions/tabs/header-pages sub-lists use sequenceNo) — warning about a\n// blank one told builders to fix a field that changes nothing.\n// description is read by nothing — not the runtime, not the builder — so its\n// absence is not a finding.\nconst RECOMMENDED_FIELDS = ['name', 'displayName'] as const;\n\nconst RECOMMENDED_MESSAGES: Record<\n (typeof RECOMMENDED_FIELDS)[number],\n (label: string) => string\n> = {\n name: (label) => `A node (\"${label}\") has no name — it will show as Untitled.`,\n displayName: (label) =>\n `\"${label}\" has no record label — rows in this level will show the level name instead.`\n};\n\nexport interface ValidationContext {\n /** Catalog objects for the tree's apiMethodInstance — enables the reachability check. */\n catalogObjects?: CatalogObject[];\n /** Known tree ids — enables the associatedTreeId existence check. */\n knownTreeIds?: Set<string>;\n}\n\nconst activeNodes = (tree: InquiryTree): TreeNode[] =>\n tree.nodes.filter((node) => !node.isDeleted);\n\nexport const validateTree = (\n tree: InquiryTree,\n context?: ValidationContext\n): ValidationIssue[] => {\n const issues: ValidationIssue[] = [];\n const byId = new Map<string, TreeNode>();\n\n for (const node of tree.nodes) {\n if (!node.id) {\n issues.push({\n severity: 'error',\n code: 'missing-node-id',\n message: 'A node has no id.'\n });\n continue;\n }\n if (byId.has(node.id)) {\n issues.push({\n severity: 'error',\n code: 'duplicate-node-id',\n nodeId: node.id,\n message: `Duplicate node id ${node.id}.`\n });\n }\n byId.set(node.id, node);\n }\n\n // Exactly one active root — GET {id}/detailed NPEs server-side otherwise (§2).\n const roots = activeNodes(tree).filter((node) => node.parentId === null);\n if (roots.length === 0) {\n issues.push({\n severity: 'error',\n code: 'no-root',\n message: 'The tree has no root node.'\n });\n } else if (roots.length > 1) {\n for (const root of roots.slice(1)) {\n issues.push({\n severity: 'error',\n code: 'multiple-roots',\n nodeId: root.id,\n message: `More than one root node (${roots.length} found); the backend requires exactly one.`\n });\n }\n }\n\n // Orphan parent references + parent-is-deleted warnings.\n for (const node of activeNodes(tree)) {\n if (node.parentId === null) continue;\n const parent = byId.get(node.parentId);\n if (!parent) {\n issues.push({\n severity: 'error',\n code: 'orphan-parent',\n nodeId: node.id,\n message: `Node \"${nodeLabel(node)}\" points at missing parent ${\n node.parentId\n }.`\n });\n } else if (parent.isDeleted) {\n issues.push({\n severity: 'warning',\n code: 'parent-deleted',\n nodeId: node.id,\n message: `Node \"${nodeLabel(\n node\n )}\" has a soft-deleted parent; it will not render.`\n });\n }\n }\n\n // Cycles.\n const visitState = new Map<string, 'visiting' | 'done'>();\n const walkUp = (node: TreeNode): void => {\n if (visitState.get(node.id) === 'done') return;\n const chain: string[] = [];\n let current: TreeNode | undefined = node;\n while (current) {\n if (visitState.get(current.id) === 'done') break;\n if (visitState.get(current.id) === 'visiting') {\n issues.push({\n severity: 'error',\n code: 'cycle',\n nodeId: current.id,\n message: `Parent chain of node ${current.id} contains a cycle.`\n });\n break;\n }\n visitState.set(current.id, 'visiting');\n chain.push(current.id);\n current =\n current.parentId !== null ? byId.get(current.parentId) : undefined;\n }\n for (const id of chain) visitState.set(id, 'done');\n };\n for (const node of tree.nodes) walkUp(node);\n\n // Required + recommended fields on active entity nodes.\n const isBlank = (value: unknown): boolean =>\n value === undefined || value === null || value === '';\n for (const node of activeNodes(tree)) {\n if (!isEntityNode(node)) continue;\n for (const field of REQUIRED_FIELDS) {\n if (isBlank(node.properties[field])) {\n issues.push({\n severity: 'error',\n code: 'missing-required-field',\n nodeId: node.id,\n path: field,\n message: `Node \"${nodeLabel(\n node\n )}\" is missing required field \"${field}\".`\n });\n }\n }\n for (const field of RECOMMENDED_FIELDS) {\n if (isBlank(node.properties[field])) {\n issues.push({\n severity: 'warning',\n code: 'missing-recommended-field',\n nodeId: node.id,\n path: field,\n message: RECOMMENDED_MESSAGES[field](nodeLabel(node))\n });\n }\n }\n }\n\n // Catalog reachability (when context supplied): every non-root entity node's\n // entity must be navigable from its parent's entity (the legal-children oracle).\n if (context?.catalogObjects?.length) {\n for (const node of activeNodes(tree)) {\n if (!isEntityNode(node) || node.parentId === null) continue;\n const parent = byId.get(node.parentId);\n if (!parent || !isEntityNode(parent)) continue;\n const parentEntity = parent.properties.catalogReturnObject;\n const childEntity = node.properties.catalogReturnObject;\n if (!parentEntity || !childEntity) continue;\n const legal = legalChildEntities(context.catalogObjects, parentEntity);\n if (!legal.length) continue; // parent entity unknown to this catalog — cannot judge\n const childName = getSanitizedName(childEntity);\n if (\n !legal.some(\n (entity) => getSanitizedName(entity.catalogObjectName) === childName\n )\n ) {\n issues.push({\n severity: 'error',\n code: 'illegal-child-entity',\n nodeId: node.id,\n path: 'catalogReturnObject',\n message: `Entity \"${childEntity}\" is not reachable from parent entity \"${parentEntity}\".`\n });\n }\n }\n }\n\n // Associated tree existence (when context supplied).\n if (context?.knownTreeIds) {\n for (const node of activeNodes(tree)) {\n if (!isEntityNode(node)) continue;\n const associatedTreeId = node.properties.associatedTreeId;\n if (associatedTreeId && !context.knownTreeIds.has(associatedTreeId)) {\n issues.push({\n severity: 'warning',\n code: 'unknown-associated-tree',\n nodeId: node.id,\n path: 'associatedTreeId',\n message: `Node \"${nodeLabel(\n node\n )}\" references associated tree ${associatedTreeId}, which is not in the known tree list.`\n });\n }\n }\n }\n\n return issues;\n};\n\nconst nodeLabel = (node: TreeNode): string => {\n if (isEntityNode(node))\n return node.properties.name || node.properties.displayName || node.id;\n const label = (node.properties as { label?: unknown }).label;\n return label == null ? node.id : toWireString(label);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAsBA,MAAMQ,kBAAkB,CAAC,sBAAsB;AAO/C,MAAME,qBAAqB,CAAC,QAAQ,cAAc;AAElD,MAAMC,uBAGF;CACFG,OAAOD,UAAU,YAAYA,MAAK;CAClCE,cAAcF,UACZ,IAAIA,MAAK;CACZ;AASD,MAAMO,eAAeC,SACnBA,KAAKC,MAAMC,QAAQC,SAAS,CAACA,KAAKC,UAAU;AAE9C,MAAaC,gBACXL,MACAM,YACsB;CACtB,MAAMC,SAA4B,EAAE;CACpC,MAAMC,uBAAO,IAAIC,KAAuB;AAExC,MAAK,MAAMN,QAAQH,KAAKC,OAAO;AAC7B,MAAI,CAACE,KAAKO,IAAI;AAC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ValidationIssue","isEntityNode","legalChildEntities","CatalogObject","sameEntityName","REQUIRED_FIELDS","const","tabPagePath","tabId","String","ValidationContext","catalogObjects","activeNodes","tree","nodes","filter","node","isDeleted","validateTree","context","issues","byId","Map","id","push","severity","code","message","has","nodeId","set","roots","parentId","length","root","slice","parent","get","visitState","walkUp","chain","current","undefined","isBlank","value","field","properties","path","tab","tabs","page","pageId","parentEntity","catalogReturnObject","childEntity","legal","some","entity","catalogObjectName"],"sources":["../../../src/domain/inquiryTree/validate.ts"],"sourcesContent":["/**\n * Structural + semantic tree validation — the thing the legacy app never had.\n * Returns structured issues consumed identically by the UI (inline) and the\n * AI copilot (repair loop). Pure: no React, no HTTP.\n *\n * A message never names its node: a consumer prefixes the level the issue's\n * `nodeId` points at (TreeSerializationError names it by the node's name).\n */\nimport { InquiryTree, TreeNode, ValidationIssue, isEntityNode } from './types';\nimport {\n legalChildEntities,\n CatalogObject,\n sameEntityName\n} from './legalChildren';\n\n/**\n * Legacy required node fields (TreeConfiguration.jsx:472-481 validateFormValues),\n * split by what actually breaks at runtime. Only catalogReturnObject is\n * load-bearing (the backend's panel/node-action join and child loading key off\n * it) — missing it is an error the strict writer refuses to save. The rest are\n * not findings: Inquiry falls back gracefully (a blank name shows as Unnamed,\n * a blank record label shows the level name), and plenty of working production\n * trees predate the legacy form's requirements.\n */\nconst REQUIRED_FIELDS = ['catalogReturnObject'] as const;\n// sequenceNo is deliberately NOT here: the legacy form required it, but the\n// runtime never orders sibling levels by it (levels render in array order;\n// only actions/tabs/header-pages sub-lists use sequenceNo) — warning about a\n// blank one told builders to fix a field that changes nothing.\n\n/** The issue path of a tab's page — what the tab's page picker shows. */\nexport const tabPagePath = (tabId: unknown): string => `tabs.${String(tabId)}.page`;\n\nexport interface ValidationContext {\n /** Catalog objects for the tree's apiMethodInstance — enables the reachability check. */\n catalogObjects?: CatalogObject[];\n}\n\nconst activeNodes = (tree: InquiryTree): TreeNode[] =>\n tree.nodes.filter((node) => !node.isDeleted);\n\nexport const validateTree = (\n tree: InquiryTree,\n context?: ValidationContext\n): ValidationIssue[] => {\n const issues: ValidationIssue[] = [];\n const byId = new Map<string, TreeNode>();\n\n for (const node of tree.nodes) {\n if (!node.id) {\n issues.push({\n severity: 'error',\n code: 'missing-node-id',\n message: 'A node has no id.'\n });\n continue;\n }\n if (byId.has(node.id)) {\n issues.push({\n severity: 'error',\n code: 'duplicate-node-id',\n nodeId: node.id,\n message: `Duplicate node id ${node.id}.`\n });\n }\n byId.set(node.id, node);\n }\n\n // Exactly one active root — GET {id}/detailed NPEs server-side otherwise (§2).\n // A group heading hangs off its parentGroupId, so its blank parentId does not\n // make it a root.\n const roots = activeNodes(tree).filter(\n (node) => isEntityNode(node) && !node.parentId\n );\n if (roots.length === 0) {\n issues.push({\n severity: 'error',\n code: 'no-root',\n message: 'The tree has no root node.'\n });\n } else if (roots.length > 1) {\n for (const root of roots.slice(1)) {\n issues.push({\n severity: 'error',\n code: 'multiple-roots',\n nodeId: root.id,\n message: `More than one root node (${roots.length} found); the backend requires exactly one.`\n });\n }\n }\n\n // Orphan parent references + parent-is-deleted warnings.\n for (const node of activeNodes(tree)) {\n if (!node.parentId) continue;\n const parent = byId.get(node.parentId);\n if (!parent) {\n issues.push({\n severity: 'error',\n code: 'orphan-parent',\n nodeId: node.id,\n message: `Points at missing parent ${node.parentId}.`\n });\n } else if (parent.isDeleted) {\n issues.push({\n severity: 'warning',\n code: 'parent-deleted',\n nodeId: node.id,\n message: 'Its parent is soft-deleted, so it will not render.'\n });\n }\n }\n\n // Cycles.\n const visitState = new Map<string, 'visiting' | 'done'>();\n const walkUp = (node: TreeNode): void => {\n if (visitState.get(node.id) === 'done') return;\n const chain: string[] = [];\n let current: TreeNode | undefined = node;\n while (current) {\n if (visitState.get(current.id) === 'done') break;\n if (visitState.get(current.id) === 'visiting') {\n issues.push({\n severity: 'error',\n code: 'cycle',\n nodeId: current.id,\n message: 'Its parent chain contains a cycle.'\n });\n break;\n }\n visitState.set(current.id, 'visiting');\n chain.push(current.id);\n current =\n current.parentId ? byId.get(current.parentId) : undefined;\n }\n for (const id of chain) visitState.set(id, 'done');\n };\n for (const node of tree.nodes) walkUp(node);\n\n // Required fields on active entity nodes.\n const isBlank = (value: unknown): boolean =>\n value === undefined || value === null || value === '';\n for (const node of activeNodes(tree)) {\n if (!isEntityNode(node)) continue;\n for (const field of REQUIRED_FIELDS) {\n if (isBlank(node.properties[field])) {\n issues.push({\n severity: 'error',\n code: 'missing-required-field',\n nodeId: node.id,\n path: field,\n message: `Missing required field \"${field}\".`\n });\n }\n }\n // 26.x draws a tab without a page as a blank, label-less tab. A tab with\n // no id has no picker to point at, so its issue is the level's.\n for (const tab of node.properties.tabs ?? []) {\n if (tab?.page?.pageId) continue;\n issues.push({\n severity: 'error',\n code: 'tab-page-missing',\n nodeId: node.id,\n ...(tab?.id ? { path: tabPagePath(tab.id) } : {}),\n message: 'Pick a page — a tab without one shows blank.'\n });\n }\n }\n\n // Catalog reachability (when context supplied): every non-root entity node's\n // entity must be navigable from its parent's entity (the legal-children oracle).\n if (context?.catalogObjects?.length) {\n for (const node of activeNodes(tree)) {\n if (!isEntityNode(node) || !node.parentId) continue;\n const parent = byId.get(node.parentId);\n if (!parent || !isEntityNode(parent)) continue;\n const parentEntity = parent.properties.catalogReturnObject;\n const childEntity = node.properties.catalogReturnObject;\n if (!parentEntity || !childEntity) continue;\n const legal = legalChildEntities(context.catalogObjects, parentEntity);\n if (!legal.length) continue; // parent entity unknown to this catalog — cannot judge\n if (\n !legal.some((entity) =>\n sameEntityName(entity.catalogObjectName, childEntity)\n )\n ) {\n issues.push({\n severity: 'error',\n code: 'illegal-child-entity',\n nodeId: node.id,\n path: 'catalogReturnObject',\n message: `Entity \"${childEntity}\" is not reachable from parent entity \"${parentEntity}\".`\n });\n }\n }\n }\n\n return issues;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAwBA,MAAMO,kBAAkB,CAAC,sBAAsB;;AAO/C,MAAaE,eAAeC,UA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;IACb,GAAIyB,KAAKzB,KAAK,EAAEwB,MAAMxC,YAAYyC,IAAIzB,GAAE,EAAG,GAAG,EAAE;IAChDI,SAAS;IACV,CAAC;;;AAMN,KAAIR,SAASR,gBAAgBsB,OAC3B,MAAK,MAAMjB,QAAQJ,YAAYC,KAAK,EAAE;AACpC,MAAI,CAACZ,aAAae,KAAK,IAAI,CAACA,KAAKgB,SAAU;EAC3C,MAAMI,SAASf,KAAKgB,IAAIrB,KAAKgB,SAAS;AACtC,MAAI,CAACI,UAAU,CAACnC,aAAamC,OAAO,CAAE;EACtC,MAAMgB,eAAehB,OAAOU,WAAWO;EACvC,MAAMC,cAActC,KAAK8B,WAAWO;AACpC,MAAI,CAACD,gBAAgB,CAACE,YAAa;EACnC,MAAMC,QAAQrD,mBAAmBiB,QAAQR,gBAAgByC,aAAa;AACtE,MAAI,CAACG,MAAMtB,OAAQ;AACnB,MACE,CAACsB,MAAMC,MAAMC,WACXrD,eAAeqD,OAAOC,mBAAmBJ,YAC3C,CAAC,CAEDlC,QAAOI,KAAK;GACVC,UAAU;GACVC,MAAM;GACNG,QAAQb,KAAKO;GACbwB,MAAM;GACNpB,SAAS,WAAW2B,YAAW,yCAA0CF,aAAY;GACtF,CAAC;;AAKR,QAAOhC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared read utilities over the typed tree — non-mutating counterparts of the
|
|
3
|
-
* legacy TreeUtils display helpers
|
|
4
|
-
*
|
|
3
|
+
* legacy TreeUtils display helpers, used by the builder, the Inquiry viewer and
|
|
4
|
+
* the copilots' describe tools.
|
|
5
5
|
*/
|
|
6
6
|
import { InquiryTree, TreeNode } from './types';
|
|
7
7
|
/** Nested view wrapper — the canonical node is referenced, never copied or mutated. */
|
|
@@ -30,25 +30,21 @@ export declare const findNode: (tree: InquiryTree, nodeId: string) => TreeNode;
|
|
|
30
30
|
export declare const findNodeIndex: (tree: InquiryTree, nodeId: string) => number;
|
|
31
31
|
export declare const getChildren: (tree: InquiryTree, nodeId: string) => TreeNode[];
|
|
32
32
|
export declare const getRoot: (tree: InquiryTree) => TreeNode;
|
|
33
|
-
export declare const getAncestorIds: (tree: InquiryTree, nodeId: string) => string[];
|
|
34
|
-
export declare const getDescendantIds: (tree: InquiryTree, nodeId: string) => string[];
|
|
35
33
|
/**
|
|
36
34
|
* Resolve a display template against a data object — port of the legacy
|
|
37
|
-
* formatTreeLabel (TreeUtils.js:1484-1560), quirks preserved on purpose (
|
|
38
|
-
*
|
|
39
|
-
*
|
|
35
|
+
* formatTreeLabel (TreeUtils.js:1484-1560), quirks preserved on purpose (all-quotes
|
|
36
|
+
* stripping, `[n]` indexes ignored at position 0) because Inquiry labels must
|
|
37
|
+
* render identically.
|
|
40
38
|
*
|
|
41
39
|
* Deliberate behaviour changes (approved), both carried by the legacy resolver too
|
|
42
40
|
* so v1 and v2 still render the same:
|
|
41
|
+
* - quoted literals render as written — a space is added only between two
|
|
42
|
+
* adjacent fields — and the label is built from its parts, so a value is
|
|
43
|
+
* never substituted into an earlier literal or value;
|
|
43
44
|
* - resolved ISO-8601 DateTime values render as locale dates, not wire strings;
|
|
44
45
|
* - a field's stamped `<field>LookupValue` wins over its raw value, so an FK
|
|
45
46
|
* label chip renders the lookup's display text (stamping is v2-only, which
|
|
46
47
|
* leaves the legacy resolver's behaviour unchanged).
|
|
47
48
|
*/
|
|
48
49
|
export declare const formatTreeLabel: (label: string, obj: Record<string, unknown>) => string;
|
|
49
|
-
/**
|
|
50
|
-
* Pre-order catalogObjectKeys — port of processCatalogObjectKeysInOrder
|
|
51
|
-
* (TreeUtils.js:355-368), used by the renderer to walk query results.
|
|
52
|
-
*/
|
|
53
|
-
export declare const catalogObjectKeysInOrder: (view: TreeViewNode) => string[];
|
|
54
50
|
//# sourceMappingURL=view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/view.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,WAAW,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/view.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEhD,yFAAuF;AACvF;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;CAQxB,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,2EAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,YAAY,EAAE,CAAC;CAC1B;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,uCAkBzB,CAAC;AAEF,eAAO,MAAM,QAAQ,iDAGmD,CAAC;AAEzE,eAAO,MAAM,aAAa,+CAC0B,CAAC;AAErD,eAAO,MAAM,WAAW,mDACkD,CAAC;AAE3E,eAAO,MAAM,OAAO,iCAC0C,CAAC;AAoD/D;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,yDAsF3B,CAAC"}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared read utilities over the typed tree — non-mutating counterparts of the
|
|
3
|
-
* legacy TreeUtils display helpers. Designed for reuse by the Inquiry renderer
|
|
4
|
-
* during inquiry-modernization and by the AI copilot's describe tools.
|
|
5
|
-
*/
|
|
6
|
-
import { isEntityNode } from './types';
|
|
7
1
|
/** Nested view wrapper — the canonical node is referenced, never copied or mutated. */
|
|
8
2
|
/**
|
|
9
3
|
* `[n]` in a path segment such as `items[2]` — the text between the first
|
|
@@ -34,11 +28,11 @@ export const buildTreeView = (tree) => {
|
|
|
34
28
|
const roots = [];
|
|
35
29
|
for (const wrapper of wrappers.values()) {
|
|
36
30
|
const parentId = wrapper.node.parentId;
|
|
37
|
-
const parent = parentId
|
|
31
|
+
const parent = parentId ? wrappers.get(parentId) : undefined;
|
|
38
32
|
if (parent) {
|
|
39
33
|
parent.children.push(wrapper);
|
|
40
34
|
}
|
|
41
|
-
else if (parentId
|
|
35
|
+
else if (!parentId) {
|
|
42
36
|
roots.push(wrapper);
|
|
43
37
|
}
|
|
44
38
|
// Nodes pointing at a missing/deleted parent are unreachable — validation reports them.
|
|
@@ -48,33 +42,7 @@ export const buildTreeView = (tree) => {
|
|
|
48
42
|
export const findNode = (tree, nodeId) => tree.nodes.find((node) => node.id === nodeId);
|
|
49
43
|
export const findNodeIndex = (tree, nodeId) => tree.nodes.findIndex((node) => node.id === nodeId);
|
|
50
44
|
export const getChildren = (tree, nodeId) => tree.nodes.filter((node) => node.parentId === nodeId && !node.isDeleted);
|
|
51
|
-
export const getRoot = (tree) => tree.nodes.find((node) => node.parentId
|
|
52
|
-
export const getAncestorIds = (tree, nodeId) => {
|
|
53
|
-
const ids = [];
|
|
54
|
-
let current = findNode(tree, nodeId);
|
|
55
|
-
const seen = new Set([nodeId]);
|
|
56
|
-
while (current && current.parentId !== null) {
|
|
57
|
-
if (seen.has(current.parentId))
|
|
58
|
-
break; // cycle guard — validation reports it
|
|
59
|
-
ids.push(current.parentId);
|
|
60
|
-
seen.add(current.parentId);
|
|
61
|
-
current = findNode(tree, current.parentId);
|
|
62
|
-
}
|
|
63
|
-
return ids;
|
|
64
|
-
};
|
|
65
|
-
export const getDescendantIds = (tree, nodeId) => {
|
|
66
|
-
const ids = [];
|
|
67
|
-
const collect = (parentId) => {
|
|
68
|
-
for (const node of tree.nodes) {
|
|
69
|
-
if (node.parentId === parentId && !ids.includes(node.id)) {
|
|
70
|
-
ids.push(node.id);
|
|
71
|
-
collect(node.id);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
collect(nodeId);
|
|
76
|
-
return ids;
|
|
77
|
-
};
|
|
45
|
+
export const getRoot = (tree) => tree.nodes.find((node) => !node.parentId && !node.isDeleted);
|
|
78
46
|
/**
|
|
79
47
|
* Wire DateTime values arrive as ISO-8601 strings (`2024-11-08T00:00:00`).
|
|
80
48
|
* The label template stores field names only, so there is no field-type info at
|
|
@@ -123,12 +91,15 @@ const toDisplayValue = (value) => {
|
|
|
123
91
|
};
|
|
124
92
|
/**
|
|
125
93
|
* Resolve a display template against a data object — port of the legacy
|
|
126
|
-
* formatTreeLabel (TreeUtils.js:1484-1560), quirks preserved on purpose (
|
|
127
|
-
*
|
|
128
|
-
*
|
|
94
|
+
* formatTreeLabel (TreeUtils.js:1484-1560), quirks preserved on purpose (all-quotes
|
|
95
|
+
* stripping, `[n]` indexes ignored at position 0) because Inquiry labels must
|
|
96
|
+
* render identically.
|
|
129
97
|
*
|
|
130
98
|
* Deliberate behaviour changes (approved), both carried by the legacy resolver too
|
|
131
99
|
* so v1 and v2 still render the same:
|
|
100
|
+
* - quoted literals render as written — a space is added only between two
|
|
101
|
+
* adjacent fields — and the label is built from its parts, so a value is
|
|
102
|
+
* never substituted into an earlier literal or value;
|
|
132
103
|
* - resolved ISO-8601 DateTime values render as locale dates, not wire strings;
|
|
133
104
|
* - a field's stamped `<field>LookupValue` wins over its raw value, so an FK
|
|
134
105
|
* label chip renders the lookup's display text (stamping is v2-only, which
|
|
@@ -138,7 +109,7 @@ export const formatTreeLabel = (label, obj) => {
|
|
|
138
109
|
const fields = label === null || label === void 0 ? void 0 : label.split('+');
|
|
139
110
|
const keys = fields === null || fields === void 0 ? void 0 : fields.map((field) => field.trim());
|
|
140
111
|
if (!keys)
|
|
141
|
-
return
|
|
112
|
+
return '';
|
|
142
113
|
const skippableKeys = [];
|
|
143
114
|
const updatedKeys = keys.map((key, index) => {
|
|
144
115
|
if (key.charAt(0) === '"') {
|
|
@@ -175,37 +146,40 @@ export const formatTreeLabel = (label, obj) => {
|
|
|
175
146
|
}
|
|
176
147
|
values.push(toDisplayValue(readLabelValue(obj, property)));
|
|
177
148
|
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
if (skippableKeys.includes(k))
|
|
181
|
-
continue;
|
|
182
|
-
displayName = displayName.replace(updatedKeys[k],
|
|
149
|
+
const parts = updatedKeys.map((key, k) => {
|
|
150
|
+
const isLiteral = skippableKeys.includes(k);
|
|
183
151
|
// Legacy parity: TreeUtils stringified whatever the field held, objects
|
|
184
152
|
// included — labels must render identically.
|
|
185
153
|
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
186
|
-
values[k] ? String(values[k]) : ''
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
return;
|
|
154
|
+
const text = isLiteral ? key : values[k] ? String(values[k]) : '';
|
|
155
|
+
return { isLiteral, text };
|
|
156
|
+
});
|
|
157
|
+
// A literal joins the fields beside it, so it renders only when every field
|
|
158
|
+
// next to it has a value ("start + " to " + end" with no end → "start").
|
|
159
|
+
const fieldBeside = (k, step) => {
|
|
160
|
+
for (let i = k + step; i >= 0 && i < parts.length; i += step) {
|
|
161
|
+
if (!parts[i].isLiteral)
|
|
162
|
+
return parts[i];
|
|
163
|
+
}
|
|
164
|
+
return null;
|
|
165
|
+
};
|
|
166
|
+
const lastField = parts.reduce((last, part, k) => (part.isLiteral ? last : k), -1);
|
|
167
|
+
const keeps = (k) => {
|
|
168
|
+
const part = parts[k];
|
|
169
|
+
if (!part.isLiteral)
|
|
170
|
+
return part.text !== '';
|
|
171
|
+
// A closing literal goes with the one that opens the last field
|
|
172
|
+
// ("name + " (" + code + ")"" with no name → "code", not "code)").
|
|
173
|
+
if (k > lastField && lastField > 0 && parts[lastField - 1].isLiteral && !keeps(lastField - 1)) {
|
|
174
|
+
return false;
|
|
203
175
|
}
|
|
204
|
-
|
|
205
|
-
keys.push(key);
|
|
206
|
-
current.children.forEach(walk);
|
|
176
|
+
return [fieldBeside(k, -1), fieldBeside(k, 1)].every((field) => !field || field.text !== '');
|
|
207
177
|
};
|
|
208
|
-
|
|
209
|
-
|
|
178
|
+
const kept = parts.filter((_, k) => keeps(k));
|
|
179
|
+
// Quoted literals render exactly as written; a space is added only between
|
|
180
|
+
// two adjacent fields.
|
|
181
|
+
return kept.reduce((displayName, part, k) => displayName +
|
|
182
|
+
(k > 0 && !part.isLiteral && !kept[k - 1].isLiteral ? ' ' : '') +
|
|
183
|
+
part.text, '');
|
|
210
184
|
};
|
|
211
185
|
//# sourceMappingURL=view.js.map
|