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
|
@@ -14,9 +14,10 @@ import { UdpListItem } from "../../../UI/fluent-web-components/UdpListItem.mjs";
|
|
|
14
14
|
import { buildAdvancedSearchSchema, mapAdvancedSearch, resolveRowLabel, summarizeAdvancedSearch } from "./searchModel.mjs";
|
|
15
15
|
import { SEARCH_TIMEOUT_MS, useDefaultListing, useInquirySearch } from "./useInquirySearch.mjs";
|
|
16
16
|
import { highlightRanges } from "../tree/treeFilterModel.mjs";
|
|
17
|
-
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
17
|
+
import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
18
18
|
import { useTranslation } from "react-i18next";
|
|
19
19
|
import styles from "./RecordFinder.module.css";
|
|
20
|
+
import rowStyles from "../widgets/listRow.module.css";
|
|
20
21
|
//#region src/inquiry/v2/search/RecordFinder.tsx
|
|
21
22
|
/**
|
|
22
23
|
* RecordFinder — THE find-a-record mechanism, shared by every shell that loads
|
|
@@ -88,7 +89,7 @@ const MarkedLabel = (t0) => {
|
|
|
88
89
|
if (t2 !== Symbol.for("react.early_return_sentinel")) return t2;
|
|
89
90
|
return t1;
|
|
90
91
|
};
|
|
91
|
-
const RecordFinder = ({ entities, initialText = "", defaultRows, defaultTotal = 0, defaultEntity, loadedKeys = EMPTY_KEYS, catalogObjects, autofocus = false, onChoose, onChooseMany }) => {
|
|
92
|
+
const RecordFinder = forwardRef(({ entities, initialText = "", defaultRows, defaultTotal = 0, defaultEntity, loadedKeys = EMPTY_KEYS, catalogObjects, autofocus = false, onChoose, onChooseMany, onSelectedCountChange, defaultListing = true, renderLayout }, ref) => {
|
|
92
93
|
const { t } = useTranslation();
|
|
93
94
|
const [query, setQuery] = useState({
|
|
94
95
|
text: initialText,
|
|
@@ -125,7 +126,7 @@ const RecordFinder = ({ entities, initialText = "", defaultRows, defaultTotal =
|
|
|
125
126
|
const trimmed = text.trim();
|
|
126
127
|
/** Below the search floor with no filter applied, the finder lists. */
|
|
127
128
|
const listing = !advanced && trimmed.length < 1;
|
|
128
|
-
const fetched = useDefaultListing(defaultRows ? null : advancedTarget);
|
|
129
|
+
const fetched = useDefaultListing(defaultRows || !defaultListing ? null : advancedTarget);
|
|
129
130
|
const listingRows = defaultRows ?? fetched.rows;
|
|
130
131
|
const listingTotal = defaultRows ? defaultTotal : fetched.total;
|
|
131
132
|
const listingEntity = defaultRows ? defaultEntity : advancedTarget;
|
|
@@ -138,12 +139,13 @@ const RecordFinder = ({ entities, initialText = "", defaultRows, defaultTotal =
|
|
|
138
139
|
alreadyLoaded: loadedKeys.has(row.businessObjectKey)
|
|
139
140
|
});
|
|
140
141
|
if (listing) {
|
|
141
|
-
if (!listingEntity) return [];
|
|
142
|
+
if (!defaultListing || !listingEntity) return [];
|
|
142
143
|
return listingRows.slice(0, 20).map((row, index) => toOption(listingEntity, row, `default-${index}`));
|
|
143
144
|
}
|
|
144
145
|
return groups.flatMap((group) => group.rows.map((row, index) => toOption(group.entity, row, `${group.entity.key}-${index}`)));
|
|
145
146
|
}, [
|
|
146
147
|
listing,
|
|
148
|
+
defaultListing,
|
|
147
149
|
listingRows,
|
|
148
150
|
listingEntity,
|
|
149
151
|
groups,
|
|
@@ -251,7 +253,15 @@ const RecordFinder = ({ entities, initialText = "", defaultRows, defaultTotal =
|
|
|
251
253
|
else selectedOptions.forEach((option) => onChoose(option.entity, option.row));
|
|
252
254
|
setSelectedIds(/* @__PURE__ */ new Set());
|
|
253
255
|
};
|
|
254
|
-
|
|
256
|
+
useImperativeHandle(ref, () => ({ loadSelected: handleLoadSelected }));
|
|
257
|
+
useEffect(() => {
|
|
258
|
+
onSelectedCountChange?.(selectedOptions.length);
|
|
259
|
+
}, [onSelectedCountChange, selectedOptions.length]);
|
|
260
|
+
const hosted = !!renderLayout;
|
|
261
|
+
let resultsClass = styles.results;
|
|
262
|
+
if (hosted) resultsClass += ` ${rowStyles.bleed}`;
|
|
263
|
+
else if (!listing || options.length > 0) resultsClass += ` ${styles.resultsEngaged}`;
|
|
264
|
+
const search = /* @__PURE__ */ React.createElement("div", {
|
|
255
265
|
role: "combobox",
|
|
256
266
|
"aria-expanded": options.length > 0,
|
|
257
267
|
"aria-haspopup": "listbox",
|
|
@@ -271,7 +281,8 @@ const RecordFinder = ({ entities, initialText = "", defaultRows, defaultTotal =
|
|
|
271
281
|
appearance: "subtle",
|
|
272
282
|
size: "small",
|
|
273
283
|
onClick: () => setAdvancedOpen(true)
|
|
274
|
-
}, t("inquiry.search.advanced", { defaultValue: "Advanced search" })))
|
|
284
|
+
}, t("inquiry.search.advanced", { defaultValue: "Advanced search" })));
|
|
285
|
+
const results = /* @__PURE__ */ React.createElement(React.Fragment, null, advanced && /* @__PURE__ */ React.createElement(UdpFlexbox, {
|
|
275
286
|
direction: "row",
|
|
276
287
|
gap: "xs",
|
|
277
288
|
align: "center",
|
|
@@ -285,7 +296,7 @@ const RecordFinder = ({ entities, initialText = "", defaultRows, defaultTotal =
|
|
|
285
296
|
iconName: "dismiss",
|
|
286
297
|
ariaLabel: t("inquiry.search.clearAdvanced", { defaultValue: "Clear advanced filter" }),
|
|
287
298
|
onClick: clearAdvanced
|
|
288
|
-
})), /* @__PURE__ */ React.createElement("div", { className:
|
|
299
|
+
})), /* @__PURE__ */ React.createElement("div", { className: resultsClass }, (listing ? fetched.isPending : isPending && !isTimedOut) && /* @__PURE__ */ React.createElement("div", { className: styles.note }, /* @__PURE__ */ React.createElement(UdpSpinner, { size: "tiny" })), (listing ? fetched.isError : hasError) && /* @__PURE__ */ React.createElement(UdpMessageBar, {
|
|
289
300
|
intent: "error",
|
|
290
301
|
layout: "multiline"
|
|
291
302
|
}, t("inquiry.search.failed", { defaultValue: "This search could not be run. Try searching on different fields." })), !listing && isTimedOut && /* @__PURE__ */ React.createElement("div", { className: styles.note }, /* @__PURE__ */ React.createElement(UdpText, {
|
|
@@ -304,6 +315,7 @@ const RecordFinder = ({ entities, initialText = "", defaultRows, defaultTotal =
|
|
|
304
315
|
text: trimmed
|
|
305
316
|
})), listing && options.length > 0 && /* @__PURE__ */ React.createElement(FinderList, {
|
|
306
317
|
options,
|
|
318
|
+
flush: hosted,
|
|
307
319
|
activeId: active?.domId,
|
|
308
320
|
term: "",
|
|
309
321
|
selectedIds,
|
|
@@ -323,6 +335,7 @@ const RecordFinder = ({ entities, initialText = "", defaultRows, defaultTotal =
|
|
|
323
335
|
count: group.total
|
|
324
336
|
}))), /* @__PURE__ */ React.createElement(FinderList, {
|
|
325
337
|
options: groupOptions,
|
|
338
|
+
flush: hosted,
|
|
326
339
|
activeId: active?.domId,
|
|
327
340
|
term: advanced ? "" : trimmed,
|
|
328
341
|
selectedIds,
|
|
@@ -348,26 +361,35 @@ const RecordFinder = ({ entities, initialText = "", defaultRows, defaultTotal =
|
|
|
348
361
|
}, t("inquiry.load.more", {
|
|
349
362
|
defaultValue: "{{remaining}} more",
|
|
350
363
|
remaining: moreCount
|
|
351
|
-
})))
|
|
364
|
+
}))));
|
|
365
|
+
const actions = selectableOptions.length > 0 && /* @__PURE__ */ React.createElement(UdpFlexbox, {
|
|
352
366
|
direction: "row",
|
|
353
367
|
gap: "sm",
|
|
354
368
|
align: "center",
|
|
355
369
|
wrap: "nowrap"
|
|
356
|
-
},
|
|
370
|
+
}, !onSelectedCountChange && /* @__PURE__ */ React.createElement(UdpButton, {
|
|
357
371
|
appearance: "primary",
|
|
358
372
|
size: "small",
|
|
373
|
+
disabled: selectedOptions.length === 0,
|
|
359
374
|
onClick: handleLoadSelected
|
|
360
375
|
}, t("inquiry.load.loadSelected", {
|
|
361
376
|
defaultValue: "Load selected ({{count}})",
|
|
362
377
|
count: selectedOptions.length
|
|
363
|
-
})),
|
|
378
|
+
})), /* @__PURE__ */ React.createElement(UdpButton, {
|
|
364
379
|
appearance: "subtle",
|
|
365
380
|
size: "small",
|
|
381
|
+
disabled: selectedOptions.length === selectableOptions.length,
|
|
366
382
|
onClick: handleSelectAll
|
|
367
383
|
}, t("inquiry.load.selectAll", {
|
|
368
384
|
defaultValue: "Select all ({{count}})",
|
|
369
385
|
count: selectableOptions.length
|
|
370
|
-
})))
|
|
386
|
+
})));
|
|
387
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, renderLayout ? renderLayout({
|
|
388
|
+
search,
|
|
389
|
+
results,
|
|
390
|
+
actions,
|
|
391
|
+
idle: listing
|
|
392
|
+
}) : /* @__PURE__ */ React.createElement("div", { className: styles.root }, search, results, actions), /* @__PURE__ */ React.createElement(UdpDrawer, {
|
|
371
393
|
open: advancedOpen,
|
|
372
394
|
position: "end",
|
|
373
395
|
size: "large",
|
|
@@ -403,39 +425,41 @@ const RecordFinder = ({ entities, initialText = "", defaultRows, defaultTotal =
|
|
|
403
425
|
appearance: "subtle",
|
|
404
426
|
onClick: () => void builderRef.current?.clearFilters()
|
|
405
427
|
}, t("common.clear", { defaultValue: "Clear" }))))));
|
|
406
|
-
};
|
|
428
|
+
});
|
|
429
|
+
RecordFinder.displayName = "RecordFinder";
|
|
407
430
|
/** A run of result rows. Rows ACTIVATE (click / ↵ loads that one record) —
|
|
408
431
|
* the checkbox is the secondary action, feeding the shared "Load selected"
|
|
409
432
|
* bar. The ↑↓ cursor is a visual hint plus aria-activedescendant, not a
|
|
410
433
|
* selection. */
|
|
411
434
|
const FinderList = (t0) => {
|
|
412
|
-
const $ = c(
|
|
413
|
-
const { options, activeId, term, selectedIds, alreadyLoadedLabel, onChoose, onSelectionChange } = t0;
|
|
414
|
-
|
|
435
|
+
const $ = c(24);
|
|
436
|
+
const { options, flush, activeId, term, selectedIds, alreadyLoadedLabel, onChoose, onSelectionChange } = t0;
|
|
437
|
+
const t1 = flush ? rowStyles.flush : void 0;
|
|
438
|
+
let t2;
|
|
415
439
|
if ($[0] !== options || $[1] !== selectedIds) {
|
|
416
|
-
let
|
|
440
|
+
let t3;
|
|
417
441
|
if ($[3] !== selectedIds) {
|
|
418
|
-
|
|
442
|
+
t3 = (option) => selectedIds.has(option.domId);
|
|
419
443
|
$[3] = selectedIds;
|
|
420
|
-
$[4] =
|
|
421
|
-
} else
|
|
422
|
-
|
|
444
|
+
$[4] = t3;
|
|
445
|
+
} else t3 = $[4];
|
|
446
|
+
t2 = options.filter(t3).map(_temp);
|
|
423
447
|
$[0] = options;
|
|
424
448
|
$[1] = selectedIds;
|
|
425
|
-
$[2] =
|
|
426
|
-
} else
|
|
427
|
-
let
|
|
449
|
+
$[2] = t2;
|
|
450
|
+
} else t2 = $[2];
|
|
451
|
+
let t3;
|
|
428
452
|
if ($[5] !== onSelectionChange || $[6] !== options) {
|
|
429
|
-
|
|
453
|
+
t3 = (event) => onSelectionChange(options, event.detail.selectedItems);
|
|
430
454
|
$[5] = onSelectionChange;
|
|
431
455
|
$[6] = options;
|
|
432
|
-
$[7] =
|
|
433
|
-
} else
|
|
434
|
-
let
|
|
456
|
+
$[7] = t3;
|
|
457
|
+
} else t3 = $[7];
|
|
458
|
+
let t4;
|
|
435
459
|
if ($[8] !== activeId || $[9] !== alreadyLoadedLabel || $[10] !== onChoose || $[11] !== options || $[12] !== term) {
|
|
436
|
-
let
|
|
460
|
+
let t5;
|
|
437
461
|
if ($[14] !== activeId || $[15] !== alreadyLoadedLabel || $[16] !== onChoose || $[17] !== term) {
|
|
438
|
-
|
|
462
|
+
t5 = (option_1) => /* @__PURE__ */ React.createElement(UdpListItem, {
|
|
439
463
|
key: option_1.domId,
|
|
440
464
|
id: option_1.domId,
|
|
441
465
|
value: option_1.domId,
|
|
@@ -454,31 +478,33 @@ const FinderList = (t0) => {
|
|
|
454
478
|
$[15] = alreadyLoadedLabel;
|
|
455
479
|
$[16] = onChoose;
|
|
456
480
|
$[17] = term;
|
|
457
|
-
$[18] =
|
|
458
|
-
} else
|
|
459
|
-
|
|
481
|
+
$[18] = t5;
|
|
482
|
+
} else t5 = $[18];
|
|
483
|
+
t4 = options.map(t5);
|
|
460
484
|
$[8] = activeId;
|
|
461
485
|
$[9] = alreadyLoadedLabel;
|
|
462
486
|
$[10] = onChoose;
|
|
463
487
|
$[11] = options;
|
|
464
488
|
$[12] = term;
|
|
465
|
-
$[13] =
|
|
466
|
-
} else
|
|
467
|
-
let
|
|
468
|
-
if ($[19] !== t1 || $[20] !== t2 || $[21] !== t3) {
|
|
469
|
-
|
|
489
|
+
$[13] = t4;
|
|
490
|
+
} else t4 = $[13];
|
|
491
|
+
let t5;
|
|
492
|
+
if ($[19] !== t1 || $[20] !== t2 || $[21] !== t3 || $[22] !== t4) {
|
|
493
|
+
t5 = /* @__PURE__ */ React.createElement(UdpList, {
|
|
494
|
+
className: t1,
|
|
470
495
|
interactive: true,
|
|
471
496
|
selectionMode: "multiselect",
|
|
472
497
|
selectionAsSecondaryAction: true,
|
|
473
|
-
selectedItems:
|
|
474
|
-
onListSelectionChange:
|
|
475
|
-
},
|
|
498
|
+
selectedItems: t2,
|
|
499
|
+
onListSelectionChange: t3
|
|
500
|
+
}, t4);
|
|
476
501
|
$[19] = t1;
|
|
477
502
|
$[20] = t2;
|
|
478
503
|
$[21] = t3;
|
|
479
504
|
$[22] = t4;
|
|
480
|
-
|
|
481
|
-
|
|
505
|
+
$[23] = t5;
|
|
506
|
+
} else t5 = $[23];
|
|
507
|
+
return t5;
|
|
482
508
|
};
|
|
483
509
|
function _temp(option_0) {
|
|
484
510
|
return option_0.domId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecordFinder.mjs","names":["React","useCallback","useEffect","useMemo","useRef","useState","useTranslation","UdpAdvancedSearchBuilder","UdpBadge","UdpButton","UdpDrawer","UdpFlexbox","UdpIconButton","UdpList","UdpListItem","UdpMessageBar","UdpSearchInput","UdpSpinner","UdpText","highlightRanges","CatalogObject","buildAdvancedSearchSchema","mapAdvancedSearch","resolveRowLabel","summarizeAdvancedSearch","AdvancedSearchWire","SearchableEntity","LOAD_DEBOUNCE_MS","LOAD_DEFAULT_LIST_SIZE","LOAD_MIN_CHARS","LOAD_PAGE_SIZE","SEARCH_TIMEOUT_MS","useDefaultListing","useInquirySearch","AdvancedSearchState","styles","RecordFinderProps","entities","initialText","defaultRows","Array","Record","defaultTotal","defaultEntity","loadedKeys","Set","catalogObjects","autofocus","onChoose","entity","row","onChooseMany","picks","ResultOption","domId","label","alreadyLoaded","AdvancedBuilderHandle","HTMLElement","submitSearch","Promise","clearFilters","EMPTY_KEYS","MarkedLabel","t0","$","_c","term","t1","t2","Symbol","for","bb0","ranges","length","t3","parts","cursor","forEach","index","start","end","push","slice","mark","RecordFinder","t","query","setQuery","text","pages","activeIndex","retryToken","setRetryToken","selectedIds","setSelectedIds","ReadonlySet","advanced","setAdvanced","advancedWire","setAdvancedWire","advancedOpen","setAdvancedOpen","advancedValid","setAdvancedValid","builderRef","advancedTarget","find","isRoot","advancedSchema","entityName","catalogObjectList","groups","isPending","isActive","isSettled","isTimedOut","singleResult","debounceMs","minChars","pageSize","timeoutMs","trimmed","trim","listing","fetched","listingRows","rows","listingTotal","total","listingEntity","options","toOption","key","has","businessObjectKey","map","flatMap","group","active","Math","min","entityNoun","moreCount","reduce","sum","max","hasError","some","isError","showEmpty","listingTruncated","groupsWithRows","filter","showGroupLabels","choose","option","handleKeyDown","event","KeyboardEvent","preventDefault","previous","handleTextChange","value","handleFilterSave","detail","elements","filterGroups","entityKey","clearAdvanced","selectableOptions","selectedOptions","handleSelectionChange","listOptions","listSelected","next","delete","add","String","handleSelectAll","handleLoadSelected","root","searchRow","defaultValue","target","results","resultsEngaged","note","token","groupOptions","groupLabel","displayName","count","shown","remaining","isValid","resizable","collapsible","showFieldPicker","fieldPickerView","showFooter","height","current","FinderList","activeId","alreadyLoadedLabel","onSelectionChange","_temp","selectedItems","t4","option_1","activeOption","undefined","option_0"],"sources":["../../../../src/inquiry/v2/search/RecordFinder.tsx"],"sourcesContent":["/**\n * RecordFinder — THE find-a-record mechanism, shared by every shell that loads\n * a record into an inquiry tree. The + Load dialog and the explore page's\n * \"Find records\" card both render this; only their frames differ, so searching\n * feels identical wherever it starts (finder-unification, 2026-08-27).\n *\n * What it is: the Load dialog's proven body — quick search through\n * `useInquirySearch` (350ms debounce, 2-char floor, timeout + retry), the flat\n * result list with match highlighting and \"already loaded\" awareness, the\n * before-you-type listing of the first root records — plus the\n * advanced search the dialog never had: a drawer hosting the shared\n * `UdpAdvancedSearchBuilder` with the schema field-picker tree, scoped to the\n * root entity exactly as `InquirySearchPanel` scopes it.\n *\n * Quick and advanced are MODES, not layers: `useInquirySearch` runs the\n * advanced filter against its one target entity and ignores quick text while\n * one is applied, so the UI says the same — applying a filter clears the text\n * and shows one summary chip; typing again clears the filter. One search is\n * always exactly one thing.\n *\n * Multi-entity results read as ONE flat list under bolded entity labels with\n * their match counts — the flat-list grammar the field picker set — rather\n * than tabs.\n */\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { UdpAdvancedSearchBuilder } from '../../../UI/fluent-web-components/UdpAdvancedSearchBuilder';\nimport { UdpBadge } from '../../../UI/fluent-web-components/UdpBadge';\nimport { UdpButton } from '../../../UI/fluent-web-components/UdpButton';\nimport { UdpDrawer } from '../../../UI/fluent-web-components/UdpDrawer';\nimport { UdpFlexbox } from '../../../UI/fluent-web-components/UdpFlexbox';\nimport { UdpIconButton } from '../../../UI/fluent-web-components/UdpIconButton';\nimport { UdpList } from '../../../UI/fluent-web-components/UdpList';\nimport { UdpListItem } from '../../../UI/fluent-web-components/UdpListItem';\nimport { UdpMessageBar } from '../../../UI/fluent-web-components/UdpMessageBar';\nimport { UdpSearchInput } from '../../../UI/fluent-web-components/UdpSearchInput';\nimport { UdpSpinner } from '../../../UI/fluent-web-components/UdpSpinner';\nimport { UdpText } from '../../../UI/fluent-web-components/UdpText';\nimport { highlightRanges } from '../tree/treeFilterModel';\nimport type { CatalogObject } from '../../../domain/inquiryTree';\nimport {\n buildAdvancedSearchSchema,\n mapAdvancedSearch,\n resolveRowLabel,\n summarizeAdvancedSearch,\n type AdvancedSearchWire,\n type SearchableEntity\n} from './searchModel';\nimport {\n LOAD_DEBOUNCE_MS,\n LOAD_DEFAULT_LIST_SIZE,\n LOAD_MIN_CHARS,\n LOAD_PAGE_SIZE,\n SEARCH_TIMEOUT_MS,\n useDefaultListing,\n useInquirySearch,\n type AdvancedSearchState\n} from './useInquirySearch';\nimport styles from './RecordFinder.module.css';\n\nexport interface RecordFinderProps {\n /** The searchable set derived from the tree (root + primary-search entities). */\n entities: SearchableEntity[];\n /** Pre-filled term — the tree filter's zero-match bridge hands its query over. */\n initialText?: string;\n /**\n * The root-record page the host already holds — listed before anything is\n * typed, never refetched here. Omit (an explore-first arrival holds none)\n * and the finder fetches the first page of the root entity itself, so\n * there is always something to look at before typing.\n */\n defaultRows?: Array<Record<string, unknown>>;\n /** How many root records exist in total, for the \"first N of M\" line. */\n defaultTotal?: number;\n /** The entity those rows belong to (the tree's root entity). */\n defaultEntity?: SearchableEntity | null;\n /** Business-object keys already loaded as roots, so results can say so. */\n loadedKeys?: Set<unknown>;\n /**\n * The tree's API catalog. When present, advanced search offers the entity's\n * FULL field tree (fields + associations) through the builder's schema\n * picker; without it, the drawer falls back to the fields the tree's\n * `searchConfiguration` curates — the legacy advanced form's set.\n */\n catalogObjects?: CatalogObject[] | null;\n /** Focus the search input on mount (dialogs want this; cards don't). */\n autofocus?: boolean;\n /** Load the chosen row (already-loaded rows select instead of duplicating). */\n onChoose: (entity: SearchableEntity, row: Record<string, unknown>) => void;\n /**\n * Load the TICKED rows as one batch. Hosts that can load in bulk (one\n * OR'd fetch, one history write) supply this; without it \"Load selected\"\n * falls back to looping `onChoose`.\n */\n onChooseMany?: (\n picks: Array<{ entity: SearchableEntity; row: Record<string, unknown> }>\n ) => void;\n}\n\n/** One flattened, choosable result row. */\ninterface ResultOption {\n /** DOM id, so the input can point aria-activedescendant at it. */\n domId: string;\n entity: SearchableEntity;\n row: Record<string, unknown>;\n label: string;\n alreadyLoaded: boolean;\n}\n\n/** The shared builder's imperative surface (submit/clear from an external footer). */\ninterface AdvancedBuilderHandle extends HTMLElement {\n submitSearch: () => Promise<void>;\n clearFilters: () => Promise<void>;\n}\n\nconst EMPTY_KEYS: Set<unknown> = new Set();\n\n/** The label with its matched runs marked (the same fold the tree filter uses). */\nconst MarkedLabel = ({ label, term }: { label: string; term: string }) => {\n const ranges = highlightRanges(label, term);\n if (!ranges.length) return <>{label}</>;\n const parts: React.ReactNode[] = [];\n let cursor = 0;\n ranges.forEach(([start, end], index) => {\n if (start > cursor) parts.push(label.slice(cursor, start));\n parts.push(\n <mark key={index} className={styles.mark}>\n {label.slice(start, end)}\n </mark>\n );\n cursor = end;\n });\n if (cursor < label.length) parts.push(label.slice(cursor));\n return <>{parts}</>;\n};\n\nexport const RecordFinder = ({\n entities,\n initialText = '',\n defaultRows,\n defaultTotal = 0,\n defaultEntity,\n loadedKeys = EMPTY_KEYS,\n catalogObjects,\n autofocus = false,\n onChoose,\n onChooseMany\n}: RecordFinderProps) => {\n const { t } = useTranslation();\n // Text, paging and the active option move together: retyping resets both, so\n // they are ONE piece of state rather than three that chase each other. Hosts\n // remount the finder per open (and per handed-over prefill), which is why\n // `initialText` is only ever an initial value.\n const [query, setQuery] = useState({\n text: initialText,\n pages: 1,\n activeIndex: 0\n });\n const { text, pages, activeIndex } = query;\n const [retryToken, setRetryToken] = useState(0);\n\n // Ticked result rows, by option domId. Ticking is the SECONDARY action —\n // a row click still loads that one record — and the ids survive \"N more\"\n // paging (rows only append). A new search is a new result set, so the\n // handlers that change what is being searched clear it.\n const [selectedIds, setSelectedIds] = useState<ReadonlySet<string>>(\n () => new Set<string>()\n );\n\n // The applied advanced filter, and the raw Search it was built from — the\n // wire reseeds the builder when the drawer reopens, so \"edit the filter\"\n // starts from the filter rather than from blank rows.\n const [advanced, setAdvanced] = useState<AdvancedSearchState | null>(null);\n const [advancedWire, setAdvancedWire] = useState<AdvancedSearchWire | null>(null);\n const [advancedOpen, setAdvancedOpen] = useState(false);\n const [advancedValid, setAdvancedValid] = useState(true);\n const builderRef = useRef<AdvancedBuilderHandle | null>(null);\n\n // Advanced search is root-scoped — `searchConfiguration` is a root-node\n // property, the same rule InquirySearchPanel applies.\n const advancedTarget = useMemo(\n () => entities.find((entity) => entity.isRoot) ?? entities[0] ?? null,\n [entities]\n );\n // The REAL catalog wins: it carries the entity's whole field tree, which is\n // what the builder's schema picker exists to walk. The synthesized\n // searchConfiguration schema is only the fallback for hosts that have no\n // catalog in hand.\n const advancedSchema = useMemo(() => {\n if (!advancedTarget) return null;\n if (catalogObjects?.length) {\n return {\n entityName: advancedTarget.entityName,\n catalogObjectList: catalogObjects\n };\n }\n return buildAdvancedSearchSchema(advancedTarget);\n }, [advancedTarget, catalogObjects]);\n\n const { groups, isPending, isActive, isSettled, isTimedOut, singleResult } =\n useInquirySearch({\n entities,\n text,\n advanced,\n debounceMs: LOAD_DEBOUNCE_MS,\n minChars: LOAD_MIN_CHARS,\n pageSize: LOAD_PAGE_SIZE * pages,\n timeoutMs: SEARCH_TIMEOUT_MS,\n retryToken\n });\n\n const trimmed = text.trim();\n /** Below the search floor with no filter applied, the finder lists. */\n const listing = !advanced && trimmed.length < LOAD_MIN_CHARS;\n // The host's root page when it has one, else the first page fetched here.\n const fetched = useDefaultListing(defaultRows ? null : advancedTarget);\n const listingRows = defaultRows ?? fetched.rows;\n const listingTotal = defaultRows ? defaultTotal : fetched.total;\n const listingEntity = defaultRows ? defaultEntity : advancedTarget;\n\n const options = useMemo<ResultOption[]>(() => {\n const toOption = (\n entity: SearchableEntity,\n row: Record<string, unknown>,\n key: string\n ): ResultOption => ({\n domId: `udp-finder-option-${key}`,\n entity,\n row,\n label: resolveRowLabel(entity, row),\n alreadyLoaded: loadedKeys.has(row.businessObjectKey)\n });\n if (listing) {\n if (!listingEntity) return [];\n return listingRows\n .slice(0, LOAD_DEFAULT_LIST_SIZE)\n .map((row, index) => toOption(listingEntity, row, `default-${index}`));\n }\n return groups.flatMap((group) =>\n group.rows.map((row, index) =>\n toOption(group.entity, row, `${group.entity.key}-${index}`)\n )\n );\n }, [listing, listingRows, listingEntity, groups, loadedKeys]);\n\n const active = options[Math.min(activeIndex, options.length - 1)];\n const entityNoun = entities[0]?.entityNoun ?? '';\n const moreCount = groups.reduce(\n (sum, group) => sum + Math.max(0, group.total - group.rows.length),\n 0\n );\n /** A failed search must say so — \"No records matched\" would be a lie. */\n const hasError = groups.some((group) => group.isError);\n const showEmpty =\n !listing &&\n isSettled &&\n isActive &&\n !isPending &&\n !options.length &&\n !isTimedOut &&\n !hasError;\n /** The listing is a single page; it says so instead of offering paging. */\n const listingTruncated = listing && listingTotal > options.length;\n /** Entity labels earn their place once more than one entity answers. */\n const groupsWithRows = listing ? [] : groups.filter((group) => group.rows.length);\n const showGroupLabels = groupsWithRows.length > 1;\n\n const choose = useCallback(\n (option: ResultOption | undefined) => {\n if (option) onChoose(option.entity, option.row);\n },\n [onChoose]\n );\n\n // An advanced submit with one unambiguous hit loads it — an explicit submit\n // is a commitment, unlike a mid-typing pause (InquirySearchPanel's rule).\n useEffect(() => {\n if (advanced && singleResult) {\n // eslint-disable-next-line react-you-might-not-need-an-effect/no-pass-live-state-to-parent\n onChoose(singleResult.entity, singleResult.row);\n }\n // onChoose identity is the host's business; guard on the hit itself.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [singleResult, advanced]);\n\n const handleKeyDown = (event: React.KeyboardEvent) => {\n if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n if (!options.length) return;\n event.preventDefault();\n setQuery((previous) => ({\n ...previous,\n activeIndex:\n (previous.activeIndex +\n (event.key === 'ArrowDown' ? 1 : -1) +\n options.length) %\n options.length\n }));\n return;\n }\n if (event.key === 'Enter') {\n event.preventDefault();\n choose(active);\n }\n };\n\n const handleTextChange = (value: string) => {\n setQuery({ text: value, pages: 1, activeIndex: 0 });\n setSelectedIds(new Set());\n // Typing switches back to quick mode: the hook ignores text while a filter\n // is applied, and a control that visibly does nothing is worse than a\n // cleared chip.\n if (value.trim() && advanced) {\n setAdvanced(null);\n setAdvancedWire(null);\n }\n };\n\n const handleFilterSave = (event: { detail?: AdvancedSearchWire }) => {\n const { elements, groups: filterGroups } = mapAdvancedSearch(event?.detail);\n setAdvancedOpen(false);\n if (!advancedTarget || elements.length === 0) {\n setAdvanced(null);\n setAdvancedWire(null);\n return;\n }\n setAdvanced({ entityKey: advancedTarget.key, elements, groups: filterGroups });\n setAdvancedWire(event?.detail ?? null);\n setQuery({ text: '', pages: 1, activeIndex: 0 });\n setSelectedIds(new Set());\n };\n\n const clearAdvanced = () => {\n setAdvanced(null);\n setAdvancedWire(null);\n setQuery((previous) => ({ ...previous, pages: 1, activeIndex: 0 }));\n setSelectedIds(new Set());\n };\n\n /** Rows a tick can act on — an already-loaded root has nothing to load. */\n const selectableOptions = useMemo(\n () => options.filter((option) => !option.alreadyLoaded),\n [options]\n );\n const selectedOptions = useMemo(\n () => selectableOptions.filter((option) => selectedIds.has(option.domId)),\n [selectableOptions, selectedIds]\n );\n\n /**\n * One list's selection changed: its values replace that list's slice of the\n * shared set, leaving other groups' ticks alone (each entity group renders\n * its own UdpList).\n */\n const handleSelectionChange = useCallback(\n (listOptions: ResultOption[], listSelected: Array<string | number>) => {\n setSelectedIds((previous) => {\n const next = new Set(previous);\n listOptions.forEach((option) => next.delete(option.domId));\n listSelected.forEach((value) => next.add(String(value)));\n return next;\n });\n },\n []\n );\n\n const handleSelectAll = () => {\n setSelectedIds(new Set(selectableOptions.map((option) => option.domId)));\n };\n\n const handleLoadSelected = () => {\n if (onChooseMany) {\n onChooseMany(\n selectedOptions.map((option) => ({\n entity: option.entity,\n row: option.row\n }))\n );\n } else {\n selectedOptions.forEach((option) => onChoose(option.entity, option.row));\n }\n setSelectedIds(new Set());\n };\n\n return (\n <div className={styles.root}>\n {/* The input owns focus for the whole finder and points at the active\n option, so ↑↓ never moves focus out of the box the user is typing in. */}\n <div\n role='combobox'\n aria-expanded={options.length > 0}\n aria-haspopup='listbox'\n aria-activedescendant={active?.domId}\n onKeyDown={handleKeyDown}\n className={styles.searchRow}\n >\n <UdpSearchInput\n autofocus={autofocus}\n includeErrorPadding={false}\n // The input says what it searches; nothing else narrates the\n // search floor.\n placeholder={t('inquiry.load.searchPlaceholder', {\n defaultValue: 'Search {{entity}} records',\n entity: entityNoun\n })}\n value={text}\n onChange={(event) => handleTextChange(event.target.value ?? '')}\n />\n {advancedTarget && (\n <UdpButton\n appearance='subtle'\n size='small'\n onClick={() => setAdvancedOpen(true)}\n >\n {t('inquiry.search.advanced', { defaultValue: 'Advanced search' })}\n </UdpButton>\n )}\n </div>\n\n {/* The applied filter is one visible chip, never hidden state: its label\n reads like the rows that built it, and ✕ clears it. */}\n {advanced && (\n <UdpFlexbox direction='row' gap='xs' align='center' wrap='nowrap'>\n <UdpBadge appearance='tint' color='brand'>\n {summarizeAdvancedSearch(advanced.elements)}\n </UdpBadge>\n <UdpIconButton\n appearance='subtle'\n size='small'\n iconName='dismiss'\n ariaLabel={t('inquiry.search.clearAdvanced', {\n defaultValue: 'Clear advanced filter'\n })}\n onClick={clearAdvanced}\n />\n </UdpFlexbox>\n )}\n\n <div\n className={\n // Engaged = searching or holding a listing; only then does the area\n // reserve height against state flicker.\n !listing || options.length > 0\n ? `${styles.results} ${styles.resultsEngaged}`\n : styles.results\n }\n >\n {(listing ? fetched.isPending : isPending && !isTimedOut) && (\n <div className={styles.note}>\n <UdpSpinner size='tiny' />\n </div>\n )}\n\n {(listing ? fetched.isError : hasError) && (\n <UdpMessageBar intent='error' layout='multiline'>\n {t('inquiry.search.failed', {\n defaultValue:\n 'This search could not be run. Try searching on different fields.'\n })}\n </UdpMessageBar>\n )}\n\n {!listing && isTimedOut && (\n <div className={styles.note}>\n <UdpText variant='caption1' as='span'>\n {t('inquiry.load.timedOut', {\n defaultValue: \"Search isn't responding\"\n })}\n </UdpText>\n <UdpButton\n appearance='transparent'\n size='small'\n onClick={() => setRetryToken((token) => token + 1)}\n >\n {t('common.tryAgain', { defaultValue: 'Try again' })}\n </UdpButton>\n </div>\n )}\n\n {showEmpty && (\n <UdpText variant='caption1' as='p' className={styles.note}>\n {advanced\n ? t('inquiry.load.noFilterResults', {\n defaultValue: 'No records matched the filter.'\n })\n : t('inquiry.load.noResults', {\n defaultValue: 'No records matched “{{text}}”.',\n text: trimmed\n })}\n </UdpText>\n )}\n\n {listing && options.length > 0 && (\n <FinderList\n options={options}\n activeId={active?.domId}\n term=''\n selectedIds={selectedIds}\n alreadyLoadedLabel={t('inquiry.load.alreadyLoaded', {\n defaultValue: 'already loaded'\n })}\n onChoose={choose}\n onSelectionChange={handleSelectionChange}\n />\n )}\n\n {!listing &&\n groupsWithRows.map((group) => {\n const groupOptions = options.filter(\n (option) => option.entity.key === group.entity.key\n );\n return (\n <React.Fragment key={group.entity.key}>\n {showGroupLabels && (\n <div className={styles.groupLabel}>\n <UdpText variant='body1Strong' as='span'>\n {group.entity.displayName}\n </UdpText>\n <UdpText variant='caption1' as='span'>\n {t('inquiry.search.matchCount', {\n defaultValue: '{{count}} matches',\n count: group.total\n })}\n </UdpText>\n </div>\n )}\n <FinderList\n options={groupOptions}\n activeId={active?.domId}\n term={advanced ? '' : trimmed}\n selectedIds={selectedIds}\n alreadyLoadedLabel={t('inquiry.load.alreadyLoaded', {\n defaultValue: 'already loaded'\n })}\n onChoose={choose}\n onSelectionChange={handleSelectionChange}\n />\n </React.Fragment>\n );\n })}\n\n {listingTruncated && (\n <UdpText variant='caption1' as='p' className={styles.note}>\n {t('inquiry.load.showingFirst', {\n defaultValue:\n 'Showing the first {{shown}} of {{total}} — type to narrow.',\n shown: options.length,\n total: listingTotal\n })}\n </UdpText>\n )}\n\n {!listing && moreCount > 0 && (\n <UdpButton\n appearance='transparent'\n size='small'\n onClick={() =>\n setQuery((previous) => ({ ...previous, pages: previous.pages + 1 }))\n }\n >\n {t('inquiry.load.more', {\n defaultValue: '{{remaining}} more',\n remaining: moreCount\n })}\n </UdpButton>\n )}\n </div>\n\n {/* Bulk load: ticking rows is the secondary action; this bar is where the\n ticks land. \"Load selected\" appears once something is ticked (no dead\n disabled button); \"Select all\" covers the advanced-filter case where\n the whole result set is wanted, and counts only the loadable rows. */}\n {selectableOptions.length > 0 && (\n <UdpFlexbox direction='row' gap='sm' align='center' wrap='nowrap'>\n {selectedOptions.length > 0 && (\n <UdpButton appearance='primary' size='small' onClick={handleLoadSelected}>\n {t('inquiry.load.loadSelected', {\n defaultValue: 'Load selected ({{count}})',\n count: selectedOptions.length\n })}\n </UdpButton>\n )}\n {selectedOptions.length < selectableOptions.length && (\n <UdpButton appearance='subtle' size='small' onClick={handleSelectAll}>\n {t('inquiry.load.selectAll', {\n defaultValue: 'Select all ({{count}})',\n count: selectableOptions.length\n })}\n </UdpButton>\n )}\n </UdpFlexbox>\n )}\n\n {/* The advanced drawer: the shared builder with the schema field-picker\n tree, full-bleed, its actions hosted in the drawer footer (the\n builder's external-actions contract). */}\n <UdpDrawer\n open={advancedOpen}\n position='end'\n size='large'\n excludeBodyPadding\n drawerTitle={t('inquiry.search.advanced', {\n defaultValue: 'Advanced search'\n })}\n onDrawerClose={() => setAdvancedOpen(false)}\n >\n {advancedOpen && advancedSchema && (\n <>\n <UdpAdvancedSearchBuilder\n innerRef={builderRef as never}\n entityName={advancedSchema.entityName}\n catalogObjectList={advancedSchema.catalogObjectList as never}\n initialFilterData={advancedWire as never}\n onFilterSave={handleFilterSave as never}\n onValidityChange={(event: { detail?: { isValid?: boolean } }) =>\n setAdvancedValid(event?.detail?.isValid !== false)\n }\n config={{\n resizable: false,\n collapsible: false,\n showFieldPicker: true,\n fieldPickerView: 'tree',\n showFooter: false,\n height: '100%'\n }}\n />\n <UdpFlexbox\n slot='footer'\n direction='row'\n gap='sm'\n align='center'\n wrap='nowrap'\n >\n <UdpButton\n appearance='primary'\n disabled={!advancedValid}\n onClick={() => void builderRef.current?.submitSearch()}\n >\n {t('common.search', { defaultValue: 'Search' })}\n </UdpButton>\n <UdpButton\n appearance='subtle'\n onClick={() => void builderRef.current?.clearFilters()}\n >\n {t('common.clear', { defaultValue: 'Clear' })}\n </UdpButton>\n </UdpFlexbox>\n </>\n )}\n </UdpDrawer>\n </div>\n );\n};\n\n/** A run of result rows. Rows ACTIVATE (click / ↵ loads that one record) —\n * the checkbox is the secondary action, feeding the shared \"Load selected\"\n * bar. The ↑↓ cursor is a visual hint plus aria-activedescendant, not a\n * selection. */\nconst FinderList = ({\n options,\n activeId,\n term,\n selectedIds,\n alreadyLoadedLabel,\n onChoose,\n onSelectionChange\n}: {\n options: ResultOption[];\n activeId?: string;\n term: string;\n selectedIds: ReadonlySet<string>;\n alreadyLoadedLabel: string;\n onChoose: (option: ResultOption) => void;\n onSelectionChange: (\n listOptions: ResultOption[],\n listSelected: Array<string | number>\n ) => void;\n}) => (\n <UdpList\n interactive\n selectionMode='multiselect'\n selectionAsSecondaryAction\n selectedItems={options\n .filter((option) => selectedIds.has(option.domId))\n .map((option) => option.domId)}\n onListSelectionChange={(event: CustomEvent<{ selectedItems: Array<string | number> }>) =>\n onSelectionChange(options, event.detail.selectedItems)\n }\n >\n {options.map((option) => (\n <UdpListItem\n key={option.domId}\n id={option.domId}\n value={option.domId}\n // Already a root — there is nothing to load, so it cannot be ticked;\n // it can still be activated (which selects it in the tree).\n disabledSelection={option.alreadyLoaded}\n className={option.domId === activeId ? styles.activeOption : undefined}\n onItemAction={() => onChoose(option)}\n >\n <span slot='title'>\n <MarkedLabel label={option.label} term={term} />\n </span>\n {option.alreadyLoaded && (\n <UdpText slot='end' variant='caption1' as='span'>\n {alreadyLoadedLabel}\n </UdpText>\n )}\n </UdpListItem>\n ))}\n </UdpList>\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAAA3I,KAAA,MAAA4I;AAAA5I,KAAA,MAAAjB;AAAAiB,KAAA,MAAAE;AAAAF,KAAA,MAAAgJ;QAAAA,MAAAhJ,EAAA;AApBAU,OAAAwD,QAAOK,IAAKyE,GAoBX;AAAAhJ,IAAA,KAAA2I;AAAA3I,IAAA,KAAA4I;AAAA5I,IAAA,MAAAjB;AAAAiB,IAAA,MAAAkE;AAAAlE,IAAA,MAAAE;AAAAF,IAAA,MAAAU;OAAAA,MAAAV,EAAA;CAAA,IAAAgJ;AAAA,KAAAhJ,EAAA,QAAAG,MAAAH,EAAA,QAAAI,MAAAJ,EAAA,QAAAU,IAAA;AA/BJsI,OAAA,sBAAA,cAAC,SAAD;GACE,aAAA;GACc,eAAA;GACd,4BAAA;GACe,eAAA7I;GAGQ,uBAAAC;GAyBf,EArBPM,GAqBO;AAAAV,IAAA,MAAAG;AAAAH,IAAA,MAAAI;AAAAJ,IAAA,MAAAU;AAAAV,IAAA,MAAAgJ;OAAAA,MAAAhJ,EAAA;AAAA,QAhCVgJ;;AApBiB,SAAAF,MAAAM,UAAA;AAAA,QA0BIzD,SAAMtG"}
|
|
1
|
+
{"version":3,"file":"RecordFinder.mjs","names":["React","forwardRef","useCallback","useEffect","useImperativeHandle","useMemo","useRef","useState","useTranslation","UdpAdvancedSearchBuilder","UdpBadge","UdpButton","UdpDrawer","UdpFlexbox","UdpIconButton","UdpList","UdpListItem","UdpMessageBar","UdpSearchInput","UdpSpinner","UdpText","highlightRanges","CatalogObject","buildAdvancedSearchSchema","mapAdvancedSearch","resolveRowLabel","summarizeAdvancedSearch","AdvancedSearchWire","SearchableEntity","LOAD_DEBOUNCE_MS","LOAD_DEFAULT_LIST_SIZE","LOAD_MIN_CHARS","LOAD_PAGE_SIZE","SEARCH_TIMEOUT_MS","useDefaultListing","useInquirySearch","AdvancedSearchState","styles","rowStyles","RecordFinderProps","entities","initialText","defaultRows","Array","Record","defaultTotal","defaultEntity","loadedKeys","Set","catalogObjects","autofocus","onChoose","entity","row","onChooseMany","picks","onSelectedCountChange","count","defaultListing","renderLayout","parts","search","ReactNode","results","actions","idle","RecordFinderHandle","loadSelected","ResultOption","domId","label","alreadyLoaded","AdvancedBuilderHandle","HTMLElement","submitSearch","Promise","clearFilters","EMPTY_KEYS","MarkedLabel","t0","$","_c","term","t1","t2","Symbol","for","bb0","ranges","length","t3","cursor","forEach","index","start","end","push","slice","mark","RecordFinder","ref","t","query","setQuery","text","pages","activeIndex","retryToken","setRetryToken","selectedIds","setSelectedIds","ReadonlySet","advanced","setAdvanced","advancedWire","setAdvancedWire","advancedOpen","setAdvancedOpen","advancedValid","setAdvancedValid","builderRef","advancedTarget","find","isRoot","advancedSchema","entityName","catalogObjectList","groups","isPending","isActive","isSettled","isTimedOut","singleResult","debounceMs","minChars","pageSize","timeoutMs","trimmed","trim","listing","fetched","listingRows","rows","listingTotal","total","listingEntity","options","toOption","key","has","businessObjectKey","map","flatMap","group","active","Math","min","entityNoun","moreCount","reduce","sum","max","hasError","some","isError","showEmpty","listingTruncated","groupsWithRows","filter","showGroupLabels","choose","option","handleKeyDown","event","KeyboardEvent","preventDefault","previous","handleTextChange","value","handleFilterSave","detail","elements","filterGroups","entityKey","clearAdvanced","selectableOptions","selectedOptions","handleSelectionChange","listOptions","listSelected","next","delete","add","String","handleSelectAll","handleLoadSelected","hosted","resultsClass","bleed","resultsEngaged","searchRow","defaultValue","target","note","token","groupOptions","groupLabel","displayName","shown","remaining","root","isValid","resizable","collapsible","showFieldPicker","fieldPickerView","showFooter","height","current","FinderList","flush","activeId","alreadyLoadedLabel","onSelectionChange","undefined","_temp","selectedItems","t4","t5","option_1","activeOption","option_0"],"sources":["../../../../src/inquiry/v2/search/RecordFinder.tsx"],"sourcesContent":["/**\n * RecordFinder — THE find-a-record mechanism, shared by every shell that loads\n * a record into an inquiry tree. The + Load dialog and the explore page's\n * \"Find records\" card both render this; only their frames differ, so searching\n * feels identical wherever it starts (finder-unification, 2026-08-27).\n *\n * What it is: the Load dialog's proven body — quick search through\n * `useInquirySearch` (350ms debounce, 2-char floor, timeout + retry), the flat\n * result list with match highlighting and \"already loaded\" awareness, the\n * before-you-type listing of the first root records — plus the\n * advanced search the dialog never had: a drawer hosting the shared\n * `UdpAdvancedSearchBuilder` with the schema field-picker tree, scoped to the\n * root entity exactly as `InquirySearchPanel` scopes it.\n *\n * Quick and advanced are MODES, not layers: `useInquirySearch` runs the\n * advanced filter against its one target entity and ignores quick text while\n * one is applied, so the UI says the same — applying a filter clears the text\n * and shows one summary chip; typing again clears the filter. One search is\n * always exactly one thing.\n *\n * Multi-entity results read as ONE flat list under bolded entity labels with\n * their match counts — the flat-list grammar the field picker set — rather\n * than tabs.\n */\nimport React, {\n forwardRef,\n useCallback,\n useEffect,\n useImperativeHandle,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { UdpAdvancedSearchBuilder } from '../../../UI/fluent-web-components/UdpAdvancedSearchBuilder';\nimport { UdpBadge } from '../../../UI/fluent-web-components/UdpBadge';\nimport { UdpButton } from '../../../UI/fluent-web-components/UdpButton';\nimport { UdpDrawer } from '../../../UI/fluent-web-components/UdpDrawer';\nimport { UdpFlexbox } from '../../../UI/fluent-web-components/UdpFlexbox';\nimport { UdpIconButton } from '../../../UI/fluent-web-components/UdpIconButton';\nimport { UdpList } from '../../../UI/fluent-web-components/UdpList';\nimport { UdpListItem } from '../../../UI/fluent-web-components/UdpListItem';\nimport { UdpMessageBar } from '../../../UI/fluent-web-components/UdpMessageBar';\nimport { UdpSearchInput } from '../../../UI/fluent-web-components/UdpSearchInput';\nimport { UdpSpinner } from '../../../UI/fluent-web-components/UdpSpinner';\nimport { UdpText } from '../../../UI/fluent-web-components/UdpText';\nimport { highlightRanges } from '../tree/treeFilterModel';\nimport type { CatalogObject } from '../../../domain/inquiryTree';\nimport {\n buildAdvancedSearchSchema,\n mapAdvancedSearch,\n resolveRowLabel,\n summarizeAdvancedSearch,\n type AdvancedSearchWire,\n type SearchableEntity\n} from './searchModel';\nimport {\n LOAD_DEBOUNCE_MS,\n LOAD_DEFAULT_LIST_SIZE,\n LOAD_MIN_CHARS,\n LOAD_PAGE_SIZE,\n SEARCH_TIMEOUT_MS,\n useDefaultListing,\n useInquirySearch,\n type AdvancedSearchState\n} from './useInquirySearch';\nimport styles from './RecordFinder.module.css';\nimport rowStyles from '../widgets/listRow.module.css';\n\nexport interface RecordFinderProps {\n /** The searchable set derived from the tree (root + primary-search entities). */\n entities: SearchableEntity[];\n /** Pre-filled term — the tree filter's zero-match bridge hands its query over. */\n initialText?: string;\n /**\n * The root-record page the host already holds — listed before anything is\n * typed, never refetched here. Omit (an explore-first arrival holds none)\n * and the finder fetches the first page of the root entity itself, so\n * there is always something to look at before typing.\n */\n defaultRows?: Array<Record<string, unknown>>;\n /** How many root records exist in total, for the \"first N of M\" line. */\n defaultTotal?: number;\n /** The entity those rows belong to (the tree's root entity). */\n defaultEntity?: SearchableEntity | null;\n /** Business-object keys already loaded as roots, so results can say so. */\n loadedKeys?: Set<unknown>;\n /**\n * The tree's API catalog. When present, advanced search offers the entity's\n * FULL field tree (fields + associations) through the builder's schema\n * picker; without it, the drawer falls back to the fields the tree's\n * `searchConfiguration` curates — the legacy advanced form's set.\n */\n catalogObjects?: CatalogObject[] | null;\n /** Focus the search input on mount (dialogs want this; cards don't). */\n autofocus?: boolean;\n /** Load the chosen row (already-loaded rows select instead of duplicating). */\n onChoose: (entity: SearchableEntity, row: Record<string, unknown>) => void;\n /**\n * Load the TICKED rows as one batch. Hosts that can load in bulk (one\n * OR'd fetch, one history write) supply this; without it \"Load selected\"\n * falls back to looping `onChoose`.\n */\n onChooseMany?: (\n picks: Array<{ entity: SearchableEntity; row: Record<string, unknown> }>\n ) => void;\n /**\n * The host renders \"Load selected\" itself (the Load dialog's footer) and\n * calls `loadSelected()` on the finder's ref; the finder reports how many\n * rows are ticked and leaves its own button out.\n */\n onSelectedCountChange?: (count: number) => void;\n /**\n * List the first root records before anything is typed (the default). A host\n * with its own idle content — the explore page's recent records — turns it\n * off, and the finder shows nothing until a search runs.\n */\n defaultListing?: boolean;\n /**\n * Place the finder's parts yourself. Without it the finder stacks them: the\n * search row, the results, then the bulk actions (\"Load selected\", \"Select\n * all\" — null while there is nothing to tick). `idle` is true while nothing\n * is being searched, so a host can show its own content where the results\n * will go.\n */\n renderLayout?: (parts: {\n search: React.ReactNode;\n results: React.ReactNode;\n actions: React.ReactNode;\n idle: boolean;\n }) => React.ReactNode;\n}\n\n/** What a host that renders its own \"Load selected\" calls. */\nexport interface RecordFinderHandle {\n loadSelected: () => void;\n}\n\n/** One flattened, choosable result row. */\ninterface ResultOption {\n /** DOM id, so the input can point aria-activedescendant at it. */\n domId: string;\n entity: SearchableEntity;\n row: Record<string, unknown>;\n label: string;\n alreadyLoaded: boolean;\n}\n\n/** The shared builder's imperative surface (submit/clear from an external footer). */\ninterface AdvancedBuilderHandle extends HTMLElement {\n submitSearch: () => Promise<void>;\n clearFilters: () => Promise<void>;\n}\n\nconst EMPTY_KEYS: Set<unknown> = new Set();\n\n/** The label with its matched runs marked (the same fold the tree filter uses). */\nconst MarkedLabel = ({ label, term }: { label: string; term: string }) => {\n const ranges = highlightRanges(label, term);\n if (!ranges.length) return <>{label}</>;\n const parts: React.ReactNode[] = [];\n let cursor = 0;\n ranges.forEach(([start, end], index) => {\n if (start > cursor) parts.push(label.slice(cursor, start));\n parts.push(\n <mark key={index} className={styles.mark}>\n {label.slice(start, end)}\n </mark>\n );\n cursor = end;\n });\n if (cursor < label.length) parts.push(label.slice(cursor));\n return <>{parts}</>;\n};\n\nexport const RecordFinder = forwardRef<RecordFinderHandle, RecordFinderProps>(({\n entities,\n initialText = '',\n defaultRows,\n defaultTotal = 0,\n defaultEntity,\n loadedKeys = EMPTY_KEYS,\n catalogObjects,\n autofocus = false,\n onChoose,\n onChooseMany,\n onSelectedCountChange,\n defaultListing = true,\n renderLayout\n}, ref) => {\n const { t } = useTranslation();\n // Text, paging and the active option move together: retyping resets both, so\n // they are ONE piece of state rather than three that chase each other. Hosts\n // remount the finder per open (and per handed-over prefill), which is why\n // `initialText` is only ever an initial value.\n const [query, setQuery] = useState({\n text: initialText,\n pages: 1,\n activeIndex: 0\n });\n const { text, pages, activeIndex } = query;\n const [retryToken, setRetryToken] = useState(0);\n\n // Ticked result rows, by option domId. Ticking is the SECONDARY action —\n // a row click still loads that one record — and the ids survive \"N more\"\n // paging (rows only append). A new search is a new result set, so the\n // handlers that change what is being searched clear it.\n const [selectedIds, setSelectedIds] = useState<ReadonlySet<string>>(\n () => new Set<string>()\n );\n\n // The applied advanced filter, and the raw Search it was built from — the\n // wire reseeds the builder when the drawer reopens, so \"edit the filter\"\n // starts from the filter rather than from blank rows.\n const [advanced, setAdvanced] = useState<AdvancedSearchState | null>(null);\n const [advancedWire, setAdvancedWire] = useState<AdvancedSearchWire | null>(null);\n const [advancedOpen, setAdvancedOpen] = useState(false);\n const [advancedValid, setAdvancedValid] = useState(true);\n const builderRef = useRef<AdvancedBuilderHandle | null>(null);\n\n // Advanced search is root-scoped — `searchConfiguration` is a root-node\n // property, the same rule InquirySearchPanel applies.\n const advancedTarget = useMemo(\n () => entities.find((entity) => entity.isRoot) ?? entities[0] ?? null,\n [entities]\n );\n // The REAL catalog wins: it carries the entity's whole field tree, which is\n // what the builder's schema picker exists to walk. The synthesized\n // searchConfiguration schema is only the fallback for hosts that have no\n // catalog in hand.\n const advancedSchema = useMemo(() => {\n if (!advancedTarget) return null;\n if (catalogObjects?.length) {\n return {\n entityName: advancedTarget.entityName,\n catalogObjectList: catalogObjects\n };\n }\n return buildAdvancedSearchSchema(advancedTarget);\n }, [advancedTarget, catalogObjects]);\n\n const { groups, isPending, isActive, isSettled, isTimedOut, singleResult } =\n useInquirySearch({\n entities,\n text,\n advanced,\n debounceMs: LOAD_DEBOUNCE_MS,\n minChars: LOAD_MIN_CHARS,\n pageSize: LOAD_PAGE_SIZE * pages,\n timeoutMs: SEARCH_TIMEOUT_MS,\n retryToken\n });\n\n const trimmed = text.trim();\n /** Below the search floor with no filter applied, the finder lists. */\n const listing = !advanced && trimmed.length < LOAD_MIN_CHARS;\n // The host's root page when it has one, else the first page fetched here.\n const fetched = useDefaultListing(\n defaultRows || !defaultListing ? null : advancedTarget\n );\n const listingRows = defaultRows ?? fetched.rows;\n const listingTotal = defaultRows ? defaultTotal : fetched.total;\n const listingEntity = defaultRows ? defaultEntity : advancedTarget;\n\n const options = useMemo<ResultOption[]>(() => {\n const toOption = (\n entity: SearchableEntity,\n row: Record<string, unknown>,\n key: string\n ): ResultOption => ({\n domId: `udp-finder-option-${key}`,\n entity,\n row,\n label: resolveRowLabel(entity, row),\n alreadyLoaded: loadedKeys.has(row.businessObjectKey)\n });\n if (listing) {\n if (!defaultListing || !listingEntity) return [];\n return listingRows\n .slice(0, LOAD_DEFAULT_LIST_SIZE)\n .map((row, index) => toOption(listingEntity, row, `default-${index}`));\n }\n return groups.flatMap((group) =>\n group.rows.map((row, index) =>\n toOption(group.entity, row, `${group.entity.key}-${index}`)\n )\n );\n }, [listing, defaultListing, listingRows, listingEntity, groups, loadedKeys]);\n\n const active = options[Math.min(activeIndex, options.length - 1)];\n const entityNoun = entities[0]?.entityNoun ?? '';\n const moreCount = groups.reduce(\n (sum, group) => sum + Math.max(0, group.total - group.rows.length),\n 0\n );\n /** A failed search must say so — \"No records matched\" would be a lie. */\n const hasError = groups.some((group) => group.isError);\n const showEmpty =\n !listing &&\n isSettled &&\n isActive &&\n !isPending &&\n !options.length &&\n !isTimedOut &&\n !hasError;\n /** The listing is a single page; it says so instead of offering paging. */\n const listingTruncated = listing && listingTotal > options.length;\n /** Entity labels earn their place once more than one entity answers. */\n const groupsWithRows = listing ? [] : groups.filter((group) => group.rows.length);\n const showGroupLabels = groupsWithRows.length > 1;\n\n const choose = useCallback(\n (option: ResultOption | undefined) => {\n if (option) onChoose(option.entity, option.row);\n },\n [onChoose]\n );\n\n // An advanced submit with one unambiguous hit loads it — an explicit submit\n // is a commitment, unlike a mid-typing pause (InquirySearchPanel's rule).\n useEffect(() => {\n if (advanced && singleResult) {\n // eslint-disable-next-line react-you-might-not-need-an-effect/no-pass-live-state-to-parent\n onChoose(singleResult.entity, singleResult.row);\n }\n // onChoose identity is the host's business; guard on the hit itself.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [singleResult, advanced]);\n\n const handleKeyDown = (event: React.KeyboardEvent) => {\n if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n if (!options.length) return;\n event.preventDefault();\n setQuery((previous) => ({\n ...previous,\n activeIndex:\n (previous.activeIndex +\n (event.key === 'ArrowDown' ? 1 : -1) +\n options.length) %\n options.length\n }));\n return;\n }\n if (event.key === 'Enter') {\n event.preventDefault();\n choose(active);\n }\n };\n\n const handleTextChange = (value: string) => {\n setQuery({ text: value, pages: 1, activeIndex: 0 });\n setSelectedIds(new Set());\n // Typing switches back to quick mode: the hook ignores text while a filter\n // is applied, and a control that visibly does nothing is worse than a\n // cleared chip.\n if (value.trim() && advanced) {\n setAdvanced(null);\n setAdvancedWire(null);\n }\n };\n\n const handleFilterSave = (event: { detail?: AdvancedSearchWire }) => {\n const { elements, groups: filterGroups } = mapAdvancedSearch(event?.detail);\n setAdvancedOpen(false);\n if (!advancedTarget || elements.length === 0) {\n setAdvanced(null);\n setAdvancedWire(null);\n return;\n }\n setAdvanced({ entityKey: advancedTarget.key, elements, groups: filterGroups });\n setAdvancedWire(event?.detail ?? null);\n setQuery({ text: '', pages: 1, activeIndex: 0 });\n setSelectedIds(new Set());\n };\n\n const clearAdvanced = () => {\n setAdvanced(null);\n setAdvancedWire(null);\n setQuery((previous) => ({ ...previous, pages: 1, activeIndex: 0 }));\n setSelectedIds(new Set());\n };\n\n /** Rows a tick can act on — an already-loaded root has nothing to load. */\n const selectableOptions = useMemo(\n () => options.filter((option) => !option.alreadyLoaded),\n [options]\n );\n const selectedOptions = useMemo(\n () => selectableOptions.filter((option) => selectedIds.has(option.domId)),\n [selectableOptions, selectedIds]\n );\n\n /**\n * One list's selection changed: its values replace that list's slice of the\n * shared set, leaving other groups' ticks alone (each entity group renders\n * its own UdpList).\n */\n const handleSelectionChange = useCallback(\n (listOptions: ResultOption[], listSelected: Array<string | number>) => {\n setSelectedIds((previous) => {\n const next = new Set(previous);\n listOptions.forEach((option) => next.delete(option.domId));\n listSelected.forEach((value) => next.add(String(value)));\n return next;\n });\n },\n []\n );\n\n const handleSelectAll = () => {\n setSelectedIds(new Set(selectableOptions.map((option) => option.domId)));\n };\n\n const handleLoadSelected = () => {\n if (onChooseMany) {\n onChooseMany(\n selectedOptions.map((option) => ({\n entity: option.entity,\n row: option.row\n }))\n );\n } else {\n selectedOptions.forEach((option) => onChoose(option.entity, option.row));\n }\n setSelectedIds(new Set());\n };\n\n useImperativeHandle(ref, () => ({ loadSelected: handleLoadSelected }));\n useEffect(() => {\n onSelectedCountChange?.(selectedOptions.length);\n }, [onSelectedCountChange, selectedOptions.length]);\n\n // Two things differ when a host lays the parts out itself (`renderLayout`).\n // It has no shell of its own to protect, so the results area reserves no\n // height against state flicker (engaged = searching or holding a listing).\n // And it supplies the gutter, so the rows sit flush on the host's text edge\n // with their hover wash bleeding into it — a dialog or a card has no gutter\n // to bleed into, and keeps the list inset.\n const hosted = !!renderLayout;\n let resultsClass = styles.results;\n if (hosted) resultsClass += ` ${rowStyles.bleed}`;\n else if (!listing || options.length > 0)\n resultsClass += ` ${styles.resultsEngaged}`;\n\n // The input owns focus for the whole finder and points at the active option,\n // so ↑↓ never moves focus out of the box the user is typing in.\n const search = (\n <div\n role='combobox'\n aria-expanded={options.length > 0}\n aria-haspopup='listbox'\n aria-activedescendant={active?.domId}\n onKeyDown={handleKeyDown}\n className={styles.searchRow}\n >\n <UdpSearchInput\n autofocus={autofocus}\n includeErrorPadding={false}\n // The input says what it searches; nothing else narrates the\n // search floor.\n placeholder={t('inquiry.load.searchPlaceholder', {\n defaultValue: 'Search {{entity}} records',\n entity: entityNoun\n })}\n value={text}\n onChange={(event) => handleTextChange(event.target.value ?? '')}\n />\n {advancedTarget && (\n <UdpButton\n appearance='subtle'\n size='small'\n onClick={() => setAdvancedOpen(true)}\n >\n {t('inquiry.search.advanced', { defaultValue: 'Advanced search' })}\n </UdpButton>\n )}\n </div>\n );\n\n const results = (\n <>\n {/* The applied filter is one visible chip, never hidden state: its label\n reads like the rows that built it, and ✕ clears it. */}\n {advanced && (\n <UdpFlexbox direction='row' gap='xs' align='center' wrap='nowrap'>\n <UdpBadge appearance='tint' color='brand'>\n {summarizeAdvancedSearch(advanced.elements)}\n </UdpBadge>\n <UdpIconButton\n appearance='subtle'\n size='small'\n iconName='dismiss'\n ariaLabel={t('inquiry.search.clearAdvanced', {\n defaultValue: 'Clear advanced filter'\n })}\n onClick={clearAdvanced}\n />\n </UdpFlexbox>\n )}\n\n <div className={resultsClass}>\n {(listing ? fetched.isPending : isPending && !isTimedOut) && (\n <div className={styles.note}>\n <UdpSpinner size='tiny' />\n </div>\n )}\n\n {(listing ? fetched.isError : hasError) && (\n <UdpMessageBar intent='error' layout='multiline'>\n {t('inquiry.search.failed', {\n defaultValue:\n 'This search could not be run. Try searching on different fields.'\n })}\n </UdpMessageBar>\n )}\n\n {!listing && isTimedOut && (\n <div className={styles.note}>\n <UdpText variant='caption1' as='span'>\n {t('inquiry.load.timedOut', {\n defaultValue: \"Search isn't responding\"\n })}\n </UdpText>\n <UdpButton\n appearance='transparent'\n size='small'\n onClick={() => setRetryToken((token) => token + 1)}\n >\n {t('common.tryAgain', { defaultValue: 'Try again' })}\n </UdpButton>\n </div>\n )}\n\n {showEmpty && (\n <UdpText variant='caption1' as='p' className={styles.note}>\n {advanced\n ? t('inquiry.load.noFilterResults', {\n defaultValue: 'No records matched the filter.'\n })\n : t('inquiry.load.noResults', {\n defaultValue: 'No records matched “{{text}}”.',\n text: trimmed\n })}\n </UdpText>\n )}\n\n {listing && options.length > 0 && (\n <FinderList\n options={options}\n flush={hosted}\n activeId={active?.domId}\n term=''\n selectedIds={selectedIds}\n alreadyLoadedLabel={t('inquiry.load.alreadyLoaded', {\n defaultValue: 'already loaded'\n })}\n onChoose={choose}\n onSelectionChange={handleSelectionChange}\n />\n )}\n\n {!listing &&\n groupsWithRows.map((group) => {\n const groupOptions = options.filter(\n (option) => option.entity.key === group.entity.key\n );\n return (\n <React.Fragment key={group.entity.key}>\n {showGroupLabels && (\n <div className={styles.groupLabel}>\n <UdpText variant='body1Strong' as='span'>\n {group.entity.displayName}\n </UdpText>\n <UdpText variant='caption1' as='span'>\n {t('inquiry.search.matchCount', {\n defaultValue: '{{count}} matches',\n count: group.total\n })}\n </UdpText>\n </div>\n )}\n <FinderList\n options={groupOptions}\n flush={hosted}\n activeId={active?.domId}\n term={advanced ? '' : trimmed}\n selectedIds={selectedIds}\n alreadyLoadedLabel={t('inquiry.load.alreadyLoaded', {\n defaultValue: 'already loaded'\n })}\n onChoose={choose}\n onSelectionChange={handleSelectionChange}\n />\n </React.Fragment>\n );\n })}\n\n {listingTruncated && (\n <UdpText variant='caption1' as='p' className={styles.note}>\n {t('inquiry.load.showingFirst', {\n defaultValue:\n 'Showing the first {{shown}} of {{total}} — type to narrow.',\n shown: options.length,\n total: listingTotal\n })}\n </UdpText>\n )}\n\n {!listing && moreCount > 0 && (\n <UdpButton\n appearance='transparent'\n size='small'\n onClick={() =>\n setQuery((previous) => ({ ...previous, pages: previous.pages + 1 }))\n }\n >\n {t('inquiry.load.more', {\n defaultValue: '{{remaining}} more',\n remaining: moreCount\n })}\n </UdpButton>\n )}\n </div>\n </>\n );\n\n // Bulk load: ticking rows is the secondary action; this bar is where the\n // ticks land. Both buttons always render and disable instead, so nothing\n // shifts as rows are ticked: \"Load selected\" until something is ticked,\n // \"Select all\" (the advanced-filter case, where the whole result set is\n // wanted; it counts only the loadable rows) once everything is.\n const actions = selectableOptions.length > 0 && (\n <UdpFlexbox direction='row' gap='sm' align='center' wrap='nowrap'>\n {!onSelectedCountChange && (\n <UdpButton\n appearance='primary'\n size='small'\n disabled={selectedOptions.length === 0}\n onClick={handleLoadSelected}\n >\n {t('inquiry.load.loadSelected', {\n defaultValue: 'Load selected ({{count}})',\n count: selectedOptions.length\n })}\n </UdpButton>\n )}\n <UdpButton\n appearance='subtle'\n size='small'\n disabled={selectedOptions.length === selectableOptions.length}\n onClick={handleSelectAll}\n >\n {t('inquiry.load.selectAll', {\n defaultValue: 'Select all ({{count}})',\n count: selectableOptions.length\n })}\n </UdpButton>\n </UdpFlexbox>\n );\n\n return (\n <>\n {renderLayout ? (\n renderLayout({ search, results, actions, idle: listing })\n ) : (\n <div className={styles.root}>\n {search}\n {results}\n {actions}\n </div>\n )}\n\n {/* The advanced drawer: the shared builder with the schema field-picker\n tree, full-bleed, its actions hosted in the drawer footer (the\n builder's external-actions contract). */}\n <UdpDrawer\n open={advancedOpen}\n position='end'\n size='large'\n excludeBodyPadding\n drawerTitle={t('inquiry.search.advanced', {\n defaultValue: 'Advanced search'\n })}\n onDrawerClose={() => setAdvancedOpen(false)}\n >\n {advancedOpen && advancedSchema && (\n <>\n <UdpAdvancedSearchBuilder\n innerRef={builderRef as never}\n entityName={advancedSchema.entityName}\n catalogObjectList={advancedSchema.catalogObjectList as never}\n initialFilterData={advancedWire as never}\n onFilterSave={handleFilterSave as never}\n onValidityChange={(event: { detail?: { isValid?: boolean } }) =>\n setAdvancedValid(event?.detail?.isValid !== false)\n }\n config={{\n resizable: false,\n collapsible: false,\n showFieldPicker: true,\n fieldPickerView: 'tree',\n showFooter: false,\n height: '100%'\n }}\n />\n <UdpFlexbox\n slot='footer'\n direction='row'\n gap='sm'\n align='center'\n wrap='nowrap'\n >\n <UdpButton\n appearance='primary'\n disabled={!advancedValid}\n onClick={() => void builderRef.current?.submitSearch()}\n >\n {t('common.search', { defaultValue: 'Search' })}\n </UdpButton>\n <UdpButton\n appearance='subtle'\n onClick={() => void builderRef.current?.clearFilters()}\n >\n {t('common.clear', { defaultValue: 'Clear' })}\n </UdpButton>\n </UdpFlexbox>\n </>\n )}\n </UdpDrawer>\n </>\n );\n});\nRecordFinder.displayName = 'RecordFinder';\n\n/** A run of result rows. Rows ACTIVATE (click / ↵ loads that one record) —\n * the checkbox is the secondary action, feeding the shared \"Load selected\"\n * bar. The ↑↓ cursor is a visual hint plus aria-activedescendant, not a\n * selection. */\nconst FinderList = ({\n options,\n flush,\n activeId,\n term,\n selectedIds,\n alreadyLoadedLabel,\n onChoose,\n onSelectionChange\n}: {\n options: ResultOption[];\n /** Rows sit on the host's text edge (see `hosted`). */\n flush: boolean;\n activeId?: string;\n term: string;\n selectedIds: ReadonlySet<string>;\n alreadyLoadedLabel: string;\n onChoose: (option: ResultOption) => void;\n onSelectionChange: (\n listOptions: ResultOption[],\n listSelected: Array<string | number>\n ) => void;\n}) => (\n <UdpList\n className={flush ? rowStyles.flush : undefined}\n interactive\n selectionMode='multiselect'\n selectionAsSecondaryAction\n selectedItems={options\n .filter((option) => selectedIds.has(option.domId))\n .map((option) => option.domId)}\n onListSelectionChange={(event: CustomEvent<{ selectedItems: Array<string | number> }>) =>\n onSelectionChange(options, event.detail.selectedItems)\n }\n >\n {options.map((option) => (\n <UdpListItem\n key={option.domId}\n id={option.domId}\n value={option.domId}\n // Already a root — there is nothing to load, so it cannot be ticked;\n // it can still be activated (which selects it in the tree).\n disabledSelection={option.alreadyLoaded}\n className={option.domId === activeId ? styles.activeOption : undefined}\n onItemAction={() => onChoose(option)}\n >\n <span slot='title'>\n <MarkedLabel label={option.label} term={term} />\n </span>\n {option.alreadyLoaded && (\n <UdpText slot='end' variant='caption1' as='span'>\n {alreadyLoadedLabel}\n </UdpText>\n )}\n </UdpListItem>\n ))}\n </UdpList>\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0JA,MAAM6E,6BAA2B,IAAI7B,KAAK;;AAG1C,MAAM8B,eAAcC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAC,MAAA,EAAAX,OAAAY,SAAAH;CAAgD,IAAAI;CAAA,IAAAC;AAA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M,UAAA;AAAA,QA8BI5D,SAAMtG"}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* advanced-search schema mapping), the debounced/cancellable useInquirySearch
|
|
5
5
|
* hook, and the InquirySearchPanel body the InquiryV2 surface swaps in.
|
|
6
6
|
*/
|
|
7
|
-
export { deriveSearchableEntities, stampQuickSearchElements, summarizeAdvancedSearch, deriveResultColumns, shouldFireSearch, buildColumnTypeIndex, decideSearchValueOutcome, buildAdvancedSearchSchema, mapAdvancedFilterElements, mapAdvancedSearch, parseQueryColumns, searchHashFor,
|
|
8
|
-
export type { SearchableEntity, SearchFilterElement, QueryFilterGroup, QueryOrderElement, InstanceBodyFilters, QueryColumn, ApiMethodInstanceWire,
|
|
7
|
+
export { deriveSearchableEntities, stampQuickSearchElements, summarizeAdvancedSearch, deriveResultColumns, shouldFireSearch, buildColumnTypeIndex, decideSearchValueOutcome, buildAdvancedSearchSchema, mapAdvancedFilterElements, mapAdvancedSearch, parseQueryColumns, searchHashFor, humanizeFieldName, resolveRowLabel } from './searchModel';
|
|
8
|
+
export type { SearchableEntity, SearchFilterElement, QueryFilterGroup, QueryOrderElement, InstanceBodyFilters, QueryColumn, ApiMethodInstanceWire, ResultColumn, ColumnTypeIndex, AdvancedSearchWire, AdvancedFilterElementWire, AdvancedSearchSchema, AdvancedSearchCatalogObject, AdvancedSearchProperty, SearchValueOutcome } from './searchModel';
|
|
9
9
|
export { useInquirySearch, searchInquiryEntitiesOnce, queryInquiryEntityOnce } from './useInquirySearch';
|
|
10
10
|
export type { InquirySearchResult, SearchResultGroup, AdvancedSearchState, OneShotSearchGroup } from './useInquirySearch';
|
|
11
11
|
export { InquirySearchPanel } from './InquirySearchPanel';
|
|
12
12
|
export type { InquirySearchPanelProps } from './InquirySearchPanel';
|
|
13
13
|
export { RecordFinder } from './RecordFinder';
|
|
14
|
-
export type { RecordFinderProps } from './RecordFinder';
|
|
14
|
+
export type { RecordFinderHandle, RecordFinderProps } from './RecordFinder';
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/search/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/search/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,eAAe,EAChB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,qBAAqB,EACrB,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,yBAAyB,EACzB,oBAAoB,EACpB,2BAA2B,EAC3B,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* advanced-search schema mapping), the debounced/cancellable useInquirySearch
|
|
5
5
|
* hook, and the InquirySearchPanel body the InquiryV2 surface swaps in.
|
|
6
6
|
*/
|
|
7
|
-
export { deriveSearchableEntities, stampQuickSearchElements, summarizeAdvancedSearch, deriveResultColumns, shouldFireSearch, buildColumnTypeIndex, decideSearchValueOutcome, buildAdvancedSearchSchema, mapAdvancedFilterElements, mapAdvancedSearch, parseQueryColumns, searchHashFor,
|
|
7
|
+
export { deriveSearchableEntities, stampQuickSearchElements, summarizeAdvancedSearch, deriveResultColumns, shouldFireSearch, buildColumnTypeIndex, decideSearchValueOutcome, buildAdvancedSearchSchema, mapAdvancedFilterElements, mapAdvancedSearch, parseQueryColumns, searchHashFor, humanizeFieldName, resolveRowLabel } from './searchModel';
|
|
8
8
|
export { useInquirySearch, searchInquiryEntitiesOnce, queryInquiryEntityOnce } from './useInquirySearch';
|
|
9
9
|
export { InquirySearchPanel } from './InquirySearchPanel';
|
|
10
10
|
export { RecordFinder } from './RecordFinder';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/inquiry/v2/search/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/inquiry/v2/search/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,eAAe,EAChB,MAAM,eAAe,CAAC;AAkBvB,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAO5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|