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
|
@@ -2,10 +2,10 @@ import { c } from "../../../reactCompilerRuntime.mjs";
|
|
|
2
2
|
import { LogicalSearchOperatorEnums } from "../../../enums/unitySystemEnums.mjs";
|
|
3
3
|
import { getSearchObject } from "../../../utilities/search/SearchUtilities.mjs";
|
|
4
4
|
import { composeInstanceSearchFilters } from "../api/instanceBodyModel.mjs";
|
|
5
|
-
import { executeSearchQuery, inquiryKeys } from "../api/queries.mjs";
|
|
6
5
|
import { searchHashFor, shouldFireSearch, stampQuickSearchElements } from "./searchModel.mjs";
|
|
6
|
+
import { executeSearchQuery, inquiryKeys } from "../api/queries.mjs";
|
|
7
7
|
import { useEffect, useState } from "react";
|
|
8
|
-
import { useQueries, useQuery } from "@tanstack/react-query";
|
|
8
|
+
import { skipToken, useQueries, useQuery } from "@tanstack/react-query";
|
|
9
9
|
//#region src/inquiry/v2/search/useInquirySearch.ts
|
|
10
10
|
/**
|
|
11
11
|
* useInquirySearch — the search consumer's runtime: debounced, per-entity,
|
|
@@ -70,6 +70,31 @@ const buildSearchBody = (entity, treeElements, isAdvancedSearch, pageSize = RESU
|
|
|
70
70
|
return search;
|
|
71
71
|
};
|
|
72
72
|
/**
|
|
73
|
+
* THE records-search query — one key recipe (`searchHashFor` + page size +
|
|
74
|
+
* retry token), one body (`buildSearchBody`), one stale time and failure mode
|
|
75
|
+
* — so the hook, the one-shot reads and the default listing share cache
|
|
76
|
+
* entries whenever they ask the same question.
|
|
77
|
+
*/
|
|
78
|
+
const recordsQueryOptions = (entity, { kind, elements, groups = [], pageSize, retryToken = 0 }) => ({
|
|
79
|
+
queryKey: inquiryKeys.records(entity.entityName, `${searchHashFor(kind, entity.key, elements, groups)}:${pageSize}:${retryToken}`),
|
|
80
|
+
queryFn: async ({ signal }) => {
|
|
81
|
+
const result = await executeSearchQuery(entity.apiMethodId, buildSearchBody(entity, elements, kind === "advanced", pageSize, groups), signal);
|
|
82
|
+
return entity.stampRows ? {
|
|
83
|
+
...result,
|
|
84
|
+
rows: await entity.stampRows(result.rows, result.lookupsMap)
|
|
85
|
+
} : result;
|
|
86
|
+
},
|
|
87
|
+
staleTime: RESULT_STALE_TIME,
|
|
88
|
+
...SEARCH_FAILURE_MODE
|
|
89
|
+
});
|
|
90
|
+
/**
|
|
91
|
+
* Only a query actually ON THE WIRE is loading. TanStack's third fetchStatus,
|
|
92
|
+
* 'paused', is a query it has parked: nothing is in flight and nothing is
|
|
93
|
+
* scheduled, so reading it as pending is what turns a failed search into a
|
|
94
|
+
* spinner that never ends.
|
|
95
|
+
*/
|
|
96
|
+
const isOnWire = (result) => !!result && result.fetchStatus === "fetching" && result.isPending;
|
|
97
|
+
/**
|
|
73
98
|
* The quick search WITHOUT the hook: same templates, same body composition
|
|
74
99
|
* (`buildSearchBody`), same cache entry (`inquiryKeys.records` + `searchHashFor`)
|
|
75
100
|
* — just run once, imperatively, for a caller that has no render loop to
|
|
@@ -85,13 +110,11 @@ const searchInquiryEntitiesOnce = async ({ entities, text, pageSize = 10, queryC
|
|
|
85
110
|
const runs = entities.map(async (entity) => {
|
|
86
111
|
const treeElements = stampQuickSearchElements(entity.quickSearchTemplates, trimmed);
|
|
87
112
|
if (!shouldFireSearch(treeElements, entity.columnsByField)) return null;
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
...SEARCH_FAILURE_MODE
|
|
94
|
-
});
|
|
113
|
+
const result = await queryClient.fetchQuery(recordsQueryOptions(entity, {
|
|
114
|
+
kind: "quick",
|
|
115
|
+
elements: treeElements,
|
|
116
|
+
pageSize
|
|
117
|
+
}));
|
|
95
118
|
return {
|
|
96
119
|
entity,
|
|
97
120
|
rows: result.rows,
|
|
@@ -111,13 +134,11 @@ const searchInquiryEntitiesOnce = async ({ entities, text, pageSize = 10, queryC
|
|
|
111
134
|
* it needs the rows rather than a rendered panel.
|
|
112
135
|
*/
|
|
113
136
|
const queryInquiryEntityOnce = async ({ entity, elements, pageSize = 10, queryClient }) => {
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
...SEARCH_FAILURE_MODE
|
|
120
|
-
});
|
|
137
|
+
const result = await queryClient.fetchQuery(recordsQueryOptions(entity, {
|
|
138
|
+
kind: "advanced",
|
|
139
|
+
elements: clone(elements),
|
|
140
|
+
pageSize
|
|
141
|
+
}));
|
|
121
142
|
return {
|
|
122
143
|
entity,
|
|
123
144
|
rows: result.rows,
|
|
@@ -133,69 +154,49 @@ const queryInquiryEntityOnce = async ({ entity, elements, pageSize = 10, queryCl
|
|
|
133
154
|
* its rows; nothing is fetched.
|
|
134
155
|
*/
|
|
135
156
|
const useDefaultListing = (entity) => {
|
|
136
|
-
const $ = c(
|
|
157
|
+
const $ = c(11);
|
|
137
158
|
let t0;
|
|
138
|
-
if ($[0] !== entity
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
t0 = inquiryKeys.records(entity?.entityName ?? "", `${t2}:20:0`);
|
|
147
|
-
$[0] = entity?.entityName;
|
|
148
|
-
$[1] = entity?.key;
|
|
149
|
-
$[2] = t0;
|
|
150
|
-
} else t0 = $[2];
|
|
151
|
-
let t1;
|
|
152
|
-
if ($[5] !== entity) {
|
|
153
|
-
t1 = (t2) => {
|
|
154
|
-
const { signal } = t2;
|
|
155
|
-
return executeSearchQuery(entity.apiMethodId, buildSearchBody(entity, [], false, 20), signal);
|
|
159
|
+
if ($[0] !== entity) {
|
|
160
|
+
t0 = entity ? recordsQueryOptions(entity, {
|
|
161
|
+
kind: "quick",
|
|
162
|
+
elements: [],
|
|
163
|
+
pageSize: 20
|
|
164
|
+
}) : {
|
|
165
|
+
queryKey: inquiryKeys.records("", ""),
|
|
166
|
+
queryFn: skipToken
|
|
156
167
|
};
|
|
157
|
-
$[
|
|
158
|
-
$[
|
|
159
|
-
} else
|
|
160
|
-
const
|
|
168
|
+
$[0] = entity;
|
|
169
|
+
$[1] = t0;
|
|
170
|
+
} else t0 = $[1];
|
|
171
|
+
const result = useQuery(t0);
|
|
172
|
+
let t1;
|
|
173
|
+
if ($[2] !== result.data?.rows) {
|
|
174
|
+
t1 = result.data?.rows ?? [];
|
|
175
|
+
$[2] = result.data?.rows;
|
|
176
|
+
$[3] = t1;
|
|
177
|
+
} else t1 = $[3];
|
|
178
|
+
const t2 = result.data?.total ?? 0;
|
|
161
179
|
let t3;
|
|
162
|
-
if ($[
|
|
163
|
-
t3 =
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
staleTime: RESULT_STALE_TIME,
|
|
168
|
-
...SEARCH_FAILURE_MODE
|
|
169
|
-
};
|
|
170
|
-
$[7] = t0;
|
|
171
|
-
$[8] = t1;
|
|
172
|
-
$[9] = t2;
|
|
173
|
-
$[10] = t3;
|
|
174
|
-
} else t3 = $[10];
|
|
175
|
-
const result = useQuery(t3);
|
|
180
|
+
if ($[4] !== result) {
|
|
181
|
+
t3 = isOnWire(result);
|
|
182
|
+
$[4] = result;
|
|
183
|
+
$[5] = t3;
|
|
184
|
+
} else t3 = $[5];
|
|
176
185
|
let t4;
|
|
177
|
-
if ($[
|
|
178
|
-
t4 =
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
const t5 = result.data?.total ?? 0;
|
|
183
|
-
const t6 = !!entity && result.fetchStatus === "fetching" && result.isPending;
|
|
184
|
-
let t7;
|
|
185
|
-
if ($[13] !== result.isError || $[14] !== t4 || $[15] !== t5 || $[16] !== t6) {
|
|
186
|
-
t7 = {
|
|
187
|
-
rows: t4,
|
|
188
|
-
total: t5,
|
|
189
|
-
isPending: t6,
|
|
186
|
+
if ($[6] !== result.isError || $[7] !== t1 || $[8] !== t2 || $[9] !== t3) {
|
|
187
|
+
t4 = {
|
|
188
|
+
rows: t1,
|
|
189
|
+
total: t2,
|
|
190
|
+
isPending: t3,
|
|
190
191
|
isError: result.isError
|
|
191
192
|
};
|
|
192
|
-
$[
|
|
193
|
-
$[
|
|
194
|
-
$[
|
|
195
|
-
$[
|
|
196
|
-
$[
|
|
197
|
-
} else
|
|
198
|
-
return
|
|
193
|
+
$[6] = result.isError;
|
|
194
|
+
$[7] = t1;
|
|
195
|
+
$[8] = t2;
|
|
196
|
+
$[9] = t3;
|
|
197
|
+
$[10] = t4;
|
|
198
|
+
} else t4 = $[10];
|
|
199
|
+
return t4;
|
|
199
200
|
};
|
|
200
201
|
/**
|
|
201
202
|
* useQueries' `combine`: only what the groups read, structurally shared by
|
|
@@ -281,18 +282,16 @@ const useInquirySearch = (t0) => {
|
|
|
281
282
|
if ($[19] !== advanced || $[20] !== debouncedText || $[21] !== isAdvanced || $[22] !== pageSize || $[23] !== retryToken) {
|
|
282
283
|
t10 = (entity) => {
|
|
283
284
|
const treeElements = advanced ? clone(advanced.elements) : stampQuickSearchElements(entity.quickSearchTemplates, debouncedText);
|
|
284
|
-
const treeGroups = advanced?.groups ?? [];
|
|
285
|
-
const hash = `${searchHashFor(isAdvanced ? "advanced" : "quick", entity.key, treeElements, treeGroups)}:${pageSize}:${retryToken}`;
|
|
286
285
|
const fire = isAdvanced ? treeElements.length > 0 : shouldFireSearch(treeElements, entity.columnsByField);
|
|
287
286
|
return {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
287
|
+
...recordsQueryOptions(entity, {
|
|
288
|
+
kind: isAdvanced ? "advanced" : "quick",
|
|
289
|
+
elements: treeElements,
|
|
290
|
+
groups: advanced?.groups ?? [],
|
|
291
|
+
pageSize,
|
|
292
|
+
retryToken
|
|
293
|
+
}),
|
|
294
|
+
enabled: fire
|
|
296
295
|
};
|
|
297
296
|
};
|
|
298
297
|
$[19] = advanced;
|
|
@@ -334,7 +333,7 @@ const useInquirySearch = (t0) => {
|
|
|
334
333
|
columns: entity_0.resultColumns,
|
|
335
334
|
rows: result?.data?.rows ?? [],
|
|
336
335
|
total: result?.data?.total ?? 0,
|
|
337
|
-
isPending:
|
|
336
|
+
isPending: isOnWire(result),
|
|
338
337
|
isError: !!result?.isError || stalled
|
|
339
338
|
};
|
|
340
339
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInquirySearch.mjs","names":["useEffect","useMemo","useState","useQueries","useQuery","QueryClient","UseQueryResult","LogicalSearchOperatorEnums","getSearchObject","composeInstanceSearchFilters","executeSearchQuery","inquiryKeys","RecordRows","QueryFilterGroup","ResultColumn","SearchFilterElement","SearchableEntity","searchHashFor","shouldFireSearch","stampQuickSearchElements","DEBOUNCE_MS","RESULT_STALE_TIME","RESULT_PAGE_SIZE","SEARCH_TIMEOUT_MS","LOAD_DEBOUNCE_MS","LOAD_PAGE_SIZE","LOAD_MIN_CHARS","LOAD_DEFAULT_LIST_SIZE","SEARCH_FAILURE_MODE","retry","networkMode","const","AdvancedSearchState","entityKey","elements","groups","SearchResultGroup","entity","columns","rows","Array","Record","total","isPending","isError","InquirySearchResult","isSettled","isActive","isTimedOut","singleResult","row","clone","map","el","buildSearchBody","treeElements","isAdvancedSearch","pageSize","treeGroups","searchFilterElements","searchFilterGroups","instanceFilters","runtimeFilterElements","runtimeFilterGroups","search","And","orderElements","length","order","OneShotSearchGroup","searchInquiryEntitiesOnce","entities","text","queryClient","Promise","trimmed","trim","runs","quickSearchTemplates","columnsByField","hash","key","result","fetchQuery","queryKey","records","entityName","queryFn","signal","AbortSignal","apiMethodId","staleTime","settled","all","filter","group","queryInquiryEntityOnce","DefaultListing","useDefaultListing","$","_c","t0","t1","t2","t3","enabled","t4","data","t5","t6","fetchStatus","t7","searchSlices","results","failureCount","useInquirySearch","advanced","debounceMs","minChars","timeoutMs","retryToken","undefined","debouncedText","setDebouncedText","id","setTimeout","clearTimeout","isQuick","isAdvanced","t8","bb0","t9","t10","e","Symbol","for","activeEntities","fire","t11","queries","combine","t12","entity_0","index","stalled","resultColumns","some","_temp","anyPending","setIsTimedOut","t13","id_0","t14","t15","_temp2","withRows","single","singleEntity","singleRow","t16","t17","g","g_0"],"sources":["../../../../src/inquiry/v2/search/useInquirySearch.ts"],"sourcesContent":["/**\n * useInquirySearch — the search consumer's runtime: debounced, per-entity,\n * cancellable queries against the canonical `inquiryKeys.records` cache\n * (inquiry-v2-architecture.md §5). It stamps/derives requests through the pure\n * searchModel, merges the query's own saved filters in through\n * `composeInstanceSearchFilters` (the shared .js composer) + `getSearchObject`\n * to build the body exactly like the legacy container, and threads TanStack's\n * AbortSignal through `executeSearchQuery` so a superseded keystroke aborts.\n *\n * Owns exactly one piece of state: the debounced text. Everything else is\n * derived. Config is cached hard (searchable set); record results are fresh\n * (30 s staleTime) and keyed by a stable request hash.\n */\nimport { useEffect, useMemo, useState } from 'react';\nimport { useQueries, useQuery } from '@tanstack/react-query';\nimport type { QueryClient, UseQueryResult } from '@tanstack/react-query';\nimport { LogicalSearchOperatorEnums } from '../../../enums/unitySystemEnums';\nimport { getSearchObject } from '../../../utilities/search/SearchUtilities';\nimport { composeInstanceSearchFilters } from '../api/instanceBodyModel';\nimport { executeSearchQuery, inquiryKeys } from '../api/queries';\nimport type { RecordRows } from '../api/queries';\nimport {\n QueryFilterGroup,\n ResultColumn,\n SearchFilterElement,\n SearchableEntity,\n searchHashFor,\n shouldFireSearch,\n stampQuickSearchElements\n} from './searchModel';\n\nconst DEBOUNCE_MS = 300;\nconst RESULT_STALE_TIME = 30 * 1000;\nconst RESULT_PAGE_SIZE = 25;\n/** Slow-backend cutoff for the + Load popover (find-and-load spec §6). */\nexport const SEARCH_TIMEOUT_MS = 12000;\n/** The popover's keystroke settling window (find-and-load spec §6). */\nexport const LOAD_DEBOUNCE_MS = 350;\n/** A typed search's first page; \"N more\" widens it a page at a time. */\nexport const LOAD_PAGE_SIZE = 10;\n/**\n * The + Load search floor: below this the surface lists rather than searching,\n * and no request is ever fired. Shared so an arriving `?searchValue` is measured\n * against exactly the floor the dialog it may hand over to uses.\n */\nexport const LOAD_MIN_CHARS = 1;\n/**\n * How many root records the finder lists before anything is typed. Served from\n * the root-record page the host already holds when it has one; otherwise the\n * finder fetches that page itself (useDefaultListing).\n */\nexport const LOAD_DEFAULT_LIST_SIZE = 20;\n\n/**\n * How a SEARCH is allowed to fail. Scoped to these queries — the app-wide\n * client (QueryProvider) keeps its own defaults for everything else.\n *\n * `retry: false` — a search is interactive: the user is watching a spinner and\n * cannot do anything until it resolves. The failures this surface actually sees\n * are deterministic backend rejections (executeQueryAdHoc answers 500 \"Error\n * executing query.\" for filters the generated SQL can't honor), which the same\n * request will produce again. Retrying buys nothing and costs the only thing\n * that matters here: time to an answer.\n *\n * `networkMode: 'always'` — with the default 'online' mode TanStack gates both\n * the START of a fetch and the resumption of a retry on `onlineManager` AND\n * `focusManager` (query-core 5.97 retryer.ts `canStart`/`canContinue`). A retry\n * whose delay elapses while `document.visibilityState === 'hidden'` is parked\n * as `fetchStatus: 'paused'` with no error and no timer — the query stays\n * `pending` forever, which is exactly the eternal spinner this surface showed.\n * Neither signal is evidence about whether THIS API will answer, so the search\n * always runs and always reports what happened.\n *\n * Together: one request, and within one round trip either rows or `isError`.\n */\nconst SEARCH_FAILURE_MODE = {\n retry: false,\n networkMode: 'always'\n} as const;\n\n/** An active advanced-search filter, scoped to one entity. */\nexport interface AdvancedSearchState {\n entityKey: string;\n elements: SearchFilterElement[];\n /**\n * The AND/OR groups the elements sit in, as the shared builder emitted them\n * (elements point at one by `groupId`). Omit for a flat set — the composer\n * then ANDs/ORs them under its own outer group as before.\n */\n groups?: QueryFilterGroup[];\n}\n\nexport interface SearchResultGroup {\n entity: SearchableEntity;\n columns: ResultColumn[];\n rows: Array<Record<string, unknown>>;\n total: number;\n isPending: boolean;\n isError: boolean;\n}\n\nexport interface InquirySearchResult {\n groups: SearchResultGroup[];\n isPending: boolean;\n /**\n * False while typed text hasn't debounced into the running queries yet —\n * consumers keep the pending treatment up instead of flashing stale\n * results/\"no matches\" for the previous text.\n */\n isSettled: boolean;\n /** True once a debounced query is in flight for a non-empty search. */\n isActive: boolean;\n /**\n * A request has been in flight past the caller's `timeoutMs`. Always false\n * when no timeout was asked for.\n */\n isTimedOut: boolean;\n /**\n * The one unambiguous hit (exactly one row across all groups) once every\n * query has settled — the surface auto-loads it (legacy single-result load).\n */\n singleResult: { entity: SearchableEntity; row: Record<string, unknown> } | null;\n}\n\nconst clone = (elements: SearchFilterElement[]): SearchFilterElement[] =>\n elements.map((el) => ({ ...el }));\n\n/**\n * Build the request body: the entity's saved query filters merged with the\n * typed/advanced elements through the shared composer. The saved body's\n * `orderElements` apply only when the runtime produced none of its own\n * (search elements carry no sortDirection today, so in practice they do apply).\n */\nconst buildSearchBody = (\n entity: SearchableEntity,\n treeElements: SearchFilterElement[],\n isAdvancedSearch: boolean,\n pageSize: number = RESULT_PAGE_SIZE,\n treeGroups: QueryFilterGroup[] = []\n): unknown => {\n const { searchFilterElements, searchFilterGroups } =\n composeInstanceSearchFilters({\n instanceFilters: entity.instanceFilters,\n runtimeFilterElements: treeElements,\n runtimeFilterGroups: treeGroups,\n isAdvancedSearch\n });\n const search = getSearchObject(\n searchFilterElements as never,\n 1,\n pageSize,\n false,\n LogicalSearchOperatorEnums.And,\n searchFilterGroups as never\n );\n if (!search.orderElements.length && entity.instanceFilters.orderElements.length) {\n search.orderElements = entity.instanceFilters.orderElements.map((order) => ({\n ...order\n }));\n }\n return search;\n};\n\n/** One entity's slice of a one-shot search. */\nexport interface OneShotSearchGroup {\n entity: SearchableEntity;\n rows: Array<Record<string, unknown>>;\n total: number;\n}\n\n/**\n * The quick search WITHOUT the hook: same templates, same body composition\n * (`buildSearchBody`), same cache entry (`inquiryKeys.records` + `searchHashFor`)\n * — just run once, imperatively, for a caller that has no render loop to\n * debounce. The copilot's find tool is the caller; going through the query cache\n * means its searches dedup with, and warm, the ones the UI fires.\n *\n * Entities whose stamped elements fail `shouldFireSearch` are skipped, exactly\n * as the hook's `enabled` flag skips them.\n */\nexport const searchInquiryEntitiesOnce = async ({\n entities,\n text,\n pageSize = LOAD_PAGE_SIZE,\n queryClient\n}: {\n entities: SearchableEntity[];\n text: string;\n pageSize?: number;\n queryClient: QueryClient;\n}): Promise<OneShotSearchGroup[]> => {\n const trimmed = text.trim();\n if (!trimmed) return [];\n const runs = entities.map(async (entity) => {\n const treeElements = stampQuickSearchElements(\n entity.quickSearchTemplates,\n trimmed\n );\n if (!shouldFireSearch(treeElements, entity.columnsByField)) return null;\n const hash = `${searchHashFor('quick', entity.key, treeElements)}:${pageSize}:0`;\n const result = await queryClient.fetchQuery({\n queryKey: inquiryKeys.records(entity.entityName, hash),\n queryFn: ({ signal }: { signal: AbortSignal }) =>\n executeSearchQuery(\n entity.apiMethodId,\n buildSearchBody(entity, treeElements, false, pageSize),\n signal\n ),\n staleTime: RESULT_STALE_TIME,\n // Same cache entries as the hook's — same failure mode, or whichever\n // caller reached the key first would decide how the other one fails.\n ...SEARCH_FAILURE_MODE\n });\n return { entity, rows: result.rows, total: result.total };\n });\n const settled = await Promise.all(runs);\n return settled.filter((group): group is OneShotSearchGroup => !!group);\n};\n\n/**\n * ONE entity, an explicit filter-element set, run once — the advanced search\n * WITHOUT the hook. Same body composition (`buildSearchBody`, so the Data\n * Builder query's own saved filters are merged in), same cache entry as the\n * advanced search the drawer runs, so the copilot's read and the UI's search\n * are one request when they ask the same question.\n *\n * The copilot's `query_records` is the caller: it answers a data question, so\n * it needs the rows rather than a rendered panel.\n */\nexport const queryInquiryEntityOnce = async ({\n entity,\n elements,\n pageSize = LOAD_PAGE_SIZE,\n queryClient\n}: {\n entity: SearchableEntity;\n elements: SearchFilterElement[];\n pageSize?: number;\n queryClient: QueryClient;\n}): Promise<OneShotSearchGroup> => {\n const hash = `${searchHashFor('advanced', entity.key, elements)}:${pageSize}:0`;\n const result = await queryClient.fetchQuery({\n queryKey: inquiryKeys.records(entity.entityName, hash),\n queryFn: ({ signal }: { signal: AbortSignal }) =>\n executeSearchQuery(\n entity.apiMethodId,\n buildSearchBody(entity, clone(elements), true, pageSize),\n signal\n ),\n staleTime: RESULT_STALE_TIME,\n ...SEARCH_FAILURE_MODE\n });\n return { entity, rows: result.rows, total: result.total };\n};\n\n/** The first root records a finder lists before anything is typed. */\nexport interface DefaultListing {\n rows: Array<Record<string, unknown>>;\n total: number;\n isPending: boolean;\n isError: boolean;\n}\n\n/**\n * The before-you-type listing for a host that holds no root page — an\n * explore-first tree opens with an empty tree pane, so there is nothing to\n * list unless the finder asks. One unfiltered page of the entity, through the\n * same body composition (the query's own saved filters still apply) and the\n * same cache and failure mode as a search. `entity` null = the host supplied\n * its rows; nothing is fetched.\n */\nexport const useDefaultListing = (\n entity: SearchableEntity | null\n): DefaultListing => {\n const result = useQuery({\n queryKey: inquiryKeys.records(\n entity?.entityName ?? '',\n `${searchHashFor('quick', entity?.key ?? '', [])}:${LOAD_DEFAULT_LIST_SIZE}:0`\n ),\n queryFn: ({ signal }) =>\n executeSearchQuery(\n entity.apiMethodId,\n buildSearchBody(entity, [], false, LOAD_DEFAULT_LIST_SIZE),\n signal\n ),\n enabled: !!entity,\n staleTime: RESULT_STALE_TIME,\n ...SEARCH_FAILURE_MODE\n });\n return {\n rows: result.data?.rows ?? [],\n total: result.data?.total ?? 0,\n isPending: !!entity && result.fetchStatus === 'fetching' && result.isPending,\n isError: result.isError\n };\n};\n\n/**\n * useQueries' `combine`: only what the groups read, structurally shared by\n * TanStack — so the result keeps its identity until a query actually changes.\n * Module-level so its identity is stable too.\n */\nconst searchSlices = (results: Array<UseQueryResult<RecordRows>>) =>\n results.map((result) => ({\n data: result.data,\n fetchStatus: result.fetchStatus,\n isPending: result.isPending,\n isError: result.isError,\n failureCount: result.failureCount\n }));\n\nexport const useInquirySearch = ({\n entities,\n text,\n advanced,\n debounceMs = DEBOUNCE_MS,\n minChars = 1,\n pageSize = RESULT_PAGE_SIZE,\n timeoutMs,\n retryToken = 0\n}: {\n entities: SearchableEntity[];\n text: string;\n advanced?: AdvancedSearchState | null;\n /** Keystroke settling window. */\n debounceMs?: number;\n /** Shortest text worth a request (the + Load popover asks for 2). */\n minChars?: number;\n /**\n * Rows requested per entity. The + Load popover starts at 10 and grows the\n * page when the user asks for more, so paging is one widening request against\n * the same cache key rather than a client-side accumulator.\n */\n pageSize?: number;\n /**\n * Report `isTimedOut` once a query has been in flight this long. Nothing is\n * cancelled — the surface offers a retry and the answer still lands if it\n * arrives. Omit to never report a timeout.\n */\n timeoutMs?: number;\n /**\n * Bump to re-enter the query under a fresh cache key — the \"Try again\" a\n * timed-out search offers. Any value change re-runs the request.\n */\n retryToken?: number;\n}): InquirySearchResult => {\n const [debouncedText, setDebouncedText] = useState(text);\n useEffect(() => {\n const id = setTimeout(() => setDebouncedText(text), debounceMs);\n return () => clearTimeout(id);\n }, [text, debounceMs]);\n\n const trimmed = debouncedText.trim();\n const isQuick = trimmed.length >= minChars && trimmed.length > 0 && !advanced;\n const isAdvanced = !!advanced;\n const isActive = isQuick || isAdvanced;\n\n // The entities actually searched: all searchable ones for quick, only the\n // advanced target for advanced (searchConfiguration is root-only).\n const activeEntities = useMemo(() => {\n if (isAdvanced) {\n return entities.filter((e) => e.key === advanced?.entityKey);\n }\n if (isQuick) return entities;\n return [];\n }, [entities, isQuick, isAdvanced, advanced]);\n\n const queries = useMemo(\n () =>\n activeEntities.map((entity) => {\n const treeElements = advanced\n ? clone(advanced.elements)\n : stampQuickSearchElements(entity.quickSearchTemplates, debouncedText);\n const treeGroups = advanced?.groups ?? [];\n const hash = `${searchHashFor(\n isAdvanced ? 'advanced' : 'quick',\n entity.key,\n treeElements,\n treeGroups\n )}:${pageSize}:${retryToken}`;\n const fire = isAdvanced\n ? treeElements.length > 0\n : shouldFireSearch(treeElements, entity.columnsByField);\n return {\n queryKey: inquiryKeys.records(entity.entityName, hash),\n queryFn: ({ signal }: { signal: AbortSignal }) =>\n executeSearchQuery(\n entity.apiMethodId,\n buildSearchBody(\n entity,\n treeElements,\n isAdvanced,\n pageSize,\n treeGroups\n ),\n signal\n ),\n enabled: fire,\n staleTime: RESULT_STALE_TIME,\n ...SEARCH_FAILURE_MODE\n };\n }),\n [activeEntities, debouncedText, isAdvanced, advanced, pageSize, retryToken]\n );\n\n const results = useQueries({ queries, combine: searchSlices });\n\n const groups = useMemo<SearchResultGroup[]>(\n () =>\n activeEntities.map((entity, index) => {\n const result = results[index];\n // Only a query actually ON THE WIRE is loading. TanStack's third\n // fetchStatus, 'paused', is a query it has parked: nothing is in\n // flight and nothing is scheduled, so reading it as pending is what\n // turns a failed search into a spinner that never ends. Parked after\n // an attempt has already failed, the search HAS failed — say so.\n const stalled =\n result?.fetchStatus === 'paused' && result.failureCount > 0;\n return {\n entity,\n columns: entity.resultColumns,\n rows: result?.data?.rows ?? [],\n total: result?.data?.total ?? 0,\n isPending:\n !!result && result.fetchStatus === 'fetching' && result.isPending,\n isError: !!result?.isError || stalled\n };\n }),\n [activeEntities, results]\n );\n\n const anyPending = groups.some((g) => g.isPending);\n const isSettled = debouncedText === text;\n\n // Slow-backend cutoff: a request still in flight after `timeoutMs` is reported\n // so the surface can offer a retry. The query is left alone — if the answer\n // lands late it still renders, and nothing else on screen is affected.\n const [isTimedOut, setIsTimedOut] = useState(false);\n useEffect(() => {\n if (!timeoutMs || !anyPending) {\n setIsTimedOut(false);\n return undefined;\n }\n const id = setTimeout(() => setIsTimedOut(true), timeoutMs);\n return () => clearTimeout(id);\n }, [timeoutMs, anyPending, debouncedText, retryToken]);\n\n // isSettled guard: a stale (pre-debounce) result set must never auto-load.\n const withRows =\n isActive && !anyPending && isSettled\n ? groups.filter((g) => g.rows.length > 0)\n : [];\n const single =\n withRows.length === 1 && withRows[0].rows.length === 1 ? withRows[0] : null;\n const singleEntity = single?.entity;\n const singleRow = single?.rows[0];\n // Keyed on the hit itself, so a refetch that changes nothing never hands the\n // auto-load effects a \"new\" result to fire on.\n const singleResult = useMemo(\n () =>\n singleEntity && singleRow ? { entity: singleEntity, row: singleRow } : null,\n [singleEntity, singleRow]\n );\n\n return {\n groups,\n isPending: anyPending,\n isActive,\n isSettled,\n isTimedOut,\n singleResult\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAMoB,cAAc;AACpB,MAAMC,oBAAoB,KAAK;AAC/B,MAAMC,mBAAmB;;AAEzB,MAAaC,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;AAwCjC,MAAMK,sBAAsB;CAC1BC,OAAO;CACPC,aAAa;CACd;AA8CD,MAAMqB,SAASjB,aACbA,SAASkB,KAAKC,QAAQ,EAAE,GAAGA,IAAI,EAAE;;;;;;;AAQnC,MAAMC,mBACJjB,QACAkB,cACAC,kBACAC,WAAmBnC,kBACnBoC,aAAiC,EAAE,KACvB;CACZ,MAAM,EAAEC,sBAAsBC,uBAC5BnD,6BAA6B;EAC3BoD,iBAAiBxB,OAAOwB;EACxBC,uBAAuBP;EACvBQ,qBAAqBL;EACrBF;EACD,CAAC;CACJ,MAAMQ,SAASxD,gBACbmD,sBACA,GACAF,UACA,OACAlD,2BAA2B0D,KAC3BL,mBACD;AACD,KAAI,CAACI,OAAOE,cAAcC,UAAU9B,OAAOwB,gBAAgBK,cAAcC,OACvEH,QAAOE,gBAAgB7B,OAAOwB,gBAAgBK,cAAcd,KAAKgB,WAAW,EAC1E,GAAGA,OACJ,EAAE;AAEL,QAAOJ;;;;;;;;;;;;AAoBT,MAAaM,4BAA4B,OAAO,EAC9CC,UACAC,MACAf,WAAAA,IACAgB,kBAMmC;CACnC,MAAME,UAAUH,KAAKI,MAAM;AAC3B,KAAI,CAACD,QAAS,QAAO,EAAE;CACvB,MAAME,OAAON,SAAS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BD,QAAMvH;CAC3B,MAAAyH,YAAkBF,QAAMrH,KAAS;CAAC,IAAAwH;AAAA,KAAA5D,EAAA,QAAA0D,gBAAA1D,EAAA,QAAA2D,WAAA;AAK9BC,QAAAF,gBAAAC,YAAA;GAAAzH,QAAsCwH;GAAY3G,KAAO4G;GAAkB,GAA3E;AAA2E3D,IAAA,MAAA0D;AAAA1D,IAAA,MAAA2D;AAAA3D,IAAA,MAAA4D;OAAAA,OAAA5D,EAAA;CAF/E,MAAAlD,eAEI8G;CAEF,IAAAC;AAAA,KAAA7D,EAAA,QAAAiD,cAAAjD,EAAA,QAAAhE,UAAAgE,EAAA,QAAApD,YAAAoD,EAAA,QAAArD,aAAAqD,EAAA,QAAAnD,cAAAmD,EAAA,QAAAlD,cAAA;AAEK+G,QAAA;GAAA7H;GAAAQ,WAEMyG;GAAUrG;GAAAD;GAAAE;GAAAC;GAKtB;AAAAkD,IAAA,MAAAiD;AAAAjD,IAAA,MAAAhE;AAAAgE,IAAA,MAAApD;AAAAoD,IAAA,MAAArD;AAAAqD,IAAA,MAAAnD;AAAAmD,IAAA,MAAAlD;AAAAkD,IAAA,MAAA6D;OAAAA,OAAA7D,EAAA;AAAA,QAPM6D;;AAzJuB,SAAAb,MAAAc,GAAA;AAAA,QAwHQA,EAACtH;;AAxHT,SAAA+G,OAAAQ,KAAA;AAAA,QA2IHD,IAAC1H,KAAK4B,SAAU"}
|
|
1
|
+
{"version":3,"file":"useInquirySearch.mjs","names":["useEffect","useMemo","useState","skipToken","useQueries","useQuery","QueryClient","UseQueryResult","LogicalSearchOperatorEnums","getSearchObject","composeInstanceSearchFilters","executeSearchQuery","inquiryKeys","RecordRows","QueryFilterGroup","ResultColumn","SearchFilterElement","SearchableEntity","searchHashFor","shouldFireSearch","stampQuickSearchElements","DEBOUNCE_MS","RESULT_STALE_TIME","RESULT_PAGE_SIZE","SEARCH_TIMEOUT_MS","LOAD_DEBOUNCE_MS","LOAD_PAGE_SIZE","LOAD_MIN_CHARS","LOAD_DEFAULT_LIST_SIZE","SEARCH_FAILURE_MODE","retry","networkMode","const","AdvancedSearchState","entityKey","elements","groups","SearchResultGroup","entity","columns","rows","Array","Record","total","isPending","isError","InquirySearchResult","isSettled","isActive","isTimedOut","singleResult","row","clone","map","el","buildSearchBody","treeElements","isAdvancedSearch","pageSize","treeGroups","searchFilterElements","searchFilterGroups","instanceFilters","runtimeFilterElements","runtimeFilterGroups","search","And","orderElements","length","order","recordsQueryOptions","kind","retryToken","queryKey","records","entityName","key","queryFn","signal","AbortSignal","result","apiMethodId","stampRows","lookupsMap","staleTime","isOnWire","fetchStatus","OneShotSearchGroup","searchInquiryEntitiesOnce","entities","text","queryClient","Promise","trimmed","trim","runs","quickSearchTemplates","columnsByField","fetchQuery","settled","all","filter","group","queryInquiryEntityOnce","DefaultListing","useDefaultListing","$","_c","t0","t1","data","t2","t3","t4","searchSlices","results","failureCount","useInquirySearch","advanced","debounceMs","minChars","timeoutMs","undefined","debouncedText","setDebouncedText","t5","t6","id","setTimeout","clearTimeout","t7","isQuick","isAdvanced","t8","bb0","t9","t10","e","Symbol","for","activeEntities","fire","enabled","queries","combine","t11","t12","entity_0","index","stalled","resultColumns","some","_temp","anyPending","setIsTimedOut","t13","id_0","t14","t15","_temp2","withRows","single","singleEntity","singleRow","t16","t17","g","g_0"],"sources":["../../../../src/inquiry/v2/search/useInquirySearch.ts"],"sourcesContent":["/**\n * useInquirySearch — the search consumer's runtime: debounced, per-entity,\n * cancellable queries against the canonical `inquiryKeys.records` cache\n * (inquiry-v2-architecture.md §5). It stamps/derives requests through the pure\n * searchModel, merges the query's own saved filters in through\n * `composeInstanceSearchFilters` (the shared .js composer) + `getSearchObject`\n * to build the body exactly like the legacy container, and threads TanStack's\n * AbortSignal through `executeSearchQuery` so a superseded keystroke aborts.\n *\n * Owns exactly one piece of state: the debounced text. Everything else is\n * derived. Config is cached hard (searchable set); record results are fresh\n * (30 s staleTime) and keyed by a stable request hash.\n */\nimport { useEffect, useMemo, useState } from 'react';\nimport { skipToken, useQueries, useQuery } from '@tanstack/react-query';\nimport type { QueryClient, UseQueryResult } from '@tanstack/react-query';\nimport { LogicalSearchOperatorEnums } from '../../../enums/unitySystemEnums';\nimport { getSearchObject } from '../../../utilities/search/SearchUtilities';\nimport { composeInstanceSearchFilters } from '../api/instanceBodyModel';\nimport { executeSearchQuery, inquiryKeys } from '../api/queries';\nimport type { RecordRows } from '../api/queries';\nimport {\n QueryFilterGroup,\n ResultColumn,\n SearchFilterElement,\n SearchableEntity,\n searchHashFor,\n shouldFireSearch,\n stampQuickSearchElements\n} from './searchModel';\n\nconst DEBOUNCE_MS = 300;\nconst RESULT_STALE_TIME = 30 * 1000;\nconst RESULT_PAGE_SIZE = 25;\n/** Slow-backend cutoff for the + Load popover (find-and-load spec §6). */\nexport const SEARCH_TIMEOUT_MS = 12000;\n/** The popover's keystroke settling window (find-and-load spec §6). */\nexport const LOAD_DEBOUNCE_MS = 350;\n/** A typed search's first page; \"N more\" widens it a page at a time. */\nexport const LOAD_PAGE_SIZE = 10;\n/**\n * The + Load search floor: below this the surface lists rather than searching,\n * and no request is ever fired. Shared so an arriving `?searchValue` is measured\n * against exactly the floor the dialog it may hand over to uses.\n */\nexport const LOAD_MIN_CHARS = 1;\n/**\n * How many root records the finder lists before anything is typed. Served from\n * the root-record page the host already holds when it has one; otherwise the\n * finder fetches that page itself (useDefaultListing).\n */\nexport const LOAD_DEFAULT_LIST_SIZE = 20;\n\n/**\n * How a SEARCH is allowed to fail. Scoped to these queries — the app-wide\n * client (QueryProvider) keeps its own defaults for everything else.\n *\n * `retry: false` — a search is interactive: the user is watching a spinner and\n * cannot do anything until it resolves. The failures this surface actually sees\n * are deterministic backend rejections (executeQueryAdHoc answers 500 \"Error\n * executing query.\" for filters the generated SQL can't honor), which the same\n * request will produce again. Retrying buys nothing and costs the only thing\n * that matters here: time to an answer.\n *\n * `networkMode: 'always'` — with the default 'online' mode TanStack gates both\n * the START of a fetch and the resumption of a retry on `onlineManager` AND\n * `focusManager` (query-core 5.97 retryer.ts `canStart`/`canContinue`). A retry\n * whose delay elapses while `document.visibilityState === 'hidden'` is parked\n * as `fetchStatus: 'paused'` with no error and no timer — the query stays\n * `pending` forever, which is exactly the eternal spinner this surface showed.\n * Neither signal is evidence about whether THIS API will answer, so the search\n * always runs and always reports what happened.\n *\n * Together: one request, and within one round trip either rows or `isError`.\n */\nconst SEARCH_FAILURE_MODE = {\n retry: false,\n networkMode: 'always'\n} as const;\n\n/** An active advanced-search filter, scoped to one entity. */\nexport interface AdvancedSearchState {\n entityKey: string;\n elements: SearchFilterElement[];\n /**\n * The AND/OR groups the elements sit in, as the shared builder emitted them\n * (elements point at one by `groupId`). Omit for a flat set — the composer\n * then ANDs/ORs them under its own outer group as before.\n */\n groups?: QueryFilterGroup[];\n}\n\nexport interface SearchResultGroup {\n entity: SearchableEntity;\n columns: ResultColumn[];\n rows: Array<Record<string, unknown>>;\n total: number;\n isPending: boolean;\n isError: boolean;\n}\n\nexport interface InquirySearchResult {\n groups: SearchResultGroup[];\n isPending: boolean;\n /**\n * False while typed text hasn't debounced into the running queries yet —\n * consumers keep the pending treatment up instead of flashing stale\n * results/\"no matches\" for the previous text.\n */\n isSettled: boolean;\n /** True once a debounced query is in flight for a non-empty search. */\n isActive: boolean;\n /**\n * A request has been in flight past the caller's `timeoutMs`. Always false\n * when no timeout was asked for.\n */\n isTimedOut: boolean;\n /**\n * The one unambiguous hit (exactly one row across all groups) once every\n * query has settled — the surface auto-loads it (legacy single-result load).\n */\n singleResult: { entity: SearchableEntity; row: Record<string, unknown> } | null;\n}\n\nconst clone = (elements: SearchFilterElement[]): SearchFilterElement[] =>\n elements.map((el) => ({ ...el }));\n\n/**\n * Build the request body: the entity's saved query filters merged with the\n * typed/advanced elements through the shared composer. The saved body's\n * `orderElements` apply only when the runtime produced none of its own\n * (search elements carry no sortDirection today, so in practice they do apply).\n */\nconst buildSearchBody = (\n entity: SearchableEntity,\n treeElements: SearchFilterElement[],\n isAdvancedSearch: boolean,\n pageSize: number = RESULT_PAGE_SIZE,\n treeGroups: QueryFilterGroup[] = []\n): unknown => {\n const { searchFilterElements, searchFilterGroups } =\n composeInstanceSearchFilters({\n instanceFilters: entity.instanceFilters,\n runtimeFilterElements: treeElements,\n runtimeFilterGroups: treeGroups,\n isAdvancedSearch\n });\n const search = getSearchObject(\n searchFilterElements as never,\n 1,\n pageSize,\n false,\n LogicalSearchOperatorEnums.And,\n searchFilterGroups as never\n );\n if (!search.orderElements.length && entity.instanceFilters.orderElements.length) {\n search.orderElements = entity.instanceFilters.orderElements.map((order) => ({\n ...order\n }));\n }\n return search;\n};\n\n/**\n * THE records-search query — one key recipe (`searchHashFor` + page size +\n * retry token), one body (`buildSearchBody`), one stale time and failure mode\n * — so the hook, the one-shot reads and the default listing share cache\n * entries whenever they ask the same question.\n */\nconst recordsQueryOptions = (\n entity: SearchableEntity,\n {\n kind,\n elements,\n groups = [],\n pageSize,\n retryToken = 0\n }: {\n kind: 'quick' | 'advanced';\n elements: SearchFilterElement[];\n groups?: QueryFilterGroup[];\n pageSize: number;\n retryToken?: number;\n }\n) => ({\n queryKey: inquiryKeys.records(\n entity.entityName,\n `${searchHashFor(kind, entity.key, elements, groups)}:${pageSize}:${retryToken}`\n ),\n queryFn: async ({ signal }: { signal: AbortSignal }) => {\n const result = await executeSearchQuery(\n entity.apiMethodId,\n buildSearchBody(entity, elements, kind === 'advanced', pageSize, groups),\n signal\n );\n return entity.stampRows\n ? { ...result, rows: await entity.stampRows(result.rows, result.lookupsMap) }\n : result;\n },\n staleTime: RESULT_STALE_TIME,\n ...SEARCH_FAILURE_MODE\n});\n\n/**\n * Only a query actually ON THE WIRE is loading. TanStack's third fetchStatus,\n * 'paused', is a query it has parked: nothing is in flight and nothing is\n * scheduled, so reading it as pending is what turns a failed search into a\n * spinner that never ends.\n */\nconst isOnWire = (\n result: { fetchStatus: string; isPending: boolean } | undefined\n): boolean => !!result && result.fetchStatus === 'fetching' && result.isPending;\n\n/** One entity's slice of a one-shot search. */\nexport interface OneShotSearchGroup {\n entity: SearchableEntity;\n rows: Array<Record<string, unknown>>;\n total: number;\n}\n\n/**\n * The quick search WITHOUT the hook: same templates, same body composition\n * (`buildSearchBody`), same cache entry (`inquiryKeys.records` + `searchHashFor`)\n * — just run once, imperatively, for a caller that has no render loop to\n * debounce. The copilot's find tool is the caller; going through the query cache\n * means its searches dedup with, and warm, the ones the UI fires.\n *\n * Entities whose stamped elements fail `shouldFireSearch` are skipped, exactly\n * as the hook's `enabled` flag skips them.\n */\nexport const searchInquiryEntitiesOnce = async ({\n entities,\n text,\n pageSize = LOAD_PAGE_SIZE,\n queryClient\n}: {\n entities: SearchableEntity[];\n text: string;\n pageSize?: number;\n queryClient: QueryClient;\n}): Promise<OneShotSearchGroup[]> => {\n const trimmed = text.trim();\n if (!trimmed) return [];\n const runs = entities.map(async (entity) => {\n const treeElements = stampQuickSearchElements(\n entity.quickSearchTemplates,\n trimmed\n );\n if (!shouldFireSearch(treeElements, entity.columnsByField)) return null;\n const result = await queryClient.fetchQuery(\n recordsQueryOptions(entity, { kind: 'quick', elements: treeElements, pageSize })\n );\n return { entity, rows: result.rows, total: result.total };\n });\n const settled = await Promise.all(runs);\n return settled.filter((group): group is OneShotSearchGroup => !!group);\n};\n\n/**\n * ONE entity, an explicit filter-element set, run once — the advanced search\n * WITHOUT the hook. Same body composition (`buildSearchBody`, so the Data\n * Builder query's own saved filters are merged in), same cache entry as the\n * advanced search the drawer runs, so the copilot's read and the UI's search\n * are one request when they ask the same question.\n *\n * The copilot's `query_records` is the caller: it answers a data question, so\n * it needs the rows rather than a rendered panel.\n */\nexport const queryInquiryEntityOnce = async ({\n entity,\n elements,\n pageSize = LOAD_PAGE_SIZE,\n queryClient\n}: {\n entity: SearchableEntity;\n elements: SearchFilterElement[];\n pageSize?: number;\n queryClient: QueryClient;\n}): Promise<OneShotSearchGroup> => {\n const result = await queryClient.fetchQuery(\n recordsQueryOptions(entity, {\n kind: 'advanced',\n elements: clone(elements),\n pageSize\n })\n );\n return { entity, rows: result.rows, total: result.total };\n};\n\n/** The first root records a finder lists before anything is typed. */\nexport interface DefaultListing {\n rows: Array<Record<string, unknown>>;\n total: number;\n isPending: boolean;\n isError: boolean;\n}\n\n/**\n * The before-you-type listing for a host that holds no root page — an\n * explore-first tree opens with an empty tree pane, so there is nothing to\n * list unless the finder asks. One unfiltered page of the entity, through the\n * same body composition (the query's own saved filters still apply) and the\n * same cache and failure mode as a search. `entity` null = the host supplied\n * its rows; nothing is fetched.\n */\nexport const useDefaultListing = (\n entity: SearchableEntity | null\n): DefaultListing => {\n const result = useQuery(\n entity\n ? recordsQueryOptions(entity, {\n kind: 'quick',\n elements: [],\n pageSize: LOAD_DEFAULT_LIST_SIZE\n })\n : { queryKey: inquiryKeys.records('', ''), queryFn: skipToken }\n );\n return {\n rows: result.data?.rows ?? [],\n total: result.data?.total ?? 0,\n isPending: isOnWire(result),\n isError: result.isError\n };\n};\n\n/**\n * useQueries' `combine`: only what the groups read, structurally shared by\n * TanStack — so the result keeps its identity until a query actually changes.\n * Module-level so its identity is stable too.\n */\nconst searchSlices = (results: Array<UseQueryResult<RecordRows>>) =>\n results.map((result) => ({\n data: result.data,\n fetchStatus: result.fetchStatus,\n isPending: result.isPending,\n isError: result.isError,\n failureCount: result.failureCount\n }));\n\nexport const useInquirySearch = ({\n entities,\n text,\n advanced,\n debounceMs = DEBOUNCE_MS,\n minChars = 1,\n pageSize = RESULT_PAGE_SIZE,\n timeoutMs,\n retryToken = 0\n}: {\n entities: SearchableEntity[];\n text: string;\n advanced?: AdvancedSearchState | null;\n /** Keystroke settling window. */\n debounceMs?: number;\n /** Shortest text worth a request (the + Load popover asks for 2). */\n minChars?: number;\n /**\n * Rows requested per entity. The + Load popover starts at 10 and grows the\n * page when the user asks for more, so paging is one widening request against\n * the same cache key rather than a client-side accumulator.\n */\n pageSize?: number;\n /**\n * Report `isTimedOut` once a query has been in flight this long. Nothing is\n * cancelled — the surface offers a retry and the answer still lands if it\n * arrives. Omit to never report a timeout.\n */\n timeoutMs?: number;\n /**\n * Bump to re-enter the query under a fresh cache key — the \"Try again\" a\n * timed-out search offers. Any value change re-runs the request.\n */\n retryToken?: number;\n}): InquirySearchResult => {\n const [debouncedText, setDebouncedText] = useState(text);\n useEffect(() => {\n const id = setTimeout(() => setDebouncedText(text), debounceMs);\n return () => clearTimeout(id);\n }, [text, debounceMs]);\n\n const trimmed = debouncedText.trim();\n const isQuick = trimmed.length >= minChars && trimmed.length > 0 && !advanced;\n const isAdvanced = !!advanced;\n const isActive = isQuick || isAdvanced;\n\n // The entities actually searched: all searchable ones for quick, only the\n // advanced target for advanced (searchConfiguration is root-only).\n const activeEntities = useMemo(() => {\n if (isAdvanced) {\n return entities.filter((e) => e.key === advanced?.entityKey);\n }\n if (isQuick) return entities;\n return [];\n }, [entities, isQuick, isAdvanced, advanced]);\n\n const queries = useMemo(\n () =>\n activeEntities.map((entity) => {\n const treeElements = advanced\n ? clone(advanced.elements)\n : stampQuickSearchElements(entity.quickSearchTemplates, debouncedText);\n const fire = isAdvanced\n ? treeElements.length > 0\n : shouldFireSearch(treeElements, entity.columnsByField);\n return {\n ...recordsQueryOptions(entity, {\n kind: isAdvanced ? 'advanced' : 'quick',\n elements: treeElements,\n groups: advanced?.groups ?? [],\n pageSize,\n retryToken\n }),\n enabled: fire\n };\n }),\n [activeEntities, debouncedText, isAdvanced, advanced, pageSize, retryToken]\n );\n\n const results = useQueries({ queries, combine: searchSlices });\n\n const groups = useMemo<SearchResultGroup[]>(\n () =>\n activeEntities.map((entity, index) => {\n const result = results[index];\n // Parked (isOnWire) after an attempt has already failed, the search\n // HAS failed — say so.\n const stalled =\n result?.fetchStatus === 'paused' && result.failureCount > 0;\n return {\n entity,\n columns: entity.resultColumns,\n rows: result?.data?.rows ?? [],\n total: result?.data?.total ?? 0,\n isPending: isOnWire(result),\n isError: !!result?.isError || stalled\n };\n }),\n [activeEntities, results]\n );\n\n const anyPending = groups.some((g) => g.isPending);\n const isSettled = debouncedText === text;\n\n // Slow-backend cutoff: a request still in flight after `timeoutMs` is reported\n // so the surface can offer a retry. The query is left alone — if the answer\n // lands late it still renders, and nothing else on screen is affected.\n const [isTimedOut, setIsTimedOut] = useState(false);\n useEffect(() => {\n if (!timeoutMs || !anyPending) {\n setIsTimedOut(false);\n return undefined;\n }\n const id = setTimeout(() => setIsTimedOut(true), timeoutMs);\n return () => clearTimeout(id);\n }, [timeoutMs, anyPending, debouncedText, retryToken]);\n\n // isSettled guard: a stale (pre-debounce) result set must never auto-load.\n const withRows =\n isActive && !anyPending && isSettled\n ? groups.filter((g) => g.rows.length > 0)\n : [];\n const single =\n withRows.length === 1 && withRows[0].rows.length === 1 ? withRows[0] : null;\n const singleEntity = single?.entity;\n const singleRow = single?.rows[0];\n // Keyed on the hit itself, so a refetch that changes nothing never hands the\n // auto-load effects a \"new\" result to fire on.\n const singleResult = useMemo(\n () =>\n singleEntity && singleRow ? { entity: singleEntity, row: singleRow } : null,\n [singleEntity, singleRow]\n );\n\n return {\n groups,\n isPending: anyPending,\n isActive,\n isSettled,\n isTimedOut,\n singleResult\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAMqB,cAAc;AACpB,MAAMC,oBAAoB,KAAK;AAC/B,MAAMC,mBAAmB;;AAEzB,MAAaC,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;AAwCjC,MAAMK,sBAAsB;CAC1BC,OAAO;CACPC,aAAa;CACd;AA8CD,MAAMqB,SAASjB,aACbA,SAASkB,KAAKC,QAAQ,EAAE,GAAGA,IAAI,EAAE;;;;;;;AAQnC,MAAMC,mBACJjB,QACAkB,cACAC,kBACAC,WAAmBnC,kBACnBoC,aAAiC,EAAE,KACvB;CACZ,MAAM,EAAEC,sBAAsBC,uBAC5BnD,6BAA6B;EAC3BoD,iBAAiBxB,OAAOwB;EACxBC,uBAAuBP;EACvBQ,qBAAqBL;EACrBF;EACD,CAAC;CACJ,MAAMQ,SAASxD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C,EAAA,QAAAtE,UAAAsE,EAAA,QAAA1D,YAAA0D,EAAA,QAAA3D,aAAA2D,EAAA,QAAAzD,cAAAyD,EAAA,QAAAxD,cAAA;AAEKmH,QAAA;GAAAjI;GAAAQ,WAEM6G;GAAUzG;GAAAD;GAAAE;GAAAC;GAKtB;AAAAwD,IAAA,MAAA+C;AAAA/C,IAAA,MAAAtE;AAAAsE,IAAA,MAAA1D;AAAA0D,IAAA,MAAA3D;AAAA2D,IAAA,MAAAzD;AAAAyD,IAAA,MAAAxD;AAAAwD,IAAA,MAAA2D;OAAAA,OAAA3D,EAAA;AAAA,QAPM2D;;AAtIuB,SAAAb,MAAAc,GAAA;AAAA,QAqGQA,EAAC1H;;AArGT,SAAAmH,OAAAQ,KAAA;AAAA,QAwHHD,IAAC9H,KAAK4B,SAAU"}
|
|
@@ -11,7 +11,7 @@ import React from 'react';
|
|
|
11
11
|
* across display-tree rebuilds.
|
|
12
12
|
*
|
|
13
13
|
* Drag-to-Execute-API is carried over on UdpTree's drag-source API: rows
|
|
14
|
-
* flagged
|
|
14
|
+
* flagged draggable drag with their entity as the tag; target rows accept
|
|
15
15
|
* the dragEntityNames of their On_Node_Drop nodeActions (the legacy
|
|
16
16
|
* checkCanDrop gate); the drop calls onDropNode(source, target, sourceMenuIdx,
|
|
17
17
|
* targetMenuIdx) with cross-menu drags tracked through NodeList's
|
|
@@ -33,6 +33,9 @@ import React from 'react';
|
|
|
33
33
|
* hover-revealed ✕ on depth-0 record rows through udp-tree's itemActions, so the
|
|
34
34
|
* destructive verb sits on its target instead of in the toolbar.
|
|
35
35
|
*
|
|
36
|
+
* `rootMore` ({ label, loading, onShowMore }) is the owner's root paging: when
|
|
37
|
+
* set, the menu ends with a "Show more" row for the root level.
|
|
38
|
+
*
|
|
36
39
|
* Not carried over (documented deltas): the hidden-selected-node right-border
|
|
37
40
|
* indicator and collapsed-sidebar label tooltips.
|
|
38
41
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InquiryFluentTreeMenu.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/InquiryFluentTreeMenu.jsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"InquiryFluentTreeMenu.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/InquiryFluentTreeMenu.jsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAkJjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,qBAAqB,mCAogBjC,CAAC"}
|