udp-react-enterprise-component-library 27.0.0-next.12 → 27.0.0-next.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.d.ts +4 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.js +2 -2
- package/dist/UI/fluent-web-components/UdpIconPicker.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.mjs +32 -28
- package/dist/UI/fluent-web-components/UdpIconPicker.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.d.ts +6 -0
- package/dist/UI/fluent-web-components/UdpLink.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.mjs.map +1 -1
- package/dist/UI/fluent-web-components/types.d.ts +2 -0
- package/dist/UI/fluent-web-components/types.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts +16 -3
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js +36 -13
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs +119 -62
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/index.mjs +3 -2
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts +9 -2
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js +18 -18
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs +79 -67
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts +8 -2
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js +32 -16
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs +129 -102
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts +3 -2
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js +11 -12
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs +6 -4
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts +2 -19
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js +4 -5
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs +5 -4
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs.map +1 -1
- package/dist/actionPanels/index.d.ts +0 -2
- package/dist/actionPanels/index.d.ts.map +1 -1
- package/dist/actionPanels/index.js +0 -2
- package/dist/actionPanels/index.js.map +1 -1
- package/dist/actionPanels/panelActionFields.d.ts +9 -26
- package/dist/actionPanels/panelActionFields.d.ts.map +1 -1
- package/dist/actionPanels/panelActionFields.js +32 -55
- package/dist/actionPanels/panelActionFields.js.map +1 -1
- package/dist/actionPanels/panelActionFields.mjs +159 -375
- package/dist/actionPanels/panelActionFields.mjs.map +1 -1
- package/dist/actionPanels/panelOperations.d.ts +15 -41
- package/dist/actionPanels/panelOperations.d.ts.map +1 -1
- package/dist/actionPanels/panelOperations.js +51 -89
- package/dist/actionPanels/panelOperations.js.map +1 -1
- package/dist/actionPanels/panelOperations.mjs +37 -92
- package/dist/actionPanels/panelOperations.mjs.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.d.ts +15 -2
- package/dist/domain/actionPanel/actionTypeMeta.d.ts.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.js +21 -2
- package/dist/domain/actionPanel/actionTypeMeta.js.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.mjs +18 -3
- package/dist/domain/actionPanel/actionTypeMeta.mjs.map +1 -1
- package/dist/domain/actionPanel/buttonOrder.d.ts +67 -0
- package/dist/domain/actionPanel/buttonOrder.d.ts.map +1 -0
- package/dist/domain/actionPanel/buttonOrder.js +105 -0
- package/dist/domain/actionPanel/buttonOrder.js.map +1 -0
- package/dist/domain/actionPanel/buttonOrder.mjs +90 -0
- package/dist/domain/actionPanel/buttonOrder.mjs.map +1 -0
- package/dist/domain/actionPanel/index.d.ts +1 -0
- package/dist/domain/actionPanel/index.d.ts.map +1 -1
- package/dist/domain/actionPanel/index.js +1 -0
- package/dist/domain/actionPanel/index.js.map +1 -1
- package/dist/domain/actionPanel/index.mjs +4 -3
- package/dist/domain/actionPanel/serialize.d.ts +6 -2
- package/dist/domain/actionPanel/serialize.d.ts.map +1 -1
- package/dist/domain/actionPanel/serialize.js +10 -3
- package/dist/domain/actionPanel/serialize.js.map +1 -1
- package/dist/domain/actionPanel/serialize.mjs +7 -3
- package/dist/domain/actionPanel/serialize.mjs.map +1 -1
- package/dist/domain/actionPanel/types.d.ts +24 -8
- package/dist/domain/actionPanel/types.d.ts.map +1 -1
- package/dist/domain/actionPanel/types.js.map +1 -1
- package/dist/domain/actionPanel/types.mjs.map +1 -1
- package/dist/domain/inquiryTree/describe.d.ts +15 -3
- package/dist/domain/inquiryTree/describe.d.ts.map +1 -1
- package/dist/domain/inquiryTree/describe.js +32 -28
- package/dist/domain/inquiryTree/describe.js.map +1 -1
- package/dist/domain/inquiryTree/describe.mjs +34 -16
- package/dist/domain/inquiryTree/describe.mjs.map +1 -1
- package/dist/domain/inquiryTree/displayTree.d.ts +75 -97
- package/dist/domain/inquiryTree/displayTree.d.ts.map +1 -1
- package/dist/domain/inquiryTree/displayTree.js +418 -551
- package/dist/domain/inquiryTree/displayTree.js.map +1 -1
- package/dist/domain/inquiryTree/displayTree.mjs +345 -414
- package/dist/domain/inquiryTree/displayTree.mjs.map +1 -1
- package/dist/domain/inquiryTree/groups.d.ts +2 -0
- package/dist/domain/inquiryTree/groups.d.ts.map +1 -1
- package/dist/domain/inquiryTree/groups.js.map +1 -1
- package/dist/domain/inquiryTree/groups.mjs.map +1 -1
- package/dist/domain/inquiryTree/index.d.ts +1 -1
- package/dist/domain/inquiryTree/index.d.ts.map +1 -1
- package/dist/domain/inquiryTree/index.js +1 -1
- package/dist/domain/inquiryTree/index.js.map +1 -1
- package/dist/domain/inquiryTree/index.mjs +12 -12
- package/dist/domain/inquiryTree/lazyLoad.d.ts +20 -129
- package/dist/domain/inquiryTree/lazyLoad.d.ts.map +1 -1
- package/dist/domain/inquiryTree/lazyLoad.js +48 -233
- package/dist/domain/inquiryTree/lazyLoad.js.map +1 -1
- package/dist/domain/inquiryTree/lazyLoad.mjs +32 -187
- package/dist/domain/inquiryTree/lazyLoad.mjs.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.d.ts +13 -14
- package/dist/domain/inquiryTree/legalChildren.d.ts.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.js +21 -42
- package/dist/domain/inquiryTree/legalChildren.js.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.mjs +19 -37
- package/dist/domain/inquiryTree/legalChildren.mjs.map +1 -1
- package/dist/domain/inquiryTree/names.d.ts +38 -0
- package/dist/domain/inquiryTree/names.d.ts.map +1 -0
- package/dist/domain/inquiryTree/names.js +64 -0
- package/dist/domain/inquiryTree/names.js.map +1 -0
- package/dist/domain/inquiryTree/names.mjs +56 -0
- package/dist/domain/inquiryTree/names.mjs.map +1 -0
- package/dist/domain/inquiryTree/operations.d.ts +6 -2
- package/dist/domain/inquiryTree/operations.d.ts.map +1 -1
- package/dist/domain/inquiryTree/operations.js +17 -16
- package/dist/domain/inquiryTree/operations.js.map +1 -1
- package/dist/domain/inquiryTree/operations.mjs +14 -11
- package/dist/domain/inquiryTree/operations.mjs.map +1 -1
- package/dist/domain/inquiryTree/rules.d.ts +3 -4
- package/dist/domain/inquiryTree/rules.d.ts.map +1 -1
- package/dist/domain/inquiryTree/rules.js +3 -13
- package/dist/domain/inquiryTree/rules.js.map +1 -1
- package/dist/domain/inquiryTree/rules.mjs +3 -9
- package/dist/domain/inquiryTree/rules.mjs.map +1 -1
- package/dist/domain/inquiryTree/runtime.d.ts +23 -16
- package/dist/domain/inquiryTree/runtime.d.ts.map +1 -1
- package/dist/domain/inquiryTree/runtime.js +46 -54
- package/dist/domain/inquiryTree/runtime.js.map +1 -1
- package/dist/domain/inquiryTree/runtime.mjs +31 -26
- package/dist/domain/inquiryTree/runtime.mjs.map +1 -1
- package/dist/domain/inquiryTree/serialize.d.ts +20 -29
- package/dist/domain/inquiryTree/serialize.d.ts.map +1 -1
- package/dist/domain/inquiryTree/serialize.js +93 -205
- package/dist/domain/inquiryTree/serialize.js.map +1 -1
- package/dist/domain/inquiryTree/serialize.mjs +89 -180
- package/dist/domain/inquiryTree/serialize.mjs.map +1 -1
- package/dist/domain/inquiryTree/types.d.ts +146 -65
- package/dist/domain/inquiryTree/types.d.ts.map +1 -1
- package/dist/domain/inquiryTree/types.js +5 -0
- package/dist/domain/inquiryTree/types.js.map +1 -1
- package/dist/domain/inquiryTree/types.mjs +3 -1
- package/dist/domain/inquiryTree/types.mjs.map +1 -1
- package/dist/domain/inquiryTree/validate.d.ts +9 -2
- package/dist/domain/inquiryTree/validate.d.ts.map +1 -1
- package/dist/domain/inquiryTree/validate.js +30 -58
- package/dist/domain/inquiryTree/validate.js.map +1 -1
- package/dist/domain/inquiryTree/validate.mjs +29 -44
- package/dist/domain/inquiryTree/validate.mjs.map +1 -1
- package/dist/domain/inquiryTree/view.d.ts +8 -12
- package/dist/domain/inquiryTree/view.d.ts.map +1 -1
- package/dist/domain/inquiryTree/view.js +40 -66
- package/dist/domain/inquiryTree/view.js.map +1 -1
- package/dist/domain/inquiryTree/view.mjs +30 -60
- package/dist/domain/inquiryTree/view.mjs.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.d.ts +32 -48
- package/dist/domain/inquiryTree/waveLoad.d.ts.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.js +75 -90
- package/dist/domain/inquiryTree/waveLoad.js.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.mjs +54 -60
- package/dist/domain/inquiryTree/waveLoad.mjs.map +1 -1
- package/dist/domain/inquiryTree/wireString.d.ts +5 -0
- package/dist/domain/inquiryTree/wireString.d.ts.map +1 -1
- package/dist/domain/inquiryTree/wireString.js +11 -0
- package/dist/domain/inquiryTree/wireString.js.map +1 -1
- package/dist/domain/inquiryTree/wireString.mjs +10 -1
- package/dist/domain/inquiryTree/wireString.mjs.map +1 -1
- package/dist/domain/nodeView/index.mjs +2 -2
- package/dist/domain/nodeView/model.d.ts +35 -30
- package/dist/domain/nodeView/model.d.ts.map +1 -1
- package/dist/domain/nodeView/model.js +108 -69
- package/dist/domain/nodeView/model.js.map +1 -1
- package/dist/domain/nodeView/model.mjs +86 -36
- package/dist/domain/nodeView/model.mjs.map +1 -1
- package/dist/icons/legacyIconNames.d.ts.map +1 -1
- package/dist/icons/legacyIconNames.js +46 -1
- package/dist/icons/legacyIconNames.js.map +1 -1
- package/dist/icons/legacyIconNames.mjs +46 -1
- package/dist/icons/legacyIconNames.mjs.map +1 -1
- package/dist/index.mjs +10 -12
- package/dist/inquiry/Inquiry.d.ts +3 -0
- package/dist/inquiry/Inquiry.d.ts.map +1 -1
- package/dist/inquiry/Inquiry.js +3 -0
- package/dist/inquiry/Inquiry.js.map +1 -1
- package/dist/inquiry/Inquiry.mjs +3 -0
- package/dist/inquiry/Inquiry.mjs.map +1 -1
- package/dist/inquiry/v2/InquiryV2.d.ts +8 -6
- package/dist/inquiry/v2/InquiryV2.d.ts.map +1 -1
- package/dist/inquiry/v2/InquiryV2.js +45 -24
- package/dist/inquiry/v2/InquiryV2.js.map +1 -1
- package/dist/inquiry/v2/InquiryV2.mjs +108 -61
- package/dist/inquiry/v2/InquiryV2.mjs.map +1 -1
- package/dist/inquiry/v2/InquiryV2.module.css +60 -15
- package/dist/inquiry/v2/InquiryWorkspace.d.ts +9 -9
- package/dist/inquiry/v2/InquiryWorkspace.d.ts.map +1 -1
- package/dist/inquiry/v2/InquiryWorkspace.js +531 -408
- package/dist/inquiry/v2/InquiryWorkspace.js.map +1 -1
- package/dist/inquiry/v2/InquiryWorkspace.mjs +524 -408
- package/dist/inquiry/v2/InquiryWorkspace.mjs.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts +3 -2
- package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.js +20 -37
- package/dist/inquiry/v2/ai/InquiryV2Copilot.js.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs +19 -31
- package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.d.ts +6 -14
- package/dist/inquiry/v2/ai/copilotModel.d.ts.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.js +35 -87
- package/dist/inquiry/v2/ai/copilotModel.js.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.mjs +23 -47
- package/dist/inquiry/v2/ai/copilotModel.mjs.map +1 -1
- package/dist/inquiry/v2/api/queries.d.ts +46 -73
- package/dist/inquiry/v2/api/queries.d.ts.map +1 -1
- package/dist/inquiry/v2/api/queries.js +151 -210
- package/dist/inquiry/v2/api/queries.js.map +1 -1
- package/dist/inquiry/v2/api/queries.mjs +227 -183
- package/dist/inquiry/v2/api/queries.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js +103 -32
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs +92 -32
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.module.css +8 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts +20 -16
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js +111 -68
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs +108 -142
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/RetrieveSurface.mjs +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts +66 -50
- package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.js +141 -66
- package/dist/inquiry/v2/capabilities/actions/actionModel.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.mjs +115 -53
- package/dist/inquiry/v2/capabilities/actions/actionModel.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts +26 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js +36 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs +41 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/runAction.d.ts +3 -2
- package/dist/inquiry/v2/capabilities/actions/runAction.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/runAction.js +27 -23
- package/dist/inquiry/v2/capabilities/actions/runAction.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/runAction.mjs +26 -20
- package/dist/inquiry/v2/capabilities/actions/runAction.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts +20 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js +112 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs +118 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts +25 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js +7 -4
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs +9 -4
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts +5 -3
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js +11 -8
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs +13 -7
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.module.css +4 -4
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.js +20 -17
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs +101 -111
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.module.css +9 -6
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts +2 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js +9 -2
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs +18 -15
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/index.d.ts +0 -1
- package/dist/inquiry/v2/index.d.ts.map +1 -1
- package/dist/inquiry/v2/index.js.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts +3 -3
- package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.js +11 -5
- package/dist/inquiry/v2/kernel/ActionRunnerContext.js.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs +15 -12
- package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts +3 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts.map +1 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.js +14 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.js.map +1 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs +20 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs.map +1 -0
- package/dist/inquiry/v2/kernel/RecordContext.d.ts +2 -0
- package/dist/inquiry/v2/kernel/RecordContext.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/RecordContext.js.map +1 -1
- package/dist/inquiry/v2/kernel/RecordContext.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.js +18 -13
- package/dist/inquiry/v2/kernel/UdpNodeView.js.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.mjs +177 -140
- package/dist/inquiry/v2/kernel/UdpNodeView.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.module.css +56 -5
- package/dist/inquiry/v2/kernel/capabilities.d.ts +0 -2
- package/dist/inquiry/v2/kernel/capabilities.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/capabilities.js.map +1 -1
- package/dist/inquiry/v2/kernel/capabilities.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts +26 -37
- package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.js +48 -57
- package/dist/inquiry/v2/landing/InquiryExplorePage.js.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.mjs +102 -106
- package/dist/inquiry/v2/landing/InquiryExplorePage.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.module.css +58 -6
- package/dist/inquiry/v2/landing/InquiryLanding.d.ts +3 -3
- package/dist/inquiry/v2/landing/InquiryLanding.d.ts.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.js +8 -3
- package/dist/inquiry/v2/landing/InquiryLanding.js.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.mjs +51 -35
- package/dist/inquiry/v2/landing/InquiryLanding.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.module.css +8 -0
- package/dist/inquiry/v2/page/UdpPageRenderer.d.ts +5 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.d.ts.map +1 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.js +13 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.js.map +1 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.mjs +36 -7
- package/dist/inquiry/v2/page/UdpPageRenderer.mjs.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.d.ts +1 -7
- package/dist/inquiry/v2/search/InquirySearchPanel.d.ts.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.js +6 -13
- package/dist/inquiry/v2/search/InquirySearchPanel.js.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.mjs +4 -8
- package/dist/inquiry/v2/search/InquirySearchPanel.mjs.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.d.ts +30 -1
- package/dist/inquiry/v2/search/RecordFinder.d.ts.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.js +43 -20
- package/dist/inquiry/v2/search/RecordFinder.js.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.mjs +68 -42
- package/dist/inquiry/v2/search/RecordFinder.mjs.map +1 -1
- package/dist/inquiry/v2/search/index.d.ts +3 -3
- package/dist/inquiry/v2/search/index.d.ts.map +1 -1
- package/dist/inquiry/v2/search/index.js +1 -1
- package/dist/inquiry/v2/search/index.js.map +1 -1
- package/dist/inquiry/v2/search/searchModel.d.ts +130 -23
- package/dist/inquiry/v2/search/searchModel.d.ts.map +1 -1
- package/dist/inquiry/v2/search/searchModel.js +237 -36
- package/dist/inquiry/v2/search/searchModel.js.map +1 -1
- package/dist/inquiry/v2/search/searchModel.mjs +207 -34
- package/dist/inquiry/v2/search/searchModel.mjs.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.d.ts.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.js +46 -19
- package/dist/inquiry/v2/search/useInquirySearch.js.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.mjs +83 -84
- package/dist/inquiry/v2/search/useInquirySearch.mjs.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts +4 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js +174 -166
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs +343 -325
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts +3 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.js +8 -7
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.js.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs +68 -72
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts +3 -3
- package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.js +12 -7
- package/dist/inquiry/v2/tree/LoadRecordDialog.js.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.mjs +48 -33
- package/dist/inquiry/v2/tree/LoadRecordDialog.mjs.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.js +17 -6
- package/dist/inquiry/v2/tree/NodeList.js.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.mjs +49 -36
- package/dist/inquiry/v2/tree/NodeList.mjs.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.d.ts +15 -0
- package/dist/inquiry/v2/tree/arrivalModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.js +14 -1
- package/dist/inquiry/v2/tree/arrivalModel.js.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.mjs +12 -1
- package/dist/inquiry/v2/tree/arrivalModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/branchRefreshModel.d.ts +32 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.d.ts.map +1 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.js +62 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.js.map +1 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.mjs +60 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.mjs.map +1 -0
- package/dist/inquiry/v2/tree/droppedPageModel.d.ts +23 -1
- package/dist/inquiry/v2/tree/droppedPageModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/droppedPageModel.js +53 -26
- package/dist/inquiry/v2/tree/droppedPageModel.js.map +1 -1
- package/dist/inquiry/v2/tree/droppedPageModel.mjs +48 -20
- package/dist/inquiry/v2/tree/droppedPageModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts +7 -12
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js +44 -15
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs +34 -15
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js +7 -18
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs +6 -14
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts +20 -16
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js +77 -55
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs +85 -106
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.d.ts +18 -1
- package/dist/inquiry/v2/tree/lineageModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.js +71 -2
- package/dist/inquiry/v2/tree/lineageModel.js.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.mjs +53 -3
- package/dist/inquiry/v2/tree/lineageModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.d.ts +10 -27
- package/dist/inquiry/v2/tree/menuRebuildModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.js +8 -58
- package/dist/inquiry/v2/tree/menuRebuildModel.js.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.mjs +8 -51
- package/dist/inquiry/v2/tree/menuRebuildModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts +26 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts.map +1 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.js +56 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.js.map +1 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.mjs +43 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.mjs.map +1 -0
- package/dist/inquiry/v2/tree/rootRemovalModel.d.ts +7 -0
- package/dist/inquiry/v2/tree/rootRemovalModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/rootRemovalModel.js +31 -5
- package/dist/inquiry/v2/tree/rootRemovalModel.js.map +1 -1
- package/dist/inquiry/v2/tree/rootRemovalModel.mjs +21 -4
- package/dist/inquiry/v2/tree/rootRemovalModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.d.ts +0 -2
- package/dist/inquiry/v2/tree/treeFilterModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.js +0 -7
- package/dist/inquiry/v2/tree/treeFilterModel.js.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.d.ts +16 -7
- package/dist/inquiry/v2/tree/useInquiryMenu.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.js +401 -163
- package/dist/inquiry/v2/tree/useInquiryMenu.js.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.mjs +511 -310
- package/dist/inquiry/v2/tree/useInquiryMenu.mjs.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.d.ts +10 -11
- package/dist/inquiry/v2/tree/waveLoader.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.js +78 -72
- package/dist/inquiry/v2/tree/waveLoader.js.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.mjs +79 -68
- package/dist/inquiry/v2/tree/waveLoader.mjs.map +1 -1
- package/dist/inquiry/v2/widgets/listRow.module.css +27 -0
- package/dist/inquiry/v2/widgets/widgetRowModel.d.ts +6 -2
- package/dist/inquiry/v2/widgets/widgetRowModel.d.ts.map +1 -1
- package/dist/inquiry/v2/widgets/widgetRowModel.js +49 -14
- package/dist/inquiry/v2/widgets/widgetRowModel.js.map +1 -1
- package/dist/inquiry/v2/widgets/widgetRowModel.mjs +36 -12
- package/dist/inquiry/v2/widgets/widgetRowModel.mjs.map +1 -1
- package/dist/maintenance/UdpTaggedRecordsPage.mjs +1 -1
- package/dist/maintenance/api/lookupApi.mjs +1 -1
- package/dist/maintenance/api/tagsApi.mjs +1 -1
- package/dist/maintenance/config/nodeDefaults.d.ts.map +1 -1
- package/dist/maintenance/config/nodeDefaults.js +16 -5
- package/dist/maintenance/config/nodeDefaults.js.map +1 -1
- package/dist/maintenance/config/nodeDefaults.mjs +14 -5
- package/dist/maintenance/config/nodeDefaults.mjs.map +1 -1
- package/dist/maintenance/config/useEntityConfig.mjs +1 -1
- package/dist/maintenance/config/useLinkedLabels.mjs +1 -1
- package/dist/maintenance/grid/MaintenanceGrid.mjs +1 -1
- package/dist/maintenance/metadata/useEntityMetadata.mjs +1 -1
- package/dist/maintenance/record/ChildTab.mjs +1 -1
- package/dist/maintenance/record/DeleteRecordDialog.mjs +1 -1
- package/dist/maintenance/record/LinkRecordsSheet.mjs +1 -1
- package/dist/maintenance/record/RecordFacts.mjs +1 -1
- package/dist/maintenance/record/RecordSheet.mjs +2 -2
- package/dist/maintenance/record/displayValue.mjs +1 -1
- package/dist/maintenance/record/stampDisplayText.mjs +1 -1
- package/dist/maintenance/settings/useEntityCatalog.mjs +1 -1
- package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +4 -5
- package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts.map +1 -1
- package/dist/stores/inquiryStore.d.ts +2 -1
- package/dist/stores/inquiryStore.d.ts.map +1 -1
- package/dist/stores/inquiryStore.js +4 -3
- package/dist/stores/inquiryStore.js.map +1 -1
- package/dist/stores/inquiryStore.mjs +18 -11
- package/dist/stores/inquiryStore.mjs.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.d.ts.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs +2 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/components/EntitiyTimeLine.mjs +1 -1
- package/dist/udp/utilities/useDateStringColumnDef.d.ts +1 -1
- package/dist/utilities/i18n/locales/es-US.json +23 -5
- package/dist/utilities/i18n/locales/es-US.mjs +24 -4
- package/dist/utilities/i18n/locales/fr-CA.json +23 -5
- package/dist/utilities/i18n/locales/fr-CA.mjs +24 -4
- package/package.json +30 -18
- package/dist/actionPanels/PanelActionForm.d.ts +0 -56
- package/dist/actionPanels/PanelActionForm.d.ts.map +0 -1
- package/dist/actionPanels/PanelActionForm.js +0 -30
- package/dist/actionPanels/PanelActionForm.js.map +0 -1
- package/dist/actionPanels/PanelActionForm.mjs +0 -168
- package/dist/actionPanels/PanelActionForm.mjs.map +0 -1
- package/dist/actionPanels/PanelEditor.d.ts +0 -44
- package/dist/actionPanels/PanelEditor.d.ts.map +0 -1
- package/dist/actionPanels/PanelEditor.js +0 -78
- package/dist/actionPanels/PanelEditor.js.map +0 -1
- package/dist/actionPanels/PanelEditor.mjs +0 -345
- package/dist/actionPanels/PanelEditor.mjs.map +0 -1
- package/dist/actionPanels/panelActionFields.module.css +0 -18
- package/dist/domain/inquiryTree/ruleBindings.d.ts +0 -10
- package/dist/domain/inquiryTree/ruleBindings.d.ts.map +0 -1
- package/dist/domain/inquiryTree/ruleBindings.js +0 -20
- package/dist/domain/inquiryTree/ruleBindings.js.map +0 -1
- package/dist/domain/inquiryTree/ruleBindings.mjs +0 -21
- package/dist/domain/inquiryTree/ruleBindings.mjs.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.d.ts +0 -17
- package/dist/inquiry/v2/kernel/readOnlyModel.d.ts.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.js +0 -19
- package/dist/inquiry/v2/kernel/readOnlyModel.js.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.mjs +0 -21
- package/dist/inquiry/v2/kernel/readOnlyModel.mjs.map +0 -1
|
@@ -6,10 +6,14 @@ import { executeQueryAdHoc as executeQueryAdHoc$1, executeQueryInstance as execu
|
|
|
6
6
|
import { toLowerFirstChar } from "../../../utilities/input/StringUtilities.mjs";
|
|
7
7
|
import { getSearchObject } from "../../../utilities/search/SearchUtilities.mjs";
|
|
8
8
|
import { apiGet } from "../../../utilities/apiClient.mjs";
|
|
9
|
+
import { toJsonString } from "../../../domain/inquiryTree/wireString.mjs";
|
|
10
|
+
import { isEntityNode } from "../../../domain/inquiryTree/types.mjs";
|
|
9
11
|
import { normalizePageDocument } from "../../../domain/page/pageDocument.mjs";
|
|
12
|
+
import { fromWire } from "../../../domain/inquiryTree/serialize.mjs";
|
|
10
13
|
import { composeInstanceSearchFilters, instanceFiltersHash } from "./instanceBodyModel.mjs";
|
|
14
|
+
import { resolveIdentifierSets, rowForIdentifierSet } from "../search/searchModel.mjs";
|
|
11
15
|
import { useEffect } from "react";
|
|
12
|
-
import { keepPreviousData, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
16
|
+
import { keepPreviousData, useQueries, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
13
17
|
//#region src/inquiry/v2/api/queries.ts
|
|
14
18
|
/**
|
|
15
19
|
* Inquiry v2 canonical query keys + typed fetch hooks
|
|
@@ -59,11 +63,7 @@ const fetchEntityMeta = async (queryClient, catalogId, entityName) => queryClien
|
|
|
59
63
|
* is truly aborted.
|
|
60
64
|
*/
|
|
61
65
|
const executeSearchQuery = async (apiMethodId, searchBody, signal) => {
|
|
62
|
-
|
|
63
|
-
return {
|
|
64
|
-
rows: response.data?.pageList ?? [],
|
|
65
|
-
total: response.data?.total ?? 0
|
|
66
|
-
};
|
|
66
|
+
return toRecordRows(await executeQueryAdHoc$1({ data: searchBody }, apiMethodId, "", { signal }));
|
|
67
67
|
};
|
|
68
68
|
/** The routed executeQueryWithParameters (typed boundary). */
|
|
69
69
|
const executeApiMethodWithParameters = async (apiMethodId, body) => executeQueryWithParameters$1({ data: body }, apiMethodId);
|
|
@@ -146,11 +146,6 @@ const inquiryKeys = {
|
|
|
146
146
|
bodyHash
|
|
147
147
|
],
|
|
148
148
|
entityMeta: (entityName) => ["entityMeta", entityName],
|
|
149
|
-
entityForm: (entityName) => [
|
|
150
|
-
"inquiry",
|
|
151
|
-
"entityForm",
|
|
152
|
-
entityName
|
|
153
|
-
],
|
|
154
149
|
lookupMethod: (catalogId) => ["lookupMethod", catalogId],
|
|
155
150
|
lookup: (lookupId) => ["lookup", lookupId],
|
|
156
151
|
apiMethod: (apiMethodId) => ["apiMethod", apiMethodId],
|
|
@@ -191,14 +186,15 @@ const inquiryKeys = {
|
|
|
191
186
|
* carry. The tree CONFIG (`['inquiry','tree', …]`) is deliberately NOT here —
|
|
192
187
|
* it changes on a Tree Builder save, never on a record mutation, and
|
|
193
188
|
* invalidating it would refetch the whole tree document on every create.
|
|
189
|
+
* Resolves once the active queries have refetched.
|
|
194
190
|
*/
|
|
195
|
-
const invalidateInquiryRowData = (queryClient) => {
|
|
196
|
-
|
|
191
|
+
const invalidateInquiryRowData = async (queryClient) => {
|
|
192
|
+
await Promise.all([
|
|
197
193
|
["records"],
|
|
198
194
|
["inquiry", "childBatch"],
|
|
199
195
|
["inquiry", "bulkChildCount"],
|
|
200
196
|
["inquiry", "aggregateBadge"]
|
|
201
|
-
]) queryClient.invalidateQueries({ queryKey });
|
|
197
|
+
].map((queryKey) => queryClient.invalidateQueries({ queryKey })));
|
|
202
198
|
};
|
|
203
199
|
/**
|
|
204
200
|
* Fetch a node-level alert config (`alert/{alertId}`, tenant v1 — the legacy
|
|
@@ -279,83 +275,147 @@ const fetchAggregateThresholdValue = async (queryClient, aggregateThresholdId, p
|
|
|
279
275
|
* empty-params call the alert path made through AggregateChip. Aggregate
|
|
280
276
|
* values are live, so cached briefly.
|
|
281
277
|
*/
|
|
282
|
-
const useAggregateThresholdValue = (aggregateThresholdId) => {
|
|
283
|
-
const $ = c(
|
|
284
|
-
const queryClient = useQueryClient();
|
|
285
|
-
let t0;
|
|
286
|
-
if ($[0] !== aggregateThresholdId) {
|
|
287
|
-
t0 = inquiryKeys.aggregateThresholdValue(aggregateThresholdId ?? "");
|
|
288
|
-
$[0] = aggregateThresholdId;
|
|
289
|
-
$[1] = t0;
|
|
290
|
-
} else t0 = $[1];
|
|
278
|
+
const useAggregateThresholdValue = (aggregateThresholdId, t0) => {
|
|
279
|
+
const $ = c(13);
|
|
291
280
|
let t1;
|
|
292
|
-
if ($[
|
|
293
|
-
t1 =
|
|
281
|
+
if ($[0] !== t0) {
|
|
282
|
+
t1 = t0 === void 0 ? {} : t0;
|
|
283
|
+
$[0] = t0;
|
|
284
|
+
$[1] = t1;
|
|
285
|
+
} else t1 = $[1];
|
|
286
|
+
const params = t1;
|
|
287
|
+
const queryClient = useQueryClient();
|
|
288
|
+
let t2;
|
|
289
|
+
if ($[2] !== aggregateThresholdId || $[3] !== params) {
|
|
290
|
+
t2 = [...inquiryKeys.aggregateThresholdValue(aggregateThresholdId ?? ""), params];
|
|
294
291
|
$[2] = aggregateThresholdId;
|
|
295
|
-
$[3] =
|
|
296
|
-
$[4] =
|
|
297
|
-
} else
|
|
298
|
-
const t2 = !!aggregateThresholdId;
|
|
292
|
+
$[3] = params;
|
|
293
|
+
$[4] = t2;
|
|
294
|
+
} else t2 = $[4];
|
|
299
295
|
let t3;
|
|
300
|
-
if ($[5] !==
|
|
301
|
-
t3 =
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
staleTime: 3e4
|
|
306
|
-
};
|
|
307
|
-
$[5] = t0;
|
|
308
|
-
$[6] = t1;
|
|
309
|
-
$[7] = t2;
|
|
296
|
+
if ($[5] !== aggregateThresholdId || $[6] !== params || $[7] !== queryClient) {
|
|
297
|
+
t3 = () => fetchAggregateThresholdValue(queryClient, aggregateThresholdId ?? "", params);
|
|
298
|
+
$[5] = aggregateThresholdId;
|
|
299
|
+
$[6] = params;
|
|
300
|
+
$[7] = queryClient;
|
|
310
301
|
$[8] = t3;
|
|
311
302
|
} else t3 = $[8];
|
|
312
|
-
|
|
303
|
+
const t4 = !!aggregateThresholdId;
|
|
304
|
+
let t5;
|
|
305
|
+
if ($[9] !== t2 || $[10] !== t3 || $[11] !== t4) {
|
|
306
|
+
t5 = {
|
|
307
|
+
queryKey: t2,
|
|
308
|
+
queryFn: t3,
|
|
309
|
+
enabled: t4,
|
|
310
|
+
staleTime: 3e4
|
|
311
|
+
};
|
|
312
|
+
$[9] = t2;
|
|
313
|
+
$[10] = t3;
|
|
314
|
+
$[11] = t4;
|
|
315
|
+
$[12] = t5;
|
|
316
|
+
} else t5 = $[12];
|
|
317
|
+
return useQuery(t5);
|
|
313
318
|
};
|
|
314
|
-
/**
|
|
319
|
+
/**
|
|
320
|
+
* One tree, typed — `inquiryTree/{id}`, the read the Tree Builder edits. A
|
|
321
|
+
* root tree and the trees its levels link to are the same read under the same
|
|
322
|
+
* key, so each is fetched once whichever asks first.
|
|
323
|
+
*/
|
|
324
|
+
const inquiryTreeQuery = (treeId) => ({
|
|
325
|
+
queryKey: inquiryKeys.tree(treeId),
|
|
326
|
+
queryFn: async ({ signal }) => fromWire(await apiGet(ConfigService.integrationV1ApiUrl, `inquirytree/${treeId}`, { signal })),
|
|
327
|
+
staleTime: CONFIG_STALE_TIME
|
|
328
|
+
});
|
|
329
|
+
/** Fetch an inquiry tree (config — cached hard). */
|
|
315
330
|
const useInquiryTree = (treeId) => {
|
|
316
|
-
const $ = c(
|
|
331
|
+
const $ = c(5);
|
|
332
|
+
const t0 = treeId ?? "";
|
|
333
|
+
let t1;
|
|
334
|
+
if ($[0] !== t0) {
|
|
335
|
+
t1 = inquiryTreeQuery(t0);
|
|
336
|
+
$[0] = t0;
|
|
337
|
+
$[1] = t1;
|
|
338
|
+
} else t1 = $[1];
|
|
339
|
+
const t2 = !!treeId;
|
|
340
|
+
let t3;
|
|
341
|
+
if ($[2] !== t1 || $[3] !== t2) {
|
|
342
|
+
t3 = {
|
|
343
|
+
...t1,
|
|
344
|
+
enabled: t2
|
|
345
|
+
};
|
|
346
|
+
$[2] = t1;
|
|
347
|
+
$[3] = t2;
|
|
348
|
+
$[4] = t3;
|
|
349
|
+
} else t3 = $[4];
|
|
350
|
+
return useQuery(t3);
|
|
351
|
+
};
|
|
352
|
+
/**
|
|
353
|
+
* A tree, imperatively — the load-to-tree door needs a tree the viewer is NOT
|
|
354
|
+
* mounted on. Same query as useInquiryTree, so a tree the user later opens is a
|
|
355
|
+
* cache hit.
|
|
356
|
+
*/
|
|
357
|
+
const fetchInquiryTree = (queryClient, treeId) => queryClient.fetchQuery(inquiryTreeQuery(treeId));
|
|
358
|
+
/**
|
|
359
|
+
* The trees this tree's levels link to (`associatedTreeId`), by that id. It
|
|
360
|
+
* follows the ids on the tree it is handed, so a builder's unsaved link is read
|
|
361
|
+
* too. Fetched with the tree because the searchable set is derived from them
|
|
362
|
+
* up front. `trees` holds every one that has answered (a tree that failed is
|
|
363
|
+
* left out); `settled` once none is still pending — a link added later loads
|
|
364
|
+
* beside the trees already in hand rather than hiding them.
|
|
365
|
+
*/
|
|
366
|
+
const useLinkedTrees = (tree) => {
|
|
367
|
+
const $ = c(13);
|
|
317
368
|
let t0;
|
|
318
|
-
if ($[0] !==
|
|
319
|
-
t0 =
|
|
320
|
-
$[0] =
|
|
369
|
+
if ($[0] !== tree?.nodes) {
|
|
370
|
+
t0 = new Set((tree?.nodes ?? []).flatMap(_temp));
|
|
371
|
+
$[0] = tree?.nodes;
|
|
321
372
|
$[1] = t0;
|
|
322
373
|
} else t0 = $[1];
|
|
323
374
|
let t1;
|
|
324
|
-
if ($[2] !==
|
|
325
|
-
t1 =
|
|
326
|
-
|
|
327
|
-
return apiGet(ConfigService.integrationV1ApiUrl, `inquirytree/${treeId}/detailed`, { signal });
|
|
328
|
-
};
|
|
329
|
-
$[2] = treeId;
|
|
375
|
+
if ($[2] !== t0) {
|
|
376
|
+
t1 = [...t0];
|
|
377
|
+
$[2] = t0;
|
|
330
378
|
$[3] = t1;
|
|
331
379
|
} else t1 = $[3];
|
|
332
|
-
const
|
|
380
|
+
const idList = t1.join(",");
|
|
381
|
+
let t2;
|
|
382
|
+
if ($[4] !== idList) {
|
|
383
|
+
t2 = idList ? idList.split(",") : [];
|
|
384
|
+
$[4] = idList;
|
|
385
|
+
$[5] = t2;
|
|
386
|
+
} else t2 = $[5];
|
|
387
|
+
const ids = t2;
|
|
333
388
|
let t3;
|
|
334
|
-
if ($[
|
|
335
|
-
t3 =
|
|
336
|
-
|
|
337
|
-
queryFn: t1,
|
|
338
|
-
enabled: t2,
|
|
339
|
-
staleTime: CONFIG_STALE_TIME
|
|
340
|
-
};
|
|
341
|
-
$[4] = t0;
|
|
342
|
-
$[5] = t1;
|
|
343
|
-
$[6] = t2;
|
|
389
|
+
if ($[6] !== ids) {
|
|
390
|
+
t3 = ids.map(inquiryTreeQuery);
|
|
391
|
+
$[6] = ids;
|
|
344
392
|
$[7] = t3;
|
|
345
393
|
} else t3 = $[7];
|
|
346
|
-
|
|
394
|
+
let t4;
|
|
395
|
+
if ($[8] !== ids) {
|
|
396
|
+
t4 = (results) => ({
|
|
397
|
+
trees: Object.fromEntries(ids.flatMap((id, index) => {
|
|
398
|
+
const linked = results[index]?.data;
|
|
399
|
+
return linked ? [[id, linked]] : [];
|
|
400
|
+
})),
|
|
401
|
+
settled: !results.some(_temp2)
|
|
402
|
+
});
|
|
403
|
+
$[8] = ids;
|
|
404
|
+
$[9] = t4;
|
|
405
|
+
} else t4 = $[9];
|
|
406
|
+
let t5;
|
|
407
|
+
if ($[10] !== t3 || $[11] !== t4) {
|
|
408
|
+
t5 = {
|
|
409
|
+
queries: t3,
|
|
410
|
+
combine: t4
|
|
411
|
+
};
|
|
412
|
+
$[10] = t3;
|
|
413
|
+
$[11] = t4;
|
|
414
|
+
$[12] = t5;
|
|
415
|
+
} else t5 = $[12];
|
|
416
|
+
return useQueries(t5);
|
|
347
417
|
};
|
|
348
418
|
/**
|
|
349
|
-
* The detailed tree, imperatively — the load-to-tree door needs a tree the
|
|
350
|
-
* viewer is NOT mounted on (v1's executeGetDetailedTree). Same key and
|
|
351
|
-
* staleness as useInquiryTree, so a tree the user later opens is a cache hit.
|
|
352
|
-
*/
|
|
353
|
-
const fetchInquiryTree = (queryClient, treeId) => queryClient.fetchQuery({
|
|
354
|
-
queryKey: inquiryKeys.tree(treeId),
|
|
355
|
-
queryFn: ({ signal }) => apiGet(ConfigService.integrationV1ApiUrl, `inquirytree/${treeId}/detailed`, { signal }),
|
|
356
|
-
staleTime: CONFIG_STALE_TIME
|
|
357
|
-
});
|
|
358
|
-
/**
|
|
359
419
|
* The tree's recently-loaded history for the signed-in user. Same endpoint v1's
|
|
360
420
|
* host route called (`loadedInquiryTreeNodes`), so v1 and v2 read and write ONE
|
|
361
421
|
* list — a record loaded in either viewer shows up in both.
|
|
@@ -615,11 +675,36 @@ const fetchLookupTable = async (queryClient, catalogId, lookupId) => queryClient
|
|
|
615
675
|
}
|
|
616
676
|
}
|
|
617
677
|
});
|
|
618
|
-
/**
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
678
|
+
/**
|
|
679
|
+
* Single key: the row holds the key under the ATTRIBUTE's own name, which may
|
|
680
|
+
* differ from the lookup's key column. Multi-key: each key matches by its own
|
|
681
|
+
* name on the row (grid lookupHelper's rule).
|
|
682
|
+
*/
|
|
683
|
+
const compositeKey = (row, keys) => JSON.stringify(keys.map((key) => toJsonString(row[key])));
|
|
684
|
+
/**
|
|
685
|
+
* One index per (table, key column), first row winning, as `find` did. Keyed
|
|
686
|
+
* on the cached table object, so every page stamped against the same cache
|
|
687
|
+
* entry reuses the index instead of re-scanning the table.
|
|
688
|
+
*/
|
|
689
|
+
const lookupIndexes = /* @__PURE__ */ new WeakMap();
|
|
690
|
+
const lookupIndexFor = (table, keyName) => {
|
|
691
|
+
const multiKey = table.keyNames.length > 1;
|
|
692
|
+
const indexId = multiKey ? "" : keyName;
|
|
693
|
+
let byColumn = lookupIndexes.get(table);
|
|
694
|
+
if (!byColumn) {
|
|
695
|
+
byColumn = /* @__PURE__ */ new Map();
|
|
696
|
+
lookupIndexes.set(table, byColumn);
|
|
697
|
+
}
|
|
698
|
+
let index = byColumn.get(indexId);
|
|
699
|
+
if (!index) {
|
|
700
|
+
index = /* @__PURE__ */ new Map();
|
|
701
|
+
for (const lookupRow of table.rows) {
|
|
702
|
+
const key = multiKey ? compositeKey(lookupRow, table.keyNames) : toJsonString(lookupRow[keyName]);
|
|
703
|
+
if (!index.has(key)) index.set(key, lookupRow);
|
|
704
|
+
}
|
|
705
|
+
byColumn.set(indexId, index);
|
|
706
|
+
}
|
|
707
|
+
return index;
|
|
623
708
|
};
|
|
624
709
|
/**
|
|
625
710
|
* Stamp lookup display text onto rows as `<field>LookupValue` siblings — the
|
|
@@ -640,22 +725,6 @@ const stampLookupValues = async (queryClient, catalogId, rows, lookupsMap) => {
|
|
|
640
725
|
await Promise.all(Array.from(new Set(configs.map(({ lookupId }) => lookupId))).map(async (lookupId) => {
|
|
641
726
|
tables.set(lookupId, await fetchLookupTable(queryClient, catalogId, lookupId));
|
|
642
727
|
}));
|
|
643
|
-
const compositeKey = (row, keys) => JSON.stringify(keys.map((key) => keyString(row[key])));
|
|
644
|
-
const indexes = /* @__PURE__ */ new Map();
|
|
645
|
-
const indexFor = (lookupId, table, keyName) => {
|
|
646
|
-
const multiKey = table.keyNames.length > 1;
|
|
647
|
-
const indexId = multiKey ? lookupId : `${lookupId}\u0000${keyName}`;
|
|
648
|
-
let index = indexes.get(indexId);
|
|
649
|
-
if (!index) {
|
|
650
|
-
index = /* @__PURE__ */ new Map();
|
|
651
|
-
for (const lookupRow of table.rows) {
|
|
652
|
-
const key = multiKey ? compositeKey(lookupRow, table.keyNames) : keyString(lookupRow[keyName]);
|
|
653
|
-
if (!index.has(key)) index.set(key, lookupRow);
|
|
654
|
-
}
|
|
655
|
-
indexes.set(indexId, index);
|
|
656
|
-
}
|
|
657
|
-
return index;
|
|
658
|
-
};
|
|
659
728
|
return rows.map((row) => {
|
|
660
729
|
let stamped = row;
|
|
661
730
|
for (const { attribute, lookupId, config } of configs) {
|
|
@@ -665,7 +734,7 @@ const stampLookupValues = async (queryClient, catalogId, rows, lookupsMap) => {
|
|
|
665
734
|
const valueName = config.lookupValueName || table.valueName;
|
|
666
735
|
const keyName = config.lookupKeyName || table.keyNames[0];
|
|
667
736
|
if (!valueName || !keyName) continue;
|
|
668
|
-
const text =
|
|
737
|
+
const text = lookupIndexFor(table, keyName).get(table.keyNames.length > 1 ? compositeKey(row, table.keyNames) : toJsonString(raw))?.[valueName];
|
|
669
738
|
if (text === null || text === void 0) continue;
|
|
670
739
|
if (stamped === row) stamped = { ...row };
|
|
671
740
|
stamped[`${attribute}LookupValue`] = text;
|
|
@@ -678,9 +747,7 @@ const stampLookupValues = async (queryClient, catalogId, rows, lookupsMap) => {
|
|
|
678
747
|
* the CATALOG ATTRIBUTE (`extendedProperties.lookup` + its key/value column
|
|
679
748
|
* names) — the same client-side derivation the maintenance grid performs
|
|
680
749
|
* (UdpDataBrowserPage.jsx:229-247) — so any producer holding an entity name
|
|
681
|
-
* can stamp its rows.
|
|
682
|
-
* describes the searched entity only: rows nested inside it (a resource's
|
|
683
|
-
* `resourceAssignment[]`) are never covered by it.
|
|
750
|
+
* can stamp its rows.
|
|
684
751
|
*/
|
|
685
752
|
const deriveLookupsMap = (catalogObjects, entityName) => {
|
|
686
753
|
const properties = catalogObjects?.find((candidate) => candidate.catalogObjectName === entityName)?.properties;
|
|
@@ -698,56 +765,39 @@ const deriveLookupsMap = (catalogObjects, entityName) => {
|
|
|
698
765
|
return map;
|
|
699
766
|
};
|
|
700
767
|
/**
|
|
701
|
-
* Stamp lookup display text through NESTED association rows — the levels the
|
|
702
|
-
* wave loader grafts onto a parent row under its association key. A nested
|
|
703
|
-
* row's FK fields can only be resolved through its OWN entity's lookup config
|
|
704
|
-
* (a response's lookupsMap describes the entity it searched and nothing else),
|
|
705
|
-
* which is what this walk supplies. Depth-first over the row graph with the
|
|
706
|
-
* same stampLookupValues/fetchLookupTable pair the flat paths use —
|
|
707
|
-
* copy-on-write, so untouched rows keep their cached identity.
|
|
708
|
-
*/
|
|
709
|
-
const stampNestedLookupValues = async (queryClient, catalogId, rows, nestedEntities, catalogObjects) => {
|
|
710
|
-
const entities = nestedEntities ?? {};
|
|
711
|
-
const keys = Object.keys(entities);
|
|
712
|
-
if (!catalogId || !rows.length || !keys.length) return rows;
|
|
713
|
-
const lookupsByKey = Object.fromEntries(keys.map((key) => [key, deriveLookupsMap(catalogObjects, entities[key])]));
|
|
714
|
-
/** Stamp one nested level, then recurse into it. */
|
|
715
|
-
const stampRows = async (source, key) => walk(await stampLookupValues(queryClient, catalogId, source, lookupsByKey[key]));
|
|
716
|
-
const walk = async (source) => Promise.all(source.map(async (row) => {
|
|
717
|
-
const levels = await Promise.all(keys.map(async (key) => {
|
|
718
|
-
const nested = row[key];
|
|
719
|
-
const nestedRows = Array.isArray(nested) ? nested : nested && typeof nested === "object" ? [nested] : null;
|
|
720
|
-
if (!nestedRows?.length) return null;
|
|
721
|
-
const stamped = await stampRows(nestedRows, key);
|
|
722
|
-
if (stamped.every((child, index) => child === nestedRows[index])) return null;
|
|
723
|
-
return {
|
|
724
|
-
key,
|
|
725
|
-
value: Array.isArray(nested) ? stamped : stamped[0]
|
|
726
|
-
};
|
|
727
|
-
}));
|
|
728
|
-
let next = row;
|
|
729
|
-
for (const level of levels) {
|
|
730
|
-
if (!level) continue;
|
|
731
|
-
if (next === row) next = { ...row };
|
|
732
|
-
next[level.key] = level.value;
|
|
733
|
-
}
|
|
734
|
-
return next;
|
|
735
|
-
}));
|
|
736
|
-
return walk(rows);
|
|
737
|
-
};
|
|
738
|
-
/**
|
|
739
768
|
* Stamp a page of rows whose entity is KNOWN: the entity's catalog lookup
|
|
740
|
-
* config
|
|
741
|
-
*
|
|
742
|
-
*
|
|
743
|
-
*
|
|
769
|
+
* config, overridden by a response's own `lookupsMap` where present. Every v2
|
|
770
|
+
* producer — root page, lazy child page, search-loaded record — funnels
|
|
771
|
+
* through here so a label/header chip on an FK field reads the same wherever
|
|
772
|
+
* the row came from. v2 fetches every level lean (`eagerLoad: false`), so a
|
|
773
|
+
* row carries no nested association rows to stamp.
|
|
744
774
|
*/
|
|
745
775
|
const stampRecordRows = async (context, entityName, rows, responseLookupsMap) => {
|
|
746
|
-
const { queryClient, catalogId, catalogObjects,
|
|
747
|
-
|
|
776
|
+
const { queryClient, catalogId, catalogObjects, stampDisplayText } = context;
|
|
777
|
+
const stamped = await stampLookupValues(queryClient, catalogId, rows, {
|
|
748
778
|
...deriveLookupsMap(catalogObjects, entityName),
|
|
749
779
|
...responseLookupsMap ?? {}
|
|
750
|
-
})
|
|
780
|
+
});
|
|
781
|
+
return stampDisplayText && entityName ? stampDisplayText(entityName, stamped) : stamped;
|
|
782
|
+
};
|
|
783
|
+
/** An ad hoc search response as RecordRows. */
|
|
784
|
+
const toRecordRows = (response) => ({
|
|
785
|
+
rows: response.data?.pageList ?? [],
|
|
786
|
+
total: response.data?.total ?? 0,
|
|
787
|
+
lookupsMap: response.data?.lookupsMap ?? null
|
|
788
|
+
});
|
|
789
|
+
/**
|
|
790
|
+
* How an interactive record read caches and fails: 30 s fresh, and NO retry in
|
|
791
|
+
* 'always' network mode — a retry delay can be parked behind TanStack's
|
|
792
|
+
* focus/online gates, which hangs the await (the eternal-spinner defect the
|
|
793
|
+
* search hook's SEARCH_FAILURE_MODE fixes the same way). Callers surface the
|
|
794
|
+
* failure instead: the sidebar's error bar, a load's toast, a level's row
|
|
795
|
+
* message.
|
|
796
|
+
*/
|
|
797
|
+
const INTERACTIVE_READ = {
|
|
798
|
+
staleTime: 30 * 1e3,
|
|
799
|
+
retry: false,
|
|
800
|
+
networkMode: "always"
|
|
751
801
|
};
|
|
752
802
|
/**
|
|
753
803
|
* The tree menu's seed. LEAN — `eagerLoad: false`: no child records ride the
|
|
@@ -758,7 +808,8 @@ const stampRecordRows = async (context, entityName, rows, responseLookupsMap) =>
|
|
|
758
808
|
* Two shapes, one query:
|
|
759
809
|
* - the ROOT PAGE: `pageSize` records, the root level's initial record count;
|
|
760
810
|
* - ENTRY FROM RECORD (`?node=`/`?nodeSearch=`): `identifierFilters` names one
|
|
761
|
-
* record and the page is just that record
|
|
811
|
+
* record and the page is just that record — two rows are asked for and the
|
|
812
|
+
* page is empty unless exactly one matches (rowForIdentifierSet).
|
|
762
813
|
*
|
|
763
814
|
* The request carries the Data Builder query's OWN saved filters/order
|
|
764
815
|
* (`instanceFilters`): ad-hoc execution ignores the instance body, so a query's
|
|
@@ -782,7 +833,7 @@ const useRootRecords = (t0) => {
|
|
|
782
833
|
const filtersHash = t3;
|
|
783
834
|
let t4;
|
|
784
835
|
if ($[2] !== identifierFilters) {
|
|
785
|
-
t4 = identifierFilters?.length ? JSON.stringify(identifierFilters.map(
|
|
836
|
+
t4 = identifierFilters?.length ? JSON.stringify(identifierFilters.map(_temp3)) : "";
|
|
786
837
|
$[2] = identifierFilters;
|
|
787
838
|
$[3] = t4;
|
|
788
839
|
} else t4 = $[3];
|
|
@@ -802,13 +853,15 @@ const useRootRecords = (t0) => {
|
|
|
802
853
|
if ($[10] !== apiMethodId || $[11] !== identifierFilters || $[12] !== instanceFilters || $[13] !== pageSize) {
|
|
803
854
|
t6 = async () => {
|
|
804
855
|
const { searchFilterElements, searchFilterGroups } = composeInstanceSearchFilters({ instanceFilters });
|
|
805
|
-
const search = getSearchObject([...searchFilterElements, ...identifierFilters ?? []], 1, identifierFilters?.length ?
|
|
806
|
-
if (instanceFilters?.orderElements.length) search.orderElements = instanceFilters.orderElements.map(
|
|
807
|
-
const
|
|
856
|
+
const search = getSearchObject([...searchFilterElements, ...identifierFilters ?? []], 1, identifierFilters?.length ? 2 : pageSize, false, LogicalSearchOperatorEnums.And, searchFilterGroups);
|
|
857
|
+
if (instanceFilters?.orderElements.length) search.orderElements = instanceFilters.orderElements.map(_temp4);
|
|
858
|
+
const page = toRecordRows(await executeQueryAdHoc({ data: search }, String(apiMethodId)));
|
|
859
|
+
if (!identifierFilters?.length) return page;
|
|
860
|
+
const row = rowForIdentifierSet(page.rows, identifierFilters, true);
|
|
808
861
|
return {
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
862
|
+
...page,
|
|
863
|
+
rows: row ? [row] : [],
|
|
864
|
+
total: row ? 1 : 0
|
|
812
865
|
};
|
|
813
866
|
};
|
|
814
867
|
$[10] = apiMethodId;
|
|
@@ -825,9 +878,7 @@ const useRootRecords = (t0) => {
|
|
|
825
878
|
queryFn: t6,
|
|
826
879
|
enabled: t7,
|
|
827
880
|
placeholderData: keepPreviousData,
|
|
828
|
-
|
|
829
|
-
retry: false,
|
|
830
|
-
networkMode: "always"
|
|
881
|
+
...INTERACTIVE_READ
|
|
831
882
|
};
|
|
832
883
|
$[15] = queryKey;
|
|
833
884
|
$[16] = t6;
|
|
@@ -837,19 +888,15 @@ const useRootRecords = (t0) => {
|
|
|
837
888
|
return useQuery(t8);
|
|
838
889
|
};
|
|
839
890
|
/**
|
|
840
|
-
* Fetch
|
|
841
|
-
*
|
|
842
|
-
*
|
|
843
|
-
*
|
|
844
|
-
*/
|
|
845
|
-
const fetchRecordByIdentifiers = async (queryClient, apiMethodId, filterElements, lookupContext) => (await fetchRecordsByIdentifierSets(queryClient, apiMethodId, [filterElements], lookupContext))[0] ?? null;
|
|
846
|
-
/**
|
|
847
|
-
* Fetch MANY records in one request — the bulk-load path ("Load selected").
|
|
848
|
-
* Each identifier set becomes an AND group and the groups combine with OR, so
|
|
891
|
+
* Fetch records by identifier sets in one request — every load by identifiers
|
|
892
|
+
* (Load dialog picks, "Load selected", deep links, a record's refresh). LEAN:
|
|
893
|
+
* the record's levels are filled by the wave loader afterwards. Each
|
|
894
|
+
* identifier set becomes an AND group and the groups combine with OR, so
|
|
849
895
|
* twenty picks cost one search instead of twenty (the per-record pipeline made
|
|
850
896
|
* 50+ requests for a 20-record bulk load, observed 2026-08-27). Returns the
|
|
851
|
-
* rows the server matched, lookup-stamped when given a context
|
|
852
|
-
*
|
|
897
|
+
* rows the server matched, lookup-stamped when given a context. One row more
|
|
898
|
+
* than the sets is asked for, so a set matching several records shows as
|
|
899
|
+
* ambiguous rather than as its first match (resolveIdentifierSets).
|
|
853
900
|
*/
|
|
854
901
|
const fetchRecordsByIdentifierSets = async (queryClient, apiMethodId, identifierSets, lookupContext) => {
|
|
855
902
|
const sets = identifierSets.filter((set) => set.length);
|
|
@@ -865,17 +912,17 @@ const fetchRecordsByIdentifierSets = async (queryClient, apiMethodId, identifier
|
|
|
865
912
|
}));
|
|
866
913
|
return queryClient.fetchQuery({
|
|
867
914
|
queryKey: inquiryKeys.recordByIdentifiers(lookupContext?.entityName ?? apiMethodId, filterElements),
|
|
868
|
-
|
|
869
|
-
retry: false,
|
|
870
|
-
networkMode: "always",
|
|
915
|
+
...INTERACTIVE_READ,
|
|
871
916
|
queryFn: async () => {
|
|
872
|
-
const response = await executeQueryAdHoc({ data: getSearchObject(filterElements, 1, sets.length, false, LogicalSearchOperatorEnums.Or, filterGroups) }, apiMethodId);
|
|
917
|
+
const response = await executeQueryAdHoc({ data: getSearchObject(filterElements, 1, sets.length + 1, false, LogicalSearchOperatorEnums.Or, filterGroups) }, apiMethodId);
|
|
873
918
|
const rows = response.data?.pageList ?? [];
|
|
874
919
|
if (!rows.length || !lookupContext) return rows;
|
|
875
920
|
return stampRecordRows(lookupContext, lookupContext.entityName, rows, response.data?.lookupsMap);
|
|
876
921
|
}
|
|
877
922
|
});
|
|
878
923
|
};
|
|
924
|
+
/** Each identifier set's row, null when none or several match (resolveIdentifierSets). */
|
|
925
|
+
const fetchRowsForIdentifierSets = (queryClient, apiMethodId, identifierSets, lookupContext) => resolveIdentifierSets((sets) => fetchRecordsByIdentifierSets(queryClient, apiMethodId, sets, lookupContext), identifierSets);
|
|
879
926
|
/**
|
|
880
927
|
* ONE child-level request — a wave's batched `parentFK IN (…)` fetch or a lazy
|
|
881
928
|
* expand's single-parent one. Cached on (method × exact body), so the same
|
|
@@ -885,17 +932,8 @@ const fetchRecordsByIdentifierSets = async (queryClient, apiMethodId, identifier
|
|
|
885
932
|
*/
|
|
886
933
|
const fetchChildRows = async (queryClient, apiMethodId, data) => queryClient.fetchQuery({
|
|
887
934
|
queryKey: inquiryKeys.childBatch(apiMethodId, JSON.stringify(data)),
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
networkMode: "always",
|
|
891
|
-
queryFn: async () => {
|
|
892
|
-
const response = await executeQueryAdHoc({ data }, apiMethodId);
|
|
893
|
-
return {
|
|
894
|
-
rows: response.data?.pageList ?? [],
|
|
895
|
-
total: response.data?.total ?? 0,
|
|
896
|
-
lookupsMap: response.data?.lookupsMap ?? null
|
|
897
|
-
};
|
|
898
|
-
}
|
|
935
|
+
...INTERACTIVE_READ,
|
|
936
|
+
queryFn: async () => toRecordRows(await executeQueryAdHoc({ data }, apiMethodId))
|
|
899
937
|
});
|
|
900
938
|
/**
|
|
901
939
|
* Fetch + normalize a page document. Cached hard (config); the page builder
|
|
@@ -935,13 +973,19 @@ const usePageDocument = (pageId) => {
|
|
|
935
973
|
} else t3 = $[7];
|
|
936
974
|
return useQuery(t3);
|
|
937
975
|
};
|
|
938
|
-
function _temp(
|
|
976
|
+
function _temp(node) {
|
|
977
|
+
return isEntityNode(node) && node.properties.associatedTreeId ? [node.properties.associatedTreeId] : [];
|
|
978
|
+
}
|
|
979
|
+
function _temp2(result) {
|
|
980
|
+
return result.isPending;
|
|
981
|
+
}
|
|
982
|
+
function _temp3(element) {
|
|
939
983
|
return [element.searchField, element.searchValue];
|
|
940
984
|
}
|
|
941
|
-
function
|
|
985
|
+
function _temp4(order) {
|
|
942
986
|
return { ...order };
|
|
943
987
|
}
|
|
944
988
|
//#endregion
|
|
945
|
-
export { CONFIG_STALE_TIME, executeApiMethodWithParameters, executeSearchQuery, fetchAction, fetchAggregateThresholdValue, fetchApiMethod, fetchApiMethodsByIds, fetchChildRows, fetchEntityMeta, fetchInquiryTree,
|
|
989
|
+
export { CONFIG_STALE_TIME, executeApiMethodWithParameters, executeSearchQuery, fetchAction, fetchAggregateThresholdValue, fetchApiMethod, fetchApiMethodsByIds, fetchChildRows, fetchEntityMeta, fetchInquiryTree, fetchRecordsByIdentifierSets, fetchRowsForIdentifierSets, inquiryKeys, invalidateInquiryRowData, recordRecentlyLoadedNodes, stampRecordRows, startWorkflow, useAggregateThresholdValue, useAlert, useApiCatalogBinding, useInquiryTree, useLinkedTrees, usePageDocument, usePrefetchLookupMethod, usePromotedMethodEntities, useRecentlyLoadedNodes, useRootRecords, useTreeCatalogObjects };
|
|
946
990
|
|
|
947
991
|
//# sourceMappingURL=queries.mjs.map
|