udp-react-enterprise-component-library 27.0.0-next.11 → 27.0.0-next.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/UI/feedback/PageLoading.d.ts +11 -1
- package/dist/UI/feedback/PageLoading.d.ts.map +1 -1
- package/dist/UI/feedback/PageLoading.js +12 -12
- package/dist/UI/feedback/PageLoading.js.map +1 -1
- package/dist/UI/feedback/PageLoading.mjs +35 -21
- package/dist/UI/feedback/PageLoading.mjs.map +1 -1
- package/dist/UI/feedback/PageLoading.module.css +9 -0
- package/dist/UI/fluent-web-components/UdpIconPicker.d.ts +4 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.js +2 -2
- package/dist/UI/fluent-web-components/UdpIconPicker.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.mjs +32 -28
- package/dist/UI/fluent-web-components/UdpIconPicker.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.d.ts +6 -0
- package/dist/UI/fluent-web-components/UdpLink.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.mjs.map +1 -1
- package/dist/UI/fluent-web-components/index.d.ts +10 -0
- package/dist/UI/fluent-web-components/index.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/index.js +10 -0
- package/dist/UI/fluent-web-components/index.js.map +1 -1
- package/dist/UI/fluent-web-components/shell/UdpShell.d.ts +10 -0
- package/dist/UI/fluent-web-components/shell/UdpShell.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShell.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShell.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShell.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShell.mjs.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.d.ts +11 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.mjs.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.d.ts +16 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.mjs.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.d.ts +21 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.mjs.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.d.ts +10 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.mjs.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.d.ts +13 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.mjs.map +1 -0
- package/dist/UI/fluent-web-components/types.d.ts +2 -0
- package/dist/UI/fluent-web-components/types.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts +16 -3
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js +36 -13
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs +119 -62
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/index.mjs +3 -2
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts +9 -2
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js +18 -18
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs +79 -67
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts +8 -2
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js +32 -16
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs +129 -102
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts +3 -2
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js +11 -12
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs +6 -4
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts +2 -19
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js +4 -5
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs +5 -4
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs.map +1 -1
- package/dist/actionPanels/index.d.ts +0 -2
- package/dist/actionPanels/index.d.ts.map +1 -1
- package/dist/actionPanels/index.js +0 -2
- package/dist/actionPanels/index.js.map +1 -1
- package/dist/actionPanels/panelActionFields.d.ts +9 -26
- package/dist/actionPanels/panelActionFields.d.ts.map +1 -1
- package/dist/actionPanels/panelActionFields.js +32 -55
- package/dist/actionPanels/panelActionFields.js.map +1 -1
- package/dist/actionPanels/panelActionFields.mjs +159 -375
- package/dist/actionPanels/panelActionFields.mjs.map +1 -1
- package/dist/actionPanels/panelOperations.d.ts +15 -41
- package/dist/actionPanels/panelOperations.d.ts.map +1 -1
- package/dist/actionPanels/panelOperations.js +51 -89
- package/dist/actionPanels/panelOperations.js.map +1 -1
- package/dist/actionPanels/panelOperations.mjs +37 -92
- package/dist/actionPanels/panelOperations.mjs.map +1 -1
- package/dist/aiAssistant/aiFeatures.d.ts +1 -1
- package/dist/aiAssistant/aiFeatures.d.ts.map +1 -1
- package/dist/aiAssistant/aiFeatures.js +5 -0
- package/dist/aiAssistant/aiFeatures.js.map +1 -1
- package/dist/aiAssistant/aiFeatures.mjs +5 -1
- package/dist/aiAssistant/aiFeatures.mjs.map +1 -1
- package/dist/dashboard/DashboardWidget.d.ts.map +1 -1
- package/dist/dashboard/DashboardWidget.js +1 -1
- package/dist/dashboard/DashboardWidget.js.map +1 -1
- package/dist/dashboard/DashboardWidget.mjs +24 -21
- package/dist/dashboard/DashboardWidget.mjs.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.d.ts +15 -2
- package/dist/domain/actionPanel/actionTypeMeta.d.ts.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.js +21 -2
- package/dist/domain/actionPanel/actionTypeMeta.js.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.mjs +18 -3
- package/dist/domain/actionPanel/actionTypeMeta.mjs.map +1 -1
- package/dist/domain/actionPanel/buttonOrder.d.ts +67 -0
- package/dist/domain/actionPanel/buttonOrder.d.ts.map +1 -0
- package/dist/domain/actionPanel/buttonOrder.js +105 -0
- package/dist/domain/actionPanel/buttonOrder.js.map +1 -0
- package/dist/domain/actionPanel/buttonOrder.mjs +90 -0
- package/dist/domain/actionPanel/buttonOrder.mjs.map +1 -0
- package/dist/domain/actionPanel/index.d.ts +1 -0
- package/dist/domain/actionPanel/index.d.ts.map +1 -1
- package/dist/domain/actionPanel/index.js +1 -0
- package/dist/domain/actionPanel/index.js.map +1 -1
- package/dist/domain/actionPanel/index.mjs +4 -3
- package/dist/domain/actionPanel/serialize.d.ts +6 -2
- package/dist/domain/actionPanel/serialize.d.ts.map +1 -1
- package/dist/domain/actionPanel/serialize.js +10 -3
- package/dist/domain/actionPanel/serialize.js.map +1 -1
- package/dist/domain/actionPanel/serialize.mjs +7 -3
- package/dist/domain/actionPanel/serialize.mjs.map +1 -1
- package/dist/domain/actionPanel/types.d.ts +24 -8
- package/dist/domain/actionPanel/types.d.ts.map +1 -1
- package/dist/domain/actionPanel/types.js.map +1 -1
- package/dist/domain/actionPanel/types.mjs.map +1 -1
- package/dist/domain/inquiryTree/describe.d.ts +15 -3
- package/dist/domain/inquiryTree/describe.d.ts.map +1 -1
- package/dist/domain/inquiryTree/describe.js +32 -28
- package/dist/domain/inquiryTree/describe.js.map +1 -1
- package/dist/domain/inquiryTree/describe.mjs +34 -16
- package/dist/domain/inquiryTree/describe.mjs.map +1 -1
- package/dist/domain/inquiryTree/displayTree.d.ts +75 -97
- package/dist/domain/inquiryTree/displayTree.d.ts.map +1 -1
- package/dist/domain/inquiryTree/displayTree.js +418 -551
- package/dist/domain/inquiryTree/displayTree.js.map +1 -1
- package/dist/domain/inquiryTree/displayTree.mjs +345 -414
- package/dist/domain/inquiryTree/displayTree.mjs.map +1 -1
- package/dist/domain/inquiryTree/groups.d.ts +2 -0
- package/dist/domain/inquiryTree/groups.d.ts.map +1 -1
- package/dist/domain/inquiryTree/groups.js.map +1 -1
- package/dist/domain/inquiryTree/groups.mjs.map +1 -1
- package/dist/domain/inquiryTree/index.d.ts +1 -1
- package/dist/domain/inquiryTree/index.d.ts.map +1 -1
- package/dist/domain/inquiryTree/index.js +1 -1
- package/dist/domain/inquiryTree/index.js.map +1 -1
- package/dist/domain/inquiryTree/index.mjs +12 -12
- package/dist/domain/inquiryTree/lazyLoad.d.ts +20 -129
- package/dist/domain/inquiryTree/lazyLoad.d.ts.map +1 -1
- package/dist/domain/inquiryTree/lazyLoad.js +48 -233
- package/dist/domain/inquiryTree/lazyLoad.js.map +1 -1
- package/dist/domain/inquiryTree/lazyLoad.mjs +32 -187
- package/dist/domain/inquiryTree/lazyLoad.mjs.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.d.ts +13 -14
- package/dist/domain/inquiryTree/legalChildren.d.ts.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.js +21 -42
- package/dist/domain/inquiryTree/legalChildren.js.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.mjs +19 -37
- package/dist/domain/inquiryTree/legalChildren.mjs.map +1 -1
- package/dist/domain/inquiryTree/names.d.ts +38 -0
- package/dist/domain/inquiryTree/names.d.ts.map +1 -0
- package/dist/domain/inquiryTree/names.js +64 -0
- package/dist/domain/inquiryTree/names.js.map +1 -0
- package/dist/domain/inquiryTree/names.mjs +56 -0
- package/dist/domain/inquiryTree/names.mjs.map +1 -0
- package/dist/domain/inquiryTree/operations.d.ts +6 -2
- package/dist/domain/inquiryTree/operations.d.ts.map +1 -1
- package/dist/domain/inquiryTree/operations.js +17 -16
- package/dist/domain/inquiryTree/operations.js.map +1 -1
- package/dist/domain/inquiryTree/operations.mjs +14 -11
- package/dist/domain/inquiryTree/operations.mjs.map +1 -1
- package/dist/domain/inquiryTree/rules.d.ts +3 -4
- package/dist/domain/inquiryTree/rules.d.ts.map +1 -1
- package/dist/domain/inquiryTree/rules.js +3 -13
- package/dist/domain/inquiryTree/rules.js.map +1 -1
- package/dist/domain/inquiryTree/rules.mjs +3 -9
- package/dist/domain/inquiryTree/rules.mjs.map +1 -1
- package/dist/domain/inquiryTree/runtime.d.ts +23 -16
- package/dist/domain/inquiryTree/runtime.d.ts.map +1 -1
- package/dist/domain/inquiryTree/runtime.js +46 -54
- package/dist/domain/inquiryTree/runtime.js.map +1 -1
- package/dist/domain/inquiryTree/runtime.mjs +31 -26
- package/dist/domain/inquiryTree/runtime.mjs.map +1 -1
- package/dist/domain/inquiryTree/serialize.d.ts +20 -29
- package/dist/domain/inquiryTree/serialize.d.ts.map +1 -1
- package/dist/domain/inquiryTree/serialize.js +93 -205
- package/dist/domain/inquiryTree/serialize.js.map +1 -1
- package/dist/domain/inquiryTree/serialize.mjs +89 -180
- package/dist/domain/inquiryTree/serialize.mjs.map +1 -1
- package/dist/domain/inquiryTree/types.d.ts +146 -65
- package/dist/domain/inquiryTree/types.d.ts.map +1 -1
- package/dist/domain/inquiryTree/types.js +5 -0
- package/dist/domain/inquiryTree/types.js.map +1 -1
- package/dist/domain/inquiryTree/types.mjs +3 -1
- package/dist/domain/inquiryTree/types.mjs.map +1 -1
- package/dist/domain/inquiryTree/validate.d.ts +9 -2
- package/dist/domain/inquiryTree/validate.d.ts.map +1 -1
- package/dist/domain/inquiryTree/validate.js +30 -58
- package/dist/domain/inquiryTree/validate.js.map +1 -1
- package/dist/domain/inquiryTree/validate.mjs +29 -44
- package/dist/domain/inquiryTree/validate.mjs.map +1 -1
- package/dist/domain/inquiryTree/view.d.ts +8 -12
- package/dist/domain/inquiryTree/view.d.ts.map +1 -1
- package/dist/domain/inquiryTree/view.js +40 -66
- package/dist/domain/inquiryTree/view.js.map +1 -1
- package/dist/domain/inquiryTree/view.mjs +30 -60
- package/dist/domain/inquiryTree/view.mjs.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.d.ts +32 -48
- package/dist/domain/inquiryTree/waveLoad.d.ts.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.js +75 -90
- package/dist/domain/inquiryTree/waveLoad.js.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.mjs +54 -60
- package/dist/domain/inquiryTree/waveLoad.mjs.map +1 -1
- package/dist/domain/inquiryTree/wireString.d.ts +5 -0
- package/dist/domain/inquiryTree/wireString.d.ts.map +1 -1
- package/dist/domain/inquiryTree/wireString.js +11 -0
- package/dist/domain/inquiryTree/wireString.js.map +1 -1
- package/dist/domain/inquiryTree/wireString.mjs +10 -1
- package/dist/domain/inquiryTree/wireString.mjs.map +1 -1
- package/dist/domain/nodeView/index.mjs +2 -2
- package/dist/domain/nodeView/model.d.ts +35 -30
- package/dist/domain/nodeView/model.d.ts.map +1 -1
- package/dist/domain/nodeView/model.js +108 -69
- package/dist/domain/nodeView/model.js.map +1 -1
- package/dist/domain/nodeView/model.mjs +86 -36
- package/dist/domain/nodeView/model.mjs.map +1 -1
- package/dist/errorBoundary/ErrorBoundary.d.ts +17 -1
- package/dist/errorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/dist/errorBoundary/ErrorBoundary.js +25 -21
- package/dist/errorBoundary/ErrorBoundary.js.map +1 -1
- package/dist/errorBoundary/ErrorBoundary.mjs +22 -34
- package/dist/errorBoundary/ErrorBoundary.mjs.map +1 -1
- package/dist/errorBoundary/ErrorBoundaryFallback.d.ts +10 -0
- package/dist/errorBoundary/ErrorBoundaryFallback.d.ts.map +1 -0
- package/dist/errorBoundary/ErrorBoundaryFallback.js +8 -0
- package/dist/errorBoundary/ErrorBoundaryFallback.js.map +1 -0
- package/dist/errorBoundary/ErrorBoundaryFallback.mjs +91 -0
- package/dist/errorBoundary/ErrorBoundaryFallback.mjs.map +1 -0
- package/dist/icons/legacyIconNames.d.ts.map +1 -1
- package/dist/icons/legacyIconNames.js +46 -1
- package/dist/icons/legacyIconNames.js.map +1 -1
- package/dist/icons/legacyIconNames.mjs +46 -1
- package/dist/icons/legacyIconNames.mjs.map +1 -1
- package/dist/index.mjs +19 -14
- package/dist/inquiry/Inquiry.d.ts +3 -0
- package/dist/inquiry/Inquiry.d.ts.map +1 -1
- package/dist/inquiry/Inquiry.js +3 -0
- package/dist/inquiry/Inquiry.js.map +1 -1
- package/dist/inquiry/Inquiry.mjs +3 -0
- package/dist/inquiry/Inquiry.mjs.map +1 -1
- package/dist/inquiry/InquiryContainer.d.ts.map +1 -1
- package/dist/inquiry/InquiryContainer.js +22 -21
- package/dist/inquiry/InquiryContainer.js.map +1 -1
- package/dist/inquiry/InquiryContainer.mjs +14 -10
- package/dist/inquiry/InquiryContainer.mjs.map +1 -1
- package/dist/inquiry/InquiryTreeMenu.d.ts.map +1 -1
- package/dist/inquiry/InquiryTreeMenu.js +14 -23
- package/dist/inquiry/InquiryTreeMenu.js.map +1 -1
- package/dist/inquiry/InquiryTreeMenu.mjs +20 -20
- package/dist/inquiry/InquiryTreeMenu.mjs.map +1 -1
- package/dist/inquiry/v2/InquiryV2.d.ts +8 -6
- package/dist/inquiry/v2/InquiryV2.d.ts.map +1 -1
- package/dist/inquiry/v2/InquiryV2.js +45 -24
- package/dist/inquiry/v2/InquiryV2.js.map +1 -1
- package/dist/inquiry/v2/InquiryV2.mjs +108 -61
- package/dist/inquiry/v2/InquiryV2.mjs.map +1 -1
- package/dist/inquiry/v2/InquiryV2.module.css +60 -15
- package/dist/inquiry/v2/InquiryWorkspace.d.ts +9 -9
- package/dist/inquiry/v2/InquiryWorkspace.d.ts.map +1 -1
- package/dist/inquiry/v2/InquiryWorkspace.js +531 -408
- package/dist/inquiry/v2/InquiryWorkspace.js.map +1 -1
- package/dist/inquiry/v2/InquiryWorkspace.mjs +524 -408
- package/dist/inquiry/v2/InquiryWorkspace.mjs.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts +3 -2
- package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.js +20 -37
- package/dist/inquiry/v2/ai/InquiryV2Copilot.js.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs +19 -31
- package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.d.ts +6 -14
- package/dist/inquiry/v2/ai/copilotModel.d.ts.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.js +35 -87
- package/dist/inquiry/v2/ai/copilotModel.js.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.mjs +23 -47
- package/dist/inquiry/v2/ai/copilotModel.mjs.map +1 -1
- package/dist/inquiry/v2/api/queries.d.ts +46 -73
- package/dist/inquiry/v2/api/queries.d.ts.map +1 -1
- package/dist/inquiry/v2/api/queries.js +151 -210
- package/dist/inquiry/v2/api/queries.js.map +1 -1
- package/dist/inquiry/v2/api/queries.mjs +227 -183
- package/dist/inquiry/v2/api/queries.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js +103 -32
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs +92 -32
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.module.css +8 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts +20 -16
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js +111 -68
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs +108 -142
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/RetrieveSurface.mjs +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts +66 -50
- package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.js +141 -66
- package/dist/inquiry/v2/capabilities/actions/actionModel.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.mjs +115 -53
- package/dist/inquiry/v2/capabilities/actions/actionModel.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts +26 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js +36 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs +41 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/runAction.d.ts +3 -2
- package/dist/inquiry/v2/capabilities/actions/runAction.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/runAction.js +27 -23
- package/dist/inquiry/v2/capabilities/actions/runAction.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/runAction.mjs +26 -20
- package/dist/inquiry/v2/capabilities/actions/runAction.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts +20 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js +112 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs +118 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts +25 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js +7 -4
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs +9 -4
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts +5 -3
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js +11 -8
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs +13 -7
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.module.css +4 -4
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.js +20 -17
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs +101 -111
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.module.css +9 -6
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts +2 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js +9 -2
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs +18 -15
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/index.d.ts +0 -1
- package/dist/inquiry/v2/index.d.ts.map +1 -1
- package/dist/inquiry/v2/index.js.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts +3 -3
- package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.js +11 -5
- package/dist/inquiry/v2/kernel/ActionRunnerContext.js.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs +15 -12
- package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts +3 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts.map +1 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.js +14 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.js.map +1 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs +20 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs.map +1 -0
- package/dist/inquiry/v2/kernel/RecordContext.d.ts +2 -0
- package/dist/inquiry/v2/kernel/RecordContext.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/RecordContext.js.map +1 -1
- package/dist/inquiry/v2/kernel/RecordContext.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.js +18 -13
- package/dist/inquiry/v2/kernel/UdpNodeView.js.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.mjs +177 -140
- package/dist/inquiry/v2/kernel/UdpNodeView.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.module.css +56 -5
- package/dist/inquiry/v2/kernel/capabilities.d.ts +0 -2
- package/dist/inquiry/v2/kernel/capabilities.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/capabilities.js.map +1 -1
- package/dist/inquiry/v2/kernel/capabilities.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts +26 -37
- package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.js +48 -57
- package/dist/inquiry/v2/landing/InquiryExplorePage.js.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.mjs +102 -106
- package/dist/inquiry/v2/landing/InquiryExplorePage.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.module.css +58 -6
- package/dist/inquiry/v2/landing/InquiryLanding.d.ts +3 -3
- package/dist/inquiry/v2/landing/InquiryLanding.d.ts.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.js +8 -3
- package/dist/inquiry/v2/landing/InquiryLanding.js.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.mjs +51 -35
- package/dist/inquiry/v2/landing/InquiryLanding.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.module.css +8 -0
- package/dist/inquiry/v2/page/UdpPageRenderer.d.ts +5 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.d.ts.map +1 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.js +13 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.js.map +1 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.mjs +36 -7
- package/dist/inquiry/v2/page/UdpPageRenderer.mjs.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.d.ts +1 -7
- package/dist/inquiry/v2/search/InquirySearchPanel.d.ts.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.js +6 -13
- package/dist/inquiry/v2/search/InquirySearchPanel.js.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.mjs +4 -8
- package/dist/inquiry/v2/search/InquirySearchPanel.mjs.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.d.ts +30 -1
- package/dist/inquiry/v2/search/RecordFinder.d.ts.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.js +43 -20
- package/dist/inquiry/v2/search/RecordFinder.js.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.mjs +68 -42
- package/dist/inquiry/v2/search/RecordFinder.mjs.map +1 -1
- package/dist/inquiry/v2/search/index.d.ts +3 -3
- package/dist/inquiry/v2/search/index.d.ts.map +1 -1
- package/dist/inquiry/v2/search/index.js +1 -1
- package/dist/inquiry/v2/search/index.js.map +1 -1
- package/dist/inquiry/v2/search/searchModel.d.ts +130 -23
- package/dist/inquiry/v2/search/searchModel.d.ts.map +1 -1
- package/dist/inquiry/v2/search/searchModel.js +237 -36
- package/dist/inquiry/v2/search/searchModel.js.map +1 -1
- package/dist/inquiry/v2/search/searchModel.mjs +207 -34
- package/dist/inquiry/v2/search/searchModel.mjs.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.d.ts.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.js +46 -19
- package/dist/inquiry/v2/search/useInquirySearch.js.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.mjs +83 -84
- package/dist/inquiry/v2/search/useInquirySearch.mjs.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts +4 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js +174 -166
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs +343 -325
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts +3 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.js +8 -7
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.js.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs +68 -72
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts +3 -3
- package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.js +12 -7
- package/dist/inquiry/v2/tree/LoadRecordDialog.js.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.mjs +48 -33
- package/dist/inquiry/v2/tree/LoadRecordDialog.mjs.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.js +17 -6
- package/dist/inquiry/v2/tree/NodeList.js.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.mjs +49 -36
- package/dist/inquiry/v2/tree/NodeList.mjs.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.d.ts +15 -0
- package/dist/inquiry/v2/tree/arrivalModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.js +14 -1
- package/dist/inquiry/v2/tree/arrivalModel.js.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.mjs +12 -1
- package/dist/inquiry/v2/tree/arrivalModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/branchRefreshModel.d.ts +32 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.d.ts.map +1 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.js +62 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.js.map +1 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.mjs +60 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.mjs.map +1 -0
- package/dist/inquiry/v2/tree/droppedPageModel.d.ts +23 -1
- package/dist/inquiry/v2/tree/droppedPageModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/droppedPageModel.js +53 -26
- package/dist/inquiry/v2/tree/droppedPageModel.js.map +1 -1
- package/dist/inquiry/v2/tree/droppedPageModel.mjs +48 -20
- package/dist/inquiry/v2/tree/droppedPageModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts +7 -12
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js +44 -15
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs +34 -15
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js +7 -18
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs +6 -14
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts +20 -16
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js +77 -55
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs +85 -106
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.d.ts +18 -1
- package/dist/inquiry/v2/tree/lineageModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.js +71 -2
- package/dist/inquiry/v2/tree/lineageModel.js.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.mjs +53 -3
- package/dist/inquiry/v2/tree/lineageModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.d.ts +10 -27
- package/dist/inquiry/v2/tree/menuRebuildModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.js +8 -58
- package/dist/inquiry/v2/tree/menuRebuildModel.js.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.mjs +8 -51
- package/dist/inquiry/v2/tree/menuRebuildModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts +26 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts.map +1 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.js +56 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.js.map +1 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.mjs +43 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.mjs.map +1 -0
- package/dist/inquiry/v2/tree/rootRemovalModel.d.ts +7 -0
- package/dist/inquiry/v2/tree/rootRemovalModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/rootRemovalModel.js +31 -5
- package/dist/inquiry/v2/tree/rootRemovalModel.js.map +1 -1
- package/dist/inquiry/v2/tree/rootRemovalModel.mjs +21 -4
- package/dist/inquiry/v2/tree/rootRemovalModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.d.ts +0 -2
- package/dist/inquiry/v2/tree/treeFilterModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.js +0 -7
- package/dist/inquiry/v2/tree/treeFilterModel.js.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.d.ts +16 -7
- package/dist/inquiry/v2/tree/useInquiryMenu.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.js +401 -163
- package/dist/inquiry/v2/tree/useInquiryMenu.js.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.mjs +511 -310
- package/dist/inquiry/v2/tree/useInquiryMenu.mjs.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.d.ts +10 -11
- package/dist/inquiry/v2/tree/waveLoader.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.js +78 -72
- package/dist/inquiry/v2/tree/waveLoader.js.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.mjs +79 -68
- package/dist/inquiry/v2/tree/waveLoader.mjs.map +1 -1
- package/dist/inquiry/v2/widgets/listRow.module.css +27 -0
- package/dist/inquiry/v2/widgets/widgetRowModel.d.ts +6 -2
- package/dist/inquiry/v2/widgets/widgetRowModel.d.ts.map +1 -1
- package/dist/inquiry/v2/widgets/widgetRowModel.js +49 -14
- package/dist/inquiry/v2/widgets/widgetRowModel.js.map +1 -1
- package/dist/inquiry/v2/widgets/widgetRowModel.mjs +36 -12
- package/dist/inquiry/v2/widgets/widgetRowModel.mjs.map +1 -1
- package/dist/maintenance/UdpTaggedRecordsPage.mjs +1 -1
- package/dist/maintenance/api/lookupApi.mjs +1 -1
- package/dist/maintenance/api/tagsApi.mjs +1 -1
- package/dist/maintenance/config/nodeDefaults.d.ts.map +1 -1
- package/dist/maintenance/config/nodeDefaults.js +16 -5
- package/dist/maintenance/config/nodeDefaults.js.map +1 -1
- package/dist/maintenance/config/nodeDefaults.mjs +14 -5
- package/dist/maintenance/config/nodeDefaults.mjs.map +1 -1
- package/dist/maintenance/config/useEntityConfig.mjs +1 -1
- package/dist/maintenance/config/useLinkedLabels.mjs +1 -1
- package/dist/maintenance/grid/MaintenanceGrid.mjs +1 -1
- package/dist/maintenance/metadata/useEntityMetadata.mjs +1 -1
- package/dist/maintenance/record/ChildTab.mjs +1 -1
- package/dist/maintenance/record/DeleteRecordDialog.mjs +1 -1
- package/dist/maintenance/record/LinkRecordsSheet.mjs +1 -1
- package/dist/maintenance/record/RecordFacts.mjs +1 -1
- package/dist/maintenance/record/RecordSheet.mjs +2 -2
- package/dist/maintenance/record/displayValue.mjs +1 -1
- package/dist/maintenance/record/stampDisplayText.mjs +1 -1
- package/dist/maintenance/settings/UdpEntitySettingsPage.d.ts.map +1 -1
- package/dist/maintenance/settings/UdpEntitySettingsPage.js +3 -0
- package/dist/maintenance/settings/UdpEntitySettingsPage.js.map +1 -1
- package/dist/maintenance/settings/UdpEntitySettingsPage.mjs +2 -0
- package/dist/maintenance/settings/UdpEntitySettingsPage.mjs.map +1 -1
- package/dist/maintenance/settings/useEntityCatalog.mjs +1 -1
- package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +4 -5
- package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts.map +1 -1
- package/dist/page/PageContainer/PageContainer.d.ts.map +1 -1
- package/dist/page/PageContainer/PageContainer.js +4 -11
- package/dist/page/PageContainer/PageContainer.js.map +1 -1
- package/dist/page/PageContainer/PageContainer.mjs +39 -50
- package/dist/page/PageContainer/PageContainer.mjs.map +1 -1
- package/dist/stores/inquiryStore.d.ts +2 -1
- package/dist/stores/inquiryStore.d.ts.map +1 -1
- package/dist/stores/inquiryStore.js +4 -3
- package/dist/stores/inquiryStore.js.map +1 -1
- package/dist/stores/inquiryStore.mjs +18 -11
- package/dist/stores/inquiryStore.mjs.map +1 -1
- package/dist/udp/extraFields/useExtraFieldsGridConfig.d.ts +3 -2
- package/dist/udp/extraFields/useExtraFieldsGridConfig.d.ts.map +1 -1
- package/dist/udp/extraFields/useExtraFieldsGridConfig.js +7 -6
- package/dist/udp/extraFields/useExtraFieldsGridConfig.js.map +1 -1
- package/dist/udp/extraFields/useExtraFieldsGridConfig.mjs +27 -22
- package/dist/udp/extraFields/useExtraFieldsGridConfig.mjs.map +1 -1
- package/dist/udp/fileImportMapping/FileImportMappingWizard.d.ts.map +1 -1
- package/dist/udp/fileImportMapping/FileImportMappingWizard.js +4 -4
- package/dist/udp/fileImportMapping/FileImportMappingWizard.js.map +1 -1
- package/dist/udp/fileImportMapping/FileImportMappingWizard.mjs +10 -9
- package/dist/udp/fileImportMapping/FileImportMappingWizard.mjs.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.d.ts.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs +2 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/components/EntitiyTimeLine.mjs +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.d.ts.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.js +84 -27
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.js.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.mjs +53 -23
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.mjs.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.d.ts.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.js +45 -32
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.js.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.mjs +27 -33
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.mjs.map +1 -1
- package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.d.ts.map +1 -1
- package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.js +14 -16
- package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.js.map +1 -1
- package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.mjs +2 -4
- package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.mjs.map +1 -1
- package/dist/udp/utilities/useDateStringColumnDef.d.ts +1 -1
- package/dist/utilities/i18n/locales/es-US.json +24 -9
- package/dist/utilities/i18n/locales/es-US.mjs +25 -8
- package/dist/utilities/i18n/locales/fr-CA.json +24 -9
- package/dist/utilities/i18n/locales/fr-CA.mjs +25 -8
- package/dist/utilities/tree/TreeUtilities.d.ts +10 -10
- package/dist/utilities/tree/TreeUtilities.d.ts.map +1 -1
- package/dist/utilities/tree/TreeUtilities.js +41 -58
- package/dist/utilities/tree/TreeUtilities.js.map +1 -1
- package/dist/utilities/tree/TreeUtilities.mjs +32 -41
- package/dist/utilities/tree/TreeUtilities.mjs.map +1 -1
- package/dist/utilities/tree/lazyLevels.d.ts +32 -0
- package/dist/utilities/tree/lazyLevels.d.ts.map +1 -0
- package/dist/utilities/tree/lazyLevels.js +25 -0
- package/dist/utilities/tree/lazyLevels.js.map +1 -0
- package/dist/utilities/tree/lazyLevels.mjs +16 -0
- package/dist/utilities/tree/lazyLevels.mjs.map +1 -0
- package/dist/utilities/types.d.ts +4 -4
- package/dist/utilities/types.d.ts.map +1 -1
- package/package.json +62 -18
- package/dist/actionPanels/PanelActionForm.d.ts +0 -56
- package/dist/actionPanels/PanelActionForm.d.ts.map +0 -1
- package/dist/actionPanels/PanelActionForm.js +0 -30
- package/dist/actionPanels/PanelActionForm.js.map +0 -1
- package/dist/actionPanels/PanelActionForm.mjs +0 -168
- package/dist/actionPanels/PanelActionForm.mjs.map +0 -1
- package/dist/actionPanels/PanelEditor.d.ts +0 -44
- package/dist/actionPanels/PanelEditor.d.ts.map +0 -1
- package/dist/actionPanels/PanelEditor.js +0 -78
- package/dist/actionPanels/PanelEditor.js.map +0 -1
- package/dist/actionPanels/PanelEditor.mjs +0 -345
- package/dist/actionPanels/PanelEditor.mjs.map +0 -1
- package/dist/actionPanels/panelActionFields.module.css +0 -18
- package/dist/domain/inquiryTree/ruleBindings.d.ts +0 -10
- package/dist/domain/inquiryTree/ruleBindings.d.ts.map +0 -1
- package/dist/domain/inquiryTree/ruleBindings.js +0 -20
- package/dist/domain/inquiryTree/ruleBindings.js.map +0 -1
- package/dist/domain/inquiryTree/ruleBindings.mjs +0 -21
- package/dist/domain/inquiryTree/ruleBindings.mjs.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.d.ts +0 -17
- package/dist/inquiry/v2/kernel/readOnlyModel.d.ts.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.js +0 -19
- package/dist/inquiry/v2/kernel/readOnlyModel.js.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.mjs +0 -21
- package/dist/inquiry/v2/kernel/readOnlyModel.mjs.map +0 -1
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PanelPositionEnums } from "../../../../enums/unitySystemEnums.mjs";
|
|
2
2
|
import { applyRule, mapRuleVariables } from "../../../../domain/inquiryTree/rules.mjs";
|
|
3
3
|
import { nodeEntityName } from "../../../../domain/inquiryTree/displayTree.mjs";
|
|
4
|
-
import { resolvePanelButtonIcon } from "../../../../domain/actionPanel/actionTypeMeta.mjs";
|
|
4
|
+
import { actionButtonLabel, resolvePanelButtonIcon } from "../../../../domain/actionPanel/actionTypeMeta.mjs";
|
|
5
|
+
import { compareButtonOrder, panelOrderKeys } from "../../../../domain/actionPanel/buttonOrder.mjs";
|
|
6
|
+
import { panelFromWire } from "../../../../domain/actionPanel/serialize.mjs";
|
|
5
7
|
//#region src/inquiry/v2/capabilities/actions/actionModel.ts
|
|
6
8
|
/**
|
|
7
9
|
* Pure resolution of a node's action panels into renderable actions
|
|
8
10
|
* (inquiry-v2-architecture.md §7). The wire panel already carries the full
|
|
9
11
|
* action object, so v2 never refetches `action/{id}` on click. Rule
|
|
10
|
-
* evaluation reproduces the legacy semantics (AND-reduce over
|
|
12
|
+
* evaluation reproduces the legacy semantics (AND-reduce over the rules,
|
|
11
13
|
* evaluated against the record with the joining-entity key).
|
|
12
14
|
*/
|
|
13
|
-
const passesActionRules = (action, node) => {
|
|
14
|
-
const rules = action.actionRules;
|
|
15
|
-
if (!rules?.length) return true;
|
|
16
|
-
return rules.reduce((pass, rule) => {
|
|
17
|
-
const expression = mapRuleVariables(rule.mapping, rule.jsonLogic);
|
|
18
|
-
return pass && !!applyRule(expression, node.nodeObj ?? {}, node.properties?.joiningEntityCatalogObjectKey, node.wasLazyLoaded);
|
|
19
|
-
}, true);
|
|
20
|
-
};
|
|
21
15
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
16
|
+
* The URL an Open external link / Redirect action goes to. A link configured
|
|
17
|
+
* with an entity carries it to the target page as `entityName` and
|
|
18
|
+
* `apiCatalogId` — v1's contract (actionUtils.js:67-73), which pages opened
|
|
19
|
+
* this way read to know what they were opened for.
|
|
25
20
|
*/
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
|
|
21
|
+
const linkUrlOf = (action, catalogId) => {
|
|
22
|
+
const url = action.value ?? "";
|
|
23
|
+
const entityName = action.parameters?.entityName;
|
|
24
|
+
if (!url || !entityName) return url;
|
|
25
|
+
const query = new URLSearchParams({
|
|
26
|
+
entityName,
|
|
27
|
+
apiCatalogId: catalogId
|
|
28
|
+
});
|
|
29
|
+
return `${url}${url.includes("?") ? "&" : "?"}${query.toString()}`;
|
|
29
30
|
};
|
|
31
|
+
const passesActionRules = (action, node) => action.rules.reduce((pass, rule) => pass && !!applyRule(mapRuleVariables(rule.mapping, rule.jsonLogic), node.nodeObj ?? {}), true);
|
|
30
32
|
/**
|
|
31
33
|
* An action reached by id with no panel row behind it — an alert threshold's
|
|
32
34
|
* `actionId` (legacy UdpAlert → useActions.triggerAction). Same resolved shape
|
|
@@ -37,7 +39,7 @@ const actionLabel = (action) => {
|
|
|
37
39
|
*/
|
|
38
40
|
const resolveStandaloneAction = (id, action, node) => ({
|
|
39
41
|
id,
|
|
40
|
-
label:
|
|
42
|
+
label: actionButtonLabel(action),
|
|
41
43
|
iconName: resolvePanelButtonIcon({ action }),
|
|
42
44
|
isPrimary: false,
|
|
43
45
|
disabled: false,
|
|
@@ -60,53 +62,113 @@ const HEADER_POSITIONS = [
|
|
|
60
62
|
PanelPositionEnums.Site_Header,
|
|
61
63
|
PanelPositionEnums.Site_Header_Summary
|
|
62
64
|
];
|
|
63
|
-
|
|
65
|
+
/**
|
|
66
|
+
* The entity a method works on: the one whose promoted create, update, delete
|
|
67
|
+
* or get method it is. A button that runs one of these acts on THAT entity,
|
|
68
|
+
* whichever level it sits on — "Add assignment" on a Resource creates an
|
|
69
|
+
* Assignment.
|
|
70
|
+
*/
|
|
71
|
+
const entityOfMethod = (promoted, apiMethodId) => typeof apiMethodId === "string" && apiMethodId ? promoted?.find((entity) => [
|
|
72
|
+
entity.unityBaseCreateMethod,
|
|
73
|
+
entity.unityBaseUpdateMethod,
|
|
74
|
+
entity.unityBaseDeleteMethod,
|
|
75
|
+
entity.unityBaseGetMethod
|
|
76
|
+
].some((method) => method?.apiMethodId === apiMethodId))?.entityName : void 0;
|
|
77
|
+
const resolveHeaderActions = (panels, node, promoted) => {
|
|
64
78
|
const resolved = [];
|
|
65
|
-
for (const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
79
|
+
for (const [panelIndex, attachment] of (panels ?? []).entries()) {
|
|
80
|
+
if (!HEADER_POSITIONS.includes(attachment?.panelPositionId)) continue;
|
|
81
|
+
const panel = panelFromWire(attachment);
|
|
82
|
+
const keys = panelOrderKeys(panel, panelIndex);
|
|
83
|
+
for (const [index, button] of panel.buttons.entries()) {
|
|
84
|
+
const { action } = button;
|
|
85
|
+
if (!action.actionTypeId) continue;
|
|
71
86
|
const passRule = passesActionRules(action, node);
|
|
72
|
-
if (!passRule &&
|
|
87
|
+
if (!passRule && button.hideAction) continue;
|
|
73
88
|
resolved.push({
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
89
|
+
key: keys[index],
|
|
90
|
+
button: {
|
|
91
|
+
id: button.panelActionId ?? `${panelIndex}:${index}`,
|
|
92
|
+
label: actionButtonLabel(action),
|
|
93
|
+
iconName: resolvePanelButtonIcon(button),
|
|
94
|
+
isPrimary: button.isPrimary,
|
|
95
|
+
disabled: !passRule || !button.enabled,
|
|
96
|
+
sequence: button.sequence,
|
|
97
|
+
groupName: button.groupName?.trim() || null,
|
|
98
|
+
entityName: action.parameters?.entityName ?? entityOfMethod(promoted, action.value) ?? attachment.entityName ?? nodeEntityName(node) ?? "",
|
|
99
|
+
action
|
|
100
|
+
}
|
|
83
101
|
});
|
|
84
102
|
}
|
|
85
103
|
}
|
|
86
|
-
return resolved.sort((a, b) => a.
|
|
104
|
+
return resolved.sort((a, b) => compareButtonOrder(a.key, b.key)).map(({ button }) => button);
|
|
87
105
|
};
|
|
88
106
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* section exactly as they did in v1. One group ⇒ no section numbers at all,
|
|
95
|
-
* so nothing draws a divider that separates nothing.
|
|
107
|
+
* The header row's slots, in the already-sequenced order: each ungrouped
|
|
108
|
+
* action is its own button; each authored `groupName` becomes ONE menu button
|
|
109
|
+
* labelled with that name, holding its actions, at its first appearance. v1
|
|
110
|
+
* headed the actions popover with these names (ActionSummaryPopover:59-72);
|
|
111
|
+
* here the name is the menu's own label, so the group reads in the header.
|
|
96
112
|
*/
|
|
97
|
-
const
|
|
98
|
-
const
|
|
113
|
+
const headerEntries = (actions) => {
|
|
114
|
+
const entries = [];
|
|
115
|
+
const groups = /* @__PURE__ */ new Map();
|
|
99
116
|
for (const action of actions) {
|
|
100
|
-
|
|
101
|
-
|
|
117
|
+
if (!action.groupName) {
|
|
118
|
+
entries.push({
|
|
119
|
+
kind: "button",
|
|
120
|
+
action
|
|
121
|
+
});
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
const key = action.groupName.toLowerCase();
|
|
125
|
+
const group = groups.get(key);
|
|
126
|
+
if (group) {
|
|
127
|
+
group.actions.push(action);
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
const created = {
|
|
131
|
+
kind: "group",
|
|
132
|
+
key,
|
|
133
|
+
label: action.groupName,
|
|
134
|
+
actions: [action]
|
|
135
|
+
};
|
|
136
|
+
groups.set(key, created);
|
|
137
|
+
entries.push(created);
|
|
102
138
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
139
|
+
return entries;
|
|
140
|
+
};
|
|
141
|
+
/** A slot's identity in the header row — a React key, and what its measured width is cached under. */
|
|
142
|
+
const headerEntryKey = (entry) => entry.kind === "button" ? entry.action.id : `group:${entry.key}`;
|
|
143
|
+
/** Beyond this many slots the row always folds some into the overflow menu. */
|
|
144
|
+
const HEADER_VISIBLE_CAP = 3;
|
|
145
|
+
/**
|
|
146
|
+
* The order the header row's slots fold into the overflow menu as room runs
|
|
147
|
+
* out: from the LEFT, with a primary button held back to the last — it is the
|
|
148
|
+
* one action the row must keep showing.
|
|
149
|
+
*/
|
|
150
|
+
const headerFoldOrder = (entries) => {
|
|
151
|
+
const isPrimary = (entry) => entry.kind === "button" && !!entry.action.isPrimary;
|
|
152
|
+
return [...entries.filter((entry) => !isPrimary(entry)), ...entries.filter(isPrimary)].map(headerEntryKey);
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* How many slots are folded however wide the row is: with more than one over
|
|
156
|
+
* the cap, all but the cap (one slot over is kept — a menu holding a single
|
|
157
|
+
* item saves nothing).
|
|
158
|
+
*/
|
|
159
|
+
const minFoldedHeaderEntries = (entries) => entries.length > HEADER_VISIBLE_CAP + 1 ? entries.length - HEADER_VISIBLE_CAP : 0;
|
|
160
|
+
/**
|
|
161
|
+
* The row with `folded` of its slots in the overflow menu: which stay as
|
|
162
|
+
* buttons and which the menu lists, both in the configured order.
|
|
163
|
+
*/
|
|
164
|
+
const foldHeaderEntries = (entries, folded) => {
|
|
165
|
+
const inMenu = new Set(headerFoldOrder(entries).slice(0, folded));
|
|
166
|
+
return {
|
|
167
|
+
visible: entries.filter((entry) => !inMenu.has(headerEntryKey(entry))),
|
|
168
|
+
overflow: entries.filter((entry) => inMenu.has(headerEntryKey(entry)))
|
|
169
|
+
};
|
|
108
170
|
};
|
|
109
171
|
//#endregion
|
|
110
|
-
export {
|
|
172
|
+
export { foldHeaderEntries, headerEntries, headerEntryKey, headerFoldOrder, linkUrlOf, minFoldedHeaderEntries, resolveHeaderActions, resolveStandaloneAction };
|
|
111
173
|
|
|
112
174
|
//# sourceMappingURL=actionModel.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionModel.mjs","names":["resolvePanelButtonIcon","applyRule","mapRuleVariables","JsonLogic","nodeEntityName","DisplayNode","NodeActionEnums","PanelPositionEnums","ActionWire","name","actionTypeId","value","parameters","entityName","pageId","pageDisplayName","requiredFieldMapping","Record","actionRules","Array","mapping","jsonLogic","PanelActionWire","actionId","isPrimary","enabled","hideAction","sequence","icon","type","groupName","action","PanelWire","panelPositionId","panelActions","ResolvedPanelAction","id","label","iconName","disabled","passesActionRules","node","rules","length","reduce","pass","rule","expression","nodeObj","properties","joiningEntityCatalogObjectKey","wasLazyLoaded","actionLabel","typeName","trim","split","join","resolveStandaloneAction","HEADER_POSITIONS","Inquiry_Header","Inquiry_Header_Summary","Speed_Dial","Site_Header","Site_Header_Summary","resolveHeaderActions","panels","resolved","rawPanel","position","includes","panelAction","passRule","push","String","Number","sort","a","b","assignMenuSections","actions","sectionNumber","sections","Map","key","toLowerCase","has","set","size","map","get"],"sources":["../../../../../src/inquiry/v2/capabilities/actions/actionModel.ts"],"sourcesContent":["/**\n * Pure resolution of a node's action panels into renderable actions\n * (inquiry-v2-architecture.md §7). The wire panel already carries the full\n * action object, so v2 never refetches `action/{id}` on click. Rule\n * evaluation reproduces the legacy semantics (AND-reduce over actionRules,\n * evaluated against the record with the joining-entity key).\n */\nimport { resolvePanelButtonIcon } from '../../../../domain/actionPanel/actionTypeMeta';\nimport { applyRule, mapRuleVariables } from '../../../../domain/inquiryTree/rules';\nimport type { JsonLogic } from '../../../../domain/inquiryTree/types';\nimport {\n nodeEntityName,\n type DisplayNode\n} from '../../../../domain/inquiryTree/displayTree';\nimport {\n NodeActionEnums,\n PanelPositionEnums\n} from '../../../../enums/unitySystemEnums';\n\nexport interface ActionWire {\n name?: string;\n actionTypeId?: NodeActionEnums;\n /** Action payload — url for links/redirects, apiMethodId for CRUD, … */\n value?: string;\n parameters?: {\n entityName?: string;\n pageId?: string;\n pageDisplayName?: string;\n requiredFieldMapping?: Record<string, unknown>;\n } | null;\n actionRules?: Array<{\n mapping?: Record<string, string> | null;\n jsonLogic?: JsonLogic | null;\n }> | null;\n}\n\nexport interface PanelActionWire {\n actionId?: string;\n isPrimary?: boolean;\n enabled?: boolean;\n hideAction?: boolean;\n sequence?: number | string;\n icon?: { name?: string; type?: string } | null;\n /** Free-text section label authored on the panel row (\"Account\"), or null. */\n groupName?: string | null;\n action?: ActionWire | null;\n}\n\nexport interface PanelWire {\n panelPositionId?: PanelPositionEnums;\n entityName?: string;\n panelActions?: PanelActionWire[] | null;\n}\n\nexport interface ResolvedPanelAction {\n id: string;\n label: string;\n /** Registry icon name, already through the legacy-name/action-type fallback. */\n iconName: string;\n isPrimary: boolean;\n disabled: boolean;\n sequence: number;\n /** Authored section label, trimmed; null when the row carries none. */\n groupName: string | null;\n /** The panel's entity (create/update/delete target). */\n entityName: string;\n action: ActionWire;\n}\n\nconst passesActionRules = (\n action: ActionWire,\n node: DisplayNode\n): boolean => {\n const rules = action.actionRules;\n if (!rules?.length) return true;\n return rules.reduce((pass, rule) => {\n const expression = mapRuleVariables(rule.mapping, rule.jsonLogic);\n return (\n pass &&\n !!applyRule(\n expression,\n node.nodeObj ?? {},\n node.properties?.joiningEntityCatalogObjectKey as string | undefined,\n node.wasLazyLoaded as boolean | undefined\n )\n );\n }, true);\n};\n\n/**\n * Blank-name actions were icon-only in the legacy speed dial; v2 buttons\n * always carry a visible (and accessible) name, so fall back to the action\n * type's own name rather than rendering a nameless control.\n */\nconst actionLabel = (action: ActionWire): string => {\n const typeName: string | undefined = (\n NodeActionEnums as unknown as Record<number, string>\n )[action.actionTypeId ?? -1];\n return action.name?.trim() || (typeName ?? '').split('_').join(' ');\n};\n\n/**\n * An action reached by id with no panel row behind it — an alert threshold's\n * `actionId` (legacy UdpAlert → useActions.triggerAction). Same resolved shape\n * the header buttons run, so `runAction` needs no second path; placement\n * fields are the neutral defaults because nothing renders this as a button.\n * Entity resolution is the legacy trigger's: the action's own\n * `parameters.entityName`, else the node's entity.\n */\nexport const resolveStandaloneAction = (\n id: string,\n action: ActionWire,\n node: DisplayNode\n): ResolvedPanelAction => ({\n id,\n label: actionLabel(action),\n iconName: resolvePanelButtonIcon({ action }),\n isPrimary: false,\n disabled: false,\n sequence: 0,\n groupName: null,\n entityName: action.parameters?.entityName ?? nodeEntityName(node) ?? '',\n action\n});\n\n/**\n * The node-header action row. ALL panel positions land here for now —\n * Inquiry_Header(+Summary) natively; Speed_Dial (legacy MUI FAB) and\n * Site_Header(+Summary) (legacy teleport into the Shell app bar — v2 is\n * no-teleporter) as INTERIM placements per Jordan 2026-08-04, so configured\n * buttons are never silently dropped. Dedicated placements can come later.\n */\nconst HEADER_POSITIONS: PanelPositionEnums[] = [\n PanelPositionEnums.Inquiry_Header,\n PanelPositionEnums.Inquiry_Header_Summary,\n PanelPositionEnums.Speed_Dial,\n PanelPositionEnums.Site_Header,\n PanelPositionEnums.Site_Header_Summary\n];\n\nexport const resolveHeaderActions = (\n panels: unknown[],\n node: DisplayNode\n): ResolvedPanelAction[] => {\n const resolved: ResolvedPanelAction[] = [];\n for (const rawPanel of (panels ?? []) as PanelWire[]) {\n const position = rawPanel?.panelPositionId;\n if (!position || !HEADER_POSITIONS.includes(position)) continue;\n for (const panelAction of rawPanel.panelActions ?? []) {\n const action = panelAction?.action;\n if (!action) continue;\n const passRule = passesActionRules(action, node);\n // Legacy semantics: failing rules hide when hideAction, else disable.\n if (!passRule && panelAction.hideAction) continue;\n resolved.push({\n id: String(panelAction.actionId ?? resolved.length),\n label: actionLabel(action),\n iconName: resolvePanelButtonIcon(panelAction),\n isPrimary: panelAction.isPrimary === true,\n disabled: !passRule || panelAction.enabled === false,\n sequence: Number(panelAction.sequence ?? 0) || 0,\n groupName: panelAction.groupName?.trim() || null,\n // v1 parity: the action's own entityName wins (the legacy panel\n // lookup was broken and ALWAYS fell back to parameters.entityName,\n // which is also the simple name the promoted-methods endpoint takes;\n // panel/node entity names are namespace-qualified).\n entityName:\n action.parameters?.entityName ??\n rawPanel.entityName ??\n (nodeEntityName(node) ?? ''),\n action\n });\n }\n }\n return resolved.sort((a, b) => a.sequence - b.sequence);\n};\n\n/**\n * v1 parity (ActionSummaryPopover:59-72): the actions menu renders authored\n * `groupName` groups. `UdpMenu` has no section *label*, so a group becomes a\n * `sectionNumber` — the divider it draws between sections. Grouping is\n * case-insensitive (legacy `toLowerCase()` compare), section order is first\n * appearance in the already-sequenced list, and ungrouped rows share one\n * section exactly as they did in v1. One group ⇒ no section numbers at all,\n * so nothing draws a divider that separates nothing.\n */\nexport const assignMenuSections = (\n actions: ResolvedPanelAction[]\n): Array<ResolvedPanelAction & { sectionNumber?: number }> => {\n const sections = new Map<string, number>();\n for (const action of actions) {\n const key = action.groupName?.toLowerCase() ?? '';\n if (!sections.has(key)) sections.set(key, sections.size + 1);\n }\n if (sections.size < 2) return actions;\n return actions.map((action) => ({\n ...action,\n sectionNumber: sections.get(action.groupName?.toLowerCase() ?? '')\n }));\n};\n"],"mappings":";;;;;;;;;;;;AAqEA,MAAMwC,qBACJT,QACAU,SACY;CACZ,MAAMC,QAAQX,OAAOb;AACrB,KAAI,CAACwB,OAAOC,OAAQ,QAAO;AAC3B,QAAOD,MAAME,QAAQC,MAAMC,SAAS;EAClC,MAAMC,aAAa7C,iBAAiB4C,KAAK1B,SAAS0B,KAAKzB,UAAU;AACjE,SACEwB,QACA,CAAC,CAAC5C,UACA8C,YACAN,KAAKO,WAAW,EAAE,EAClBP,KAAKQ,YAAYC,+BACjBT,KAAKU,cACN;IAEF,KAAK;;;;;;;AAQV,MAAMC,eAAerB,WAA+B;CAClD,MAAMsB,WACJ/C,gBACAyB,OAAOrB,gBAAgB;AACzB,QAAOqB,OAAOtB,MAAM6C,MAAM,KAAKD,YAAY,IAAIE,MAAM,IAAI,CAACC,KAAK,IAAI;;;;;;;;;;AAWrE,MAAaC,2BACXrB,IACAL,QACAU,UACyB;CACzBL;CACAC,OAAOe,YAAYrB,OAAO;CAC1BO,UAAUtC,uBAAuB,EAAE+B,QAAQ,CAAC;CAC5CP,WAAW;CACXe,UAAU;CACVZ,UAAU;CACVG,WAAW;CACXjB,YAAYkB,OAAOnB,YAAYC,cAAcT,eAAeqC,KAAK,IAAI;CACrEV;CACD;;;;;;;;AASD,MAAM2B,mBAAyC;CAC7CnD,mBAAmBoD;CACnBpD,mBAAmBqD;CACnBrD,mBAAmBsD;CACnBtD,mBAAmBuD;CACnBvD,mBAAmBwD;CACpB;AAED,MAAaC,wBACXC,QACAxB,SAC0B;CAC1B,MA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E,EAAE"}
|
|
1
|
+
{"version":3,"file":"actionModel.mjs","names":["actionButtonLabel","resolvePanelButtonIcon","compareButtonOrder","panelOrderKeys","ButtonOrderKey","panelFromWire","PanelWire","ActionConfig","applyRule","mapRuleVariables","NodePanel","nodeEntityName","DisplayNode","PanelPositionEnums","linkUrlOf","action","Pick","catalogId","url","value","entityName","parameters","query","URLSearchParams","apiCatalogId","includes","toString","ResolvedPanelAction","id","label","iconName","isPrimary","disabled","sequence","groupName","passesActionRules","node","rules","reduce","pass","rule","mapping","jsonLogic","nodeObj","resolveStandaloneAction","HEADER_POSITIONS","Inquiry_Header","Inquiry_Header_Summary","Speed_Dial","Site_Header","Site_Header_Summary","PromotedMethods","Partial","Record","apiMethodId","entityOfMethod","promoted","find","entity","unityBaseCreateMethod","unityBaseUpdateMethod","unityBaseDeleteMethod","unityBaseGetMethod","some","method","undefined","resolveHeaderActions","panels","resolved","key","button","panelIndex","attachment","entries","panelPositionId","panel","keys","index","buttons","actionTypeId","passRule","hideAction","push","panelActionId","enabled","trim","sort","a","b","map","HeaderEntry","kind","actions","headerEntries","groups","Map","Extract","toLowerCase","group","get","created","const","set","headerEntryKey","entry","HEADER_VISIBLE_CAP","headerFoldOrder","filter","minFoldedHeaderEntries","length","foldHeaderEntries","folded","visible","overflow","inMenu","Set","slice","has"],"sources":["../../../../../src/inquiry/v2/capabilities/actions/actionModel.ts"],"sourcesContent":["/**\n * Pure resolution of a node's action panels into renderable actions\n * (inquiry-v2-architecture.md §7). The wire panel already carries the full\n * action object, so v2 never refetches `action/{id}` on click. Rule\n * evaluation reproduces the legacy semantics (AND-reduce over the rules,\n * evaluated against the record with the joining-entity key).\n */\nimport {\n actionButtonLabel,\n resolvePanelButtonIcon\n} from '../../../../domain/actionPanel/actionTypeMeta';\nimport {\n compareButtonOrder,\n panelOrderKeys,\n type ButtonOrderKey\n} from '../../../../domain/actionPanel/buttonOrder';\nimport {\n panelFromWire,\n type PanelWire\n} from '../../../../domain/actionPanel/serialize';\nimport type { ActionConfig } from '../../../../domain/actionPanel/types';\nimport {\n applyRule,\n mapRuleVariables\n} from '../../../../domain/inquiryTree/rules';\nimport type { NodePanel } from '../../../../domain/inquiryTree/types';\nimport {\n nodeEntityName,\n type DisplayNode\n} from '../../../../domain/inquiryTree/displayTree';\nimport { PanelPositionEnums } from '../../../../enums/unitySystemEnums';\n\n/**\n * The URL an Open external link / Redirect action goes to. A link configured\n * with an entity carries it to the target page as `entityName` and\n * `apiCatalogId` — v1's contract (actionUtils.js:67-73), which pages opened\n * this way read to know what they were opened for.\n */\nexport const linkUrlOf = (\n action: Pick<ActionConfig, 'value' | 'parameters'>,\n catalogId: string\n): string => {\n const url = action.value ?? '';\n const entityName = action.parameters?.entityName;\n if (!url || !entityName) return url;\n const query = new URLSearchParams({ entityName, apiCatalogId: catalogId });\n return `${url}${url.includes('?') ? '&' : '?'}${query.toString()}`;\n};\n\nexport interface ResolvedPanelAction {\n id: string;\n label: string;\n /** Registry icon name, already through the legacy-name/action-type fallback. */\n iconName: string;\n isPrimary: boolean;\n disabled: boolean;\n sequence: number;\n /** Authored section label, trimmed; null when the row carries none. */\n groupName: string | null;\n /** The panel's entity (create/update/delete target). */\n entityName: string;\n action: ActionConfig;\n}\n\nconst passesActionRules = (action: ActionConfig, node: DisplayNode): boolean =>\n action.rules.reduce(\n (pass, rule) =>\n pass &&\n !!applyRule(\n mapRuleVariables(rule.mapping, rule.jsonLogic),\n node.nodeObj ?? {}\n ),\n true\n );\n\n/**\n * An action reached by id with no panel row behind it — an alert threshold's\n * `actionId` (legacy UdpAlert → useActions.triggerAction). Same resolved shape\n * the header buttons run, so `runAction` needs no second path; placement\n * fields are the neutral defaults because nothing renders this as a button.\n * Entity resolution is the legacy trigger's: the action's own\n * `parameters.entityName`, else the node's entity.\n */\nexport const resolveStandaloneAction = (\n id: string,\n action: ActionConfig,\n node: DisplayNode\n): ResolvedPanelAction => ({\n id,\n label: actionButtonLabel(action),\n iconName: resolvePanelButtonIcon({ action }),\n isPrimary: false,\n disabled: false,\n sequence: 0,\n groupName: null,\n entityName: action.parameters?.entityName ?? nodeEntityName(node) ?? '',\n action\n});\n\n/**\n * The node-header action row. ALL panel positions land here for now —\n * Inquiry_Header(+Summary) natively; Speed_Dial (legacy MUI FAB) and\n * Site_Header(+Summary) (legacy teleport into the Shell app bar — v2 is\n * no-teleporter) as INTERIM placements per Jordan 2026-08-04, so configured\n * buttons are never silently dropped. Dedicated placements can come later.\n */\nconst HEADER_POSITIONS: PanelPositionEnums[] = [\n PanelPositionEnums.Inquiry_Header,\n PanelPositionEnums.Inquiry_Header_Summary,\n PanelPositionEnums.Speed_Dial,\n PanelPositionEnums.Site_Header,\n PanelPositionEnums.Site_Header_Summary\n];\n\n/** One entity's promoted CRUD methods, as the catalog's promotions list them. */\ntype PromotedMethods = {\n entityName?: string;\n} & Partial<\n Record<\n | 'unityBaseCreateMethod'\n | 'unityBaseUpdateMethod'\n | 'unityBaseDeleteMethod'\n | 'unityBaseGetMethod',\n { apiMethodId?: string } | null\n >\n>;\n\n/**\n * The entity a method works on: the one whose promoted create, update, delete\n * or get method it is. A button that runs one of these acts on THAT entity,\n * whichever level it sits on — \"Add assignment\" on a Resource creates an\n * Assignment.\n */\nexport const entityOfMethod = (\n promoted: readonly PromotedMethods[] | null | undefined,\n apiMethodId: unknown\n): string | undefined =>\n typeof apiMethodId === 'string' && apiMethodId\n ? promoted?.find((entity) =>\n [\n entity.unityBaseCreateMethod,\n entity.unityBaseUpdateMethod,\n entity.unityBaseDeleteMethod,\n entity.unityBaseGetMethod\n ].some((method) => method?.apiMethodId === apiMethodId)\n )?.entityName\n : undefined;\n\nexport const resolveHeaderActions = (\n panels: NodePanel[] | null | undefined,\n node: DisplayNode,\n /** The catalog's promoted entities — names the entity a button's method works on. */\n promoted?: readonly PromotedMethods[] | null\n): ResolvedPanelAction[] => {\n // Sorted by the one canonical button order (domain/actionPanel/buttonOrder);\n // each panel IS the tree read's copy, so its buttons keep their positions.\n const resolved: { key: ButtonOrderKey; button: ResolvedPanelAction }[] = [];\n for (const [panelIndex, attachment] of (panels ?? []).entries()) {\n if (!HEADER_POSITIONS.includes(attachment?.panelPositionId)) continue;\n // The attachment is the tree read's join row: a panel row plus placement.\n const panel = panelFromWire(attachment as PanelWire);\n const keys = panelOrderKeys(panel, panelIndex);\n for (const [index, button] of panel.buttons.entries()) {\n const { action } = button;\n // A row whose action did not join reads as type 0: nothing to run.\n if (!action.actionTypeId) continue;\n const passRule = passesActionRules(action, node);\n // Legacy semantics: failing rules hide when hideAction, else disable.\n if (!passRule && button.hideAction) continue;\n resolved.push({\n key: keys[index],\n button: {\n // The panel-action row, not the action: one action can sit in two\n // panels.\n id: button.panelActionId ?? `${panelIndex}:${index}`,\n label: actionButtonLabel(action),\n iconName: resolvePanelButtonIcon(button),\n isPrimary: button.isPrimary,\n disabled: !passRule || !button.enabled,\n sequence: button.sequence,\n groupName: button.groupName?.trim() || null,\n // v1 parity: the action's own entityName wins (the legacy panel\n // lookup was broken and ALWAYS fell back to parameters.entityName,\n // which is also the simple name the promoted-methods endpoint takes;\n // panel/node entity names are namespace-qualified).\n // …then the entity the button's own method works on, which is the\n // level's entity for most buttons and another's for one that adds\n // a child record from its parent.\n entityName:\n action.parameters?.entityName ??\n entityOfMethod(promoted, action.value) ??\n attachment.entityName ??\n nodeEntityName(node) ??\n '',\n action\n }\n });\n }\n }\n return resolved\n .sort((a, b) => compareButtonOrder(a.key, b.key))\n .map(({ button }) => button);\n};\n\n/** One slot in the header row: a lone button, or a named group's menu. */\nexport type HeaderEntry =\n | { kind: 'button'; action: ResolvedPanelAction }\n | {\n kind: 'group';\n /** Case-insensitive key — the legacy popover's `toLowerCase()` compare. */\n key: string;\n /** The group name as first authored. */\n label: string;\n actions: ResolvedPanelAction[];\n };\n\n/**\n * The header row's slots, in the already-sequenced order: each ungrouped\n * action is its own button; each authored `groupName` becomes ONE menu button\n * labelled with that name, holding its actions, at its first appearance. v1\n * headed the actions popover with these names (ActionSummaryPopover:59-72);\n * here the name is the menu's own label, so the group reads in the header.\n */\nexport const headerEntries = (\n actions: ResolvedPanelAction[]\n): HeaderEntry[] => {\n const entries: HeaderEntry[] = [];\n const groups = new Map<string, Extract<HeaderEntry, { kind: 'group' }>>();\n for (const action of actions) {\n if (!action.groupName) {\n entries.push({ kind: 'button', action });\n continue;\n }\n const key = action.groupName.toLowerCase();\n const group = groups.get(key);\n if (group) {\n group.actions.push(action);\n continue;\n }\n const created = {\n kind: 'group' as const,\n key,\n label: action.groupName,\n actions: [action]\n };\n groups.set(key, created);\n entries.push(created);\n }\n return entries;\n};\n\n/** A slot's identity in the header row — a React key, and what its measured width is cached under. */\nexport const headerEntryKey = (entry: HeaderEntry): string =>\n entry.kind === 'button' ? entry.action.id : `group:${entry.key}`;\n\n/** Beyond this many slots the row always folds some into the overflow menu. */\nconst HEADER_VISIBLE_CAP = 3;\n\n/**\n * The order the header row's slots fold into the overflow menu as room runs\n * out: from the LEFT, with a primary button held back to the last — it is the\n * one action the row must keep showing.\n */\nexport const headerFoldOrder = (entries: HeaderEntry[]): string[] => {\n const isPrimary = (entry: HeaderEntry) =>\n entry.kind === 'button' && !!entry.action.isPrimary;\n return [\n ...entries.filter((entry) => !isPrimary(entry)),\n ...entries.filter(isPrimary)\n ].map(headerEntryKey);\n};\n\n/**\n * How many slots are folded however wide the row is: with more than one over\n * the cap, all but the cap (one slot over is kept — a menu holding a single\n * item saves nothing).\n */\nexport const minFoldedHeaderEntries = (entries: HeaderEntry[]): number =>\n entries.length > HEADER_VISIBLE_CAP + 1\n ? entries.length - HEADER_VISIBLE_CAP\n : 0;\n\n/**\n * The row with `folded` of its slots in the overflow menu: which stay as\n * buttons and which the menu lists, both in the configured order.\n */\nexport const foldHeaderEntries = (\n entries: HeaderEntry[],\n folded: number\n): { visible: HeaderEntry[]; overflow: HeaderEntry[] } => {\n const inMenu = new Set(headerFoldOrder(entries).slice(0, folded));\n return {\n visible: entries.filter((entry) => !inMenu.has(headerEntryKey(entry))),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opened from, and the entity it is one of. */
|
|
3
|
+
export interface ParentSource {
|
|
4
|
+
entityName?: string;
|
|
5
|
+
record?: Record<string, unknown>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A new record's PARENT KEY, pre-filled and locked — what a maintenance
|
|
9
|
+
* drill-down's Add does (ChildTab), worked out from where the sheet was
|
|
10
|
+
* opened. `sources` are tried in order: the selected record (a button on a
|
|
11
|
+
* Resource that adds one of its Assignments), then its parent in the tree (a
|
|
12
|
+
* button on an Assignment that adds a sibling). The first source the new
|
|
13
|
+
* entity points at fills that foreign key. Where it points at the source
|
|
14
|
+
* twice (an Assignment's Resource and its Approver Override are both
|
|
15
|
+
* Resources), the key named after the parent's own key is the parent
|
|
16
|
+
* (`ResourceId`); the other is a reference to some record of that entity.
|
|
17
|
+
*
|
|
18
|
+
* Nothing is guessed: no source that is a parent, several keys none of which
|
|
19
|
+
* is named for it, or a parent with no key value pre-fills nothing, and the
|
|
20
|
+
* form asks.
|
|
21
|
+
*/
|
|
22
|
+
export declare const parentKeyDefaults: (meta: EntityMeta, sources: ParentSource[]) => {
|
|
23
|
+
defaults: Record<string, unknown>;
|
|
24
|
+
locked: string[];
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=parentKeyDefaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parentKeyDefaults.d.ts","sourceRoot":"","sources":["../../../../../src/inquiry/v2/capabilities/actions/parentKeyDefaults.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAEzE,8EAA8E;AAC9E,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB;;;CAqB7B,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { sanitizedName, toJsonKey } from '../../../../maintenance/metadata/normalize';
|
|
2
|
+
/**
|
|
3
|
+
* A new record's PARENT KEY, pre-filled and locked — what a maintenance
|
|
4
|
+
* drill-down's Add does (ChildTab), worked out from where the sheet was
|
|
5
|
+
* opened. `sources` are tried in order: the selected record (a button on a
|
|
6
|
+
* Resource that adds one of its Assignments), then its parent in the tree (a
|
|
7
|
+
* button on an Assignment that adds a sibling). The first source the new
|
|
8
|
+
* entity points at fills that foreign key. Where it points at the source
|
|
9
|
+
* twice (an Assignment's Resource and its Approver Override are both
|
|
10
|
+
* Resources), the key named after the parent's own key is the parent
|
|
11
|
+
* (`ResourceId`); the other is a reference to some record of that entity.
|
|
12
|
+
*
|
|
13
|
+
* Nothing is guessed: no source that is a parent, several keys none of which
|
|
14
|
+
* is named for it, or a parent with no key value pre-fills nothing, and the
|
|
15
|
+
* form asks.
|
|
16
|
+
*/
|
|
17
|
+
export const parentKeyDefaults = (meta, sources) => {
|
|
18
|
+
for (const { entityName, record } of sources) {
|
|
19
|
+
if (!entityName || !record)
|
|
20
|
+
continue;
|
|
21
|
+
const name = sanitizedName(entityName);
|
|
22
|
+
const parents = meta.parents.filter((parent) => !parent.isPlatform && parent.target.name === name);
|
|
23
|
+
const parent = parents.length === 1
|
|
24
|
+
? parents[0]
|
|
25
|
+
: parents.find((candidate) => candidate.fkField === candidate.target.pk);
|
|
26
|
+
if (!(parent === null || parent === void 0 ? void 0 : parent.target.pk))
|
|
27
|
+
continue;
|
|
28
|
+
const key = record[toJsonKey(parent.target.pk)];
|
|
29
|
+
if (key === undefined || key === null || key === '')
|
|
30
|
+
continue;
|
|
31
|
+
const field = toJsonKey(parent.fkField);
|
|
32
|
+
return { defaults: { [field]: key }, locked: [field] };
|
|
33
|
+
}
|
|
34
|
+
return { defaults: {}, locked: [] };
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=parentKeyDefaults.js.map
|
|
@@ -0,0 +1 @@
|
|
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E,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACzD,CAAC;IACD,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;AAAA,CACrC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { sanitizedName, toJsonKey } from "../../../../maintenance/metadata/normalize.mjs";
|
|
2
|
+
//#region src/inquiry/v2/capabilities/actions/parentKeyDefaults.ts
|
|
3
|
+
/**
|
|
4
|
+
* A new record's PARENT KEY, pre-filled and locked — what a maintenance
|
|
5
|
+
* drill-down's Add does (ChildTab), worked out from where the sheet was
|
|
6
|
+
* opened. `sources` are tried in order: the selected record (a button on a
|
|
7
|
+
* Resource that adds one of its Assignments), then its parent in the tree (a
|
|
8
|
+
* button on an Assignment that adds a sibling). The first source the new
|
|
9
|
+
* entity points at fills that foreign key. Where it points at the source
|
|
10
|
+
* twice (an Assignment's Resource and its Approver Override are both
|
|
11
|
+
* Resources), the key named after the parent's own key is the parent
|
|
12
|
+
* (`ResourceId`); the other is a reference to some record of that entity.
|
|
13
|
+
*
|
|
14
|
+
* Nothing is guessed: no source that is a parent, several keys none of which
|
|
15
|
+
* is named for it, or a parent with no key value pre-fills nothing, and the
|
|
16
|
+
* form asks.
|
|
17
|
+
*/
|
|
18
|
+
const parentKeyDefaults = (meta, sources) => {
|
|
19
|
+
for (const { entityName, record } of sources) {
|
|
20
|
+
if (!entityName || !record) continue;
|
|
21
|
+
const name = sanitizedName(entityName);
|
|
22
|
+
const parents = meta.parents.filter((parent) => !parent.isPlatform && parent.target.name === name);
|
|
23
|
+
const parent = parents.length === 1 ? parents[0] : parents.find((candidate) => candidate.fkField === candidate.target.pk);
|
|
24
|
+
if (!parent?.target.pk) continue;
|
|
25
|
+
const key = record[toJsonKey(parent.target.pk)];
|
|
26
|
+
if (key === void 0 || key === null || key === "") continue;
|
|
27
|
+
const field = toJsonKey(parent.fkField);
|
|
28
|
+
return {
|
|
29
|
+
defaults: { [field]: key },
|
|
30
|
+
locked: [field]
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
defaults: {},
|
|
35
|
+
locked: []
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { parentKeyDefaults };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=parentKeyDefaults.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parentKeyDefaults.mjs","names":["sanitizedName","toJsonKey","EntityMeta","ParentSource","entityName","record","Record","parentKeyDefaults","meta","sources","defaults","locked","name","parents","filter","parent","isPlatform","target","length","find","candidate","fkField","pk","key","undefined","field"],"sources":["../../../../../src/inquiry/v2/capabilities/actions/parentKeyDefaults.ts"],"sourcesContent":["import {\n sanitizedName,\n toJsonKey\n} from '../../../../maintenance/metadata/normalize';\nimport type { EntityMeta } from '../../../../maintenance/metadata/types';\n\n/** A record the create sheet was opened from, and the entity it is one of. */\nexport interface ParentSource {\n entityName?: string;\n record?: Record<string, unknown>;\n}\n\n/**\n * A new record's PARENT KEY, pre-filled and locked — what a maintenance\n * drill-down's Add does (ChildTab), worked out from where the sheet was\n * opened. `sources` are tried in order: the selected record (a button on a\n * Resource that adds one of its Assignments), then its parent in the tree (a\n * button on an Assignment that adds a sibling). The first source the new\n * entity points at fills that foreign key. Where it points at the source\n * twice (an Assignment's Resource and its Approver Override are both\n * Resources), the key named after the parent's own key is the parent\n * (`ResourceId`); the other is a reference to some record of that entity.\n *\n * Nothing is guessed: no source that is a parent, several keys none of which\n * is named for it, or a parent with no key value pre-fills nothing, and the\n * form asks.\n */\nexport const parentKeyDefaults = (\n meta: EntityMeta,\n sources: ParentSource[]\n): { defaults: Record<string, unknown>; locked: string[] } => {\n for (const { entityName, record } of sources) {\n if (!entityName || !record) continue;\n const name = sanitizedName(entityName);\n const parents = meta.parents.filter(\n (parent) => !parent.isPlatform && parent.target.name === name\n );\n const parent =\n parents.length === 1\n ? parents[0]\n : parents.find((candidate) => candidate.fkField === candidate.target.pk);\n if (!parent?.target.pk) continue;\n const key = record[toJsonKey(parent.target.pk)];\n if (key === undefined || key === null || key === '') continue;\n const field = toJsonKey(parent.fkField);\n return { defaults: { [field]: key }, locked: [field] };\n }\n return { defaults: {}, locked: [] };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AA2BA,MAAaO,qBACXC,MACAC,YAC4D;AAC5D,MAAK,MAAM,EAAEL,YAAYC,YAAYI,SAAS;AAC5C,MAAI,CAACL,cAAc,CAACC,OAAQ;EAC5B,MAAMO,OAAOZ,cAAcI,WAAW;EACtC,MAAMS,UAAUL,KAAKK,QAAQC,QAC1BC,WAAW,CAACA,OAAOC,cAAcD,OAAOE,OAAOL,SAASA,KAC1D;EACD,MAAMG,SACJF,QAAQK,WAAW,IACfL,QAAQ,KACRA,QAAQM,MAAMC,cAAcA,UAAUC,YAAYD,UAAUH,OAAOK,GAAG;AAC5E,MAAI,CAACP,QAAQE,OAAOK,GAAI;EACxB,MAAMC,MAAMlB,OAAOJ,UAAUc,OAAOE,OAAOK,GAAG;AAC9C,MAAIC,QAAQC,KAAAA,KAAaD,QAAQ,QAAQA,QAAQ,GAAI;EACrD,MAAME,QAAQxB,UAAUc,OAAOM,QAAQ;AACvC,SAAO;GAAEX,UAAU,GAAGe,QAAQF,KAAK;GAAEZ,QAAQ,CAACc,MAAK;GAAG;;AAExD,QAAO;EAAEf,UAAU,EAAE;EAAEC,QAAQ,EAAA;EAAI"}
|
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import type { ProviderContext } from 'notistack';
|
|
18
18
|
import type { QueryClient } from '@tanstack/react-query';
|
|
19
|
+
import { type ActionConfig } from '../../../../domain/actionPanel/types';
|
|
19
20
|
import { SplitScreenTypeEnums } from '../../../../enums/unitySystemEnums';
|
|
20
21
|
import { PromotedMethodRef } from '../../api/queries';
|
|
21
22
|
import type { RecordRef, InquiryEffects } from '../../kernel/RecordContext';
|
|
22
|
-
import type {
|
|
23
|
+
import type { ResolvedPanelAction } from './actionModel';
|
|
23
24
|
/**
|
|
24
25
|
* The create/update sheet. Carries everything the panel bridge needs to run
|
|
25
26
|
* the widget's `onCreate`/`onUpdate` without a second round of entity lookups
|
|
@@ -83,7 +84,7 @@ export interface RunActionContext {
|
|
|
83
84
|
* decision). One-way dispatch: everything the surface needs rides the
|
|
84
85
|
* dispatch params. Returns false when no provider is mounted.
|
|
85
86
|
*/
|
|
86
|
-
openSharedSplitScreen: (type: SplitScreenTypeEnums, action:
|
|
87
|
+
openSharedSplitScreen: (type: SplitScreenTypeEnums, action: ActionConfig) => boolean;
|
|
87
88
|
/**
|
|
88
89
|
* In-app route push for a Redirect action's path value (v1 `history.push`).
|
|
89
90
|
* Absolute URLs never reach it — those are a real navigation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runAction.d.ts","sourceRoot":"","sources":["../../../../../src/inquiry/v2/capabilities/actions/runAction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAEL,oBAAoB,
|
|
1
|
+
{"version":3,"file":"runAction.d.ts","sourceRoot":"","sources":["../../../../../src/inquiry/v2/capabilities/actions/runAction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAEL,KAAK,YAAY,EAClB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE1E,OAAO,EAML,iBA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5C,GACD;IACE,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,uEAAqE;IACrE,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC5C,CAAC;AAEN,gFAA8E;AAC9E,MAAM,MAAM,SAAS,GAAG,CACtB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,KACxD,MAAM,CAAC;AAEZ,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,cAAc,CAAC;IACxB,CAAC,EAAE,SAAS,CAAC;IACb,WAAW,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAC9C,6EAA2E;IAC3E,eAAe,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAC;IACpD;;;;;OAKG;IACH,qBAAqB,EAAE,CACrB,IAAI,EAAE,oBAAoB,EAC1B,MAAM,EAAE,YAAY,KACjB,OAAO,CAAC;IACb;;;OAGG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAuBD,eAAO,MAAM,SAAS,oFA2NrB,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ActionType } from '../../../../domain/actionPanel/types';
|
|
2
|
+
import { SplitScreenTypeEnums } from '../../../../enums/unitySystemEnums';
|
|
2
3
|
import { getPathParametersObj } from '../../../../utilities/maintenanceEngine/CrudBrowserUtilities';
|
|
3
4
|
import { executeApiMethodWithParameters, fetchApiMethod, fetchEntityMeta, inquiryKeys, startWorkflow } from '../../api/queries';
|
|
4
|
-
import {
|
|
5
|
+
import { getSanitizedName } from '../../../../domain/inquiryTree/legalChildren';
|
|
5
6
|
import { SNACKBAR_TOP_CENTER } from '../../ui/snackbar';
|
|
7
|
+
import { linkUrlOf } from './actionModel';
|
|
6
8
|
/** v1's `isValidURL` (actionUtils.js:15-19), verbatim semantics. */
|
|
7
9
|
const isAbsoluteUrl = (value) => /^(ftp|http|https):\/\/[^ "]+$/.test(value);
|
|
8
10
|
const resolveSheetPageId = (actionValue, explicitPageId, meta, mode) => {
|
|
@@ -22,26 +24,28 @@ export const runAction = async (resolved, ctx) => {
|
|
|
22
24
|
var _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
23
25
|
const { action, entityName, label } = resolved;
|
|
24
26
|
switch (action.actionTypeId) {
|
|
25
|
-
case
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
case ActionType.OpenExternalLink: {
|
|
28
|
+
const url = linkUrlOf(action, ctx.catalogId);
|
|
29
|
+
if (url)
|
|
30
|
+
window.open(url, '_blank', 'noopener');
|
|
28
31
|
return { handled: true };
|
|
29
32
|
}
|
|
30
|
-
case
|
|
33
|
+
case ActionType.Redirect: {
|
|
31
34
|
// v1 parity (actionUtils.js:79-86): an absolute URL is a real
|
|
32
35
|
// navigation; anything else is an in-app path, which must be a route
|
|
33
36
|
// push — assigning it reloads the whole SPA.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
const url = linkUrlOf(action, ctx.catalogId);
|
|
38
|
+
if (url) {
|
|
39
|
+
if (isAbsoluteUrl(url))
|
|
40
|
+
window.location.assign(url);
|
|
37
41
|
else
|
|
38
|
-
ctx.navigate(
|
|
42
|
+
ctx.navigate(url);
|
|
39
43
|
}
|
|
40
44
|
return { handled: true };
|
|
41
45
|
}
|
|
42
|
-
case
|
|
43
|
-
case
|
|
44
|
-
const mode = action.actionTypeId ===
|
|
46
|
+
case ActionType.Create:
|
|
47
|
+
case ActionType.Update: {
|
|
48
|
+
const mode = action.actionTypeId === ActionType.Create ? 'create' : 'update';
|
|
45
49
|
const meta = await fetchEntityMeta(ctx.queryClient, ctx.catalogId, entityName);
|
|
46
50
|
ctx.openSurface({
|
|
47
51
|
kind: 'sheet',
|
|
@@ -56,7 +60,7 @@ export const runAction = async (resolved, ctx) => {
|
|
|
56
60
|
});
|
|
57
61
|
return { handled: true };
|
|
58
62
|
}
|
|
59
|
-
case
|
|
63
|
+
case ActionType.ExecuteApi: {
|
|
60
64
|
if (!action.value) {
|
|
61
65
|
return {
|
|
62
66
|
handled: false,
|
|
@@ -105,7 +109,7 @@ export const runAction = async (resolved, ctx) => {
|
|
|
105
109
|
});
|
|
106
110
|
return { handled: true };
|
|
107
111
|
}
|
|
108
|
-
case
|
|
112
|
+
case ActionType.StartWorkflow: {
|
|
109
113
|
if (!action.value) {
|
|
110
114
|
return {
|
|
111
115
|
handled: false,
|
|
@@ -137,13 +141,13 @@ export const runAction = async (resolved, ctx) => {
|
|
|
137
141
|
}
|
|
138
142
|
return { handled: true };
|
|
139
143
|
}
|
|
140
|
-
case
|
|
144
|
+
case ActionType.Retrieve: {
|
|
141
145
|
const meta = await fetchEntityMeta(ctx.queryClient, ctx.catalogId, entityName);
|
|
142
146
|
ctx.openSurface({
|
|
143
147
|
kind: 'retrieve',
|
|
144
148
|
title: ctx.t('inquiry.actions.retrieveTitle', {
|
|
145
149
|
defaultValue: '{{entityName}} details',
|
|
146
|
-
entityName:
|
|
150
|
+
entityName: getSanitizedName(entityName)
|
|
147
151
|
}),
|
|
148
152
|
entityName,
|
|
149
153
|
getMethod: (_q = (_f = meta.promoted) === null || _f === void 0 ? void 0 : _f.unityBaseGetMethod) !== null && _q !== void 0 ? _q : null,
|
|
@@ -152,9 +156,9 @@ export const runAction = async (resolved, ctx) => {
|
|
|
152
156
|
});
|
|
153
157
|
return { handled: true };
|
|
154
158
|
}
|
|
155
|
-
case
|
|
156
|
-
case
|
|
157
|
-
const type = action.actionTypeId ===
|
|
159
|
+
case ActionType.OpenNotes:
|
|
160
|
+
case ActionType.OpenReminders: {
|
|
161
|
+
const type = action.actionTypeId === ActionType.OpenNotes
|
|
158
162
|
? SplitScreenTypeEnums.Notes
|
|
159
163
|
: SplitScreenTypeEnums.Reminders;
|
|
160
164
|
if (ctx.openSharedSplitScreen(type, action)) {
|
|
@@ -165,8 +169,8 @@ export const runAction = async (resolved, ctx) => {
|
|
|
165
169
|
reason: `${label} needs the app-level ActionProvider, which isn't mounted here`
|
|
166
170
|
};
|
|
167
171
|
}
|
|
168
|
-
case
|
|
169
|
-
case
|
|
172
|
+
case ActionType.OpenPageSplitScreen:
|
|
173
|
+
case ActionType.OpenShellSplitScreen: {
|
|
170
174
|
// The legacy resizable split screen collapses into v2's single overlay
|
|
171
175
|
// surface: the configured page in the sheet drawer.
|
|
172
176
|
ctx.openSurface({
|
|
@@ -177,7 +181,7 @@ export const runAction = async (resolved, ctx) => {
|
|
|
177
181
|
});
|
|
178
182
|
return { handled: true };
|
|
179
183
|
}
|
|
180
|
-
case
|
|
184
|
+
case ActionType.Delete: {
|
|
181
185
|
const meta = await fetchEntityMeta(ctx.queryClient, ctx.catalogId, entityName);
|
|
182
186
|
ctx.openSurface({
|
|
183
187
|
kind: 'confirmDelete',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runAction.js","sourceRoot":"","sources":["../../../../../src/inquiry/v2/capabilities/actions/runAction.ts"],"names":[],"mappings":"AAkBA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"runAction.js","sourceRoot":"","sources":["../../../../../src/inquiry/v2/capabilities/actions/runAction.ts"],"names":[],"mappings":"AAkBA,OAAO,EACL,UAAU,EAEX,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAC;AACpG,OAAO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