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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InquiryFindRecordsWidget.mjs","names":["React","useCallback","useMemo","useTranslation","UdpCard","UdpMessageBar","RecordFinder","deriveSearchableEntities","resolveRowLabel","SearchableEntity","SearchTreeWire","useInstanceParamValues","buildIdentifierFilterElements","getSearchObject","LogicalSearchOperatorEnums","CatalogObject","NodeToLoad","apiMethodId","nodeDetails","catalogReturnObject","nodeLabel","queryPayload","FinderPick","entity","row","Record","InquiryFindRecordsWidgetParams","tree","catalogObjects","onLoadRecord","onLoadRecords","picks","onLoadedNodeClick","node","tableHeight","hideWidgetName","InquiryFindRecordsWidgetProps","params","key","className","style","CSSProperties","children","ReactNode","InquiryFindRecordsWidget","props","$","_c","t0","t","paramValues","t1","entities","t2","filterElements","undefined","entityName","length","And","handleChoose","t3","defaultValue","t4","t5"],"sources":["../../../../../src/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.tsx"],"sourcesContent":["/**\n * InquiryFindRecordsWidget — the search-forward hero of a modern inquiry\n * explore page, composed in code or in Page Assembler.\n *\n * The widget is a CARD SHELL around the shared `RecordFinder` — the same\n * finder the tree pane's + Load dialog renders, so finding a record works\n * identically from the dashboard and the sidebar (finder-unification,\n * 2026-08-27): quick search through `useInquirySearch`, one flat result list\n * with match highlighting under bolded entity labels, and advanced search in\n * a drawer hosting the shared `UdpAdvancedSearchBuilder` with the schema\n * field-picker tree.\n *\n * This file contributes the widget shell and the click-to-load wiring —\n * nothing else. Two load contracts, in order of preference:\n *\n * 1. `onLoadRecord` / `onLoadRecords` — the finder's own `onChoose` /\n * `onChooseMany`, handed straight through. The v2 host (`InquiryV2`) passes\n * the SAME handlers its + Load dialog uses, so a row here loads exactly as\n * a row there: the fetched row is the record (no catalog round-trip), a\n * ticked set goes through the batch pipeline, and the host words the toast.\n * 2. `onLoadedNodeClick` — the node-to-load replay every inquiry host (v1\n * `InquiryContainer` included) already passes explore-page widgets. The\n * widget builds the record's identifier filters from the catalog, which is\n * why it needs `catalogObjects`; on a tenant whose catalog does not carry\n * the entity this path has nothing to name and does nothing — the reason\n * the v2 host supplies contract 1.\n *\n * ## Widget params (all supplied by the inquiry landing already)\n * | param | what it is |\n * |---|---|\n * | `tree` | the tree wire document — the searchable set is derived from it |\n * | `catalogObjects` | the catalog — identifier filters for the clicked row (contract 2) |\n * | `onLoadRecord` / `onLoadRecords` | load one / many finder rows (contract 1) |\n * | `onLoadedNodeClick` | load a record into the tree; the widget hands it a node-to-load, exactly as `RemindersWidget` does (contract 2) |\n * | `tableHeight` | accepted for JSON-page compatibility; the finder carries its own result heights |\n * | `hideWidgetName` | hide the card header (standard widget param) |\n *\n * ## Why the widget owns its card\n * NEITHER widget pipeline supplies chrome: `DashboardWidget` mounts the widget\n * bare inside its cell (its own `WidgetCard` is only reached on the not-found /\n * render-error branches), and v2's `UdpPageRenderer` mounts `<Component>` bare\n * in a grid cell. Every registry widget in this library therefore renders its\n * own card, and this one does the same — with the fluent `UdpCard` instead of\n * the MUI one. There is no double-card to guard against on either path.\n */\nimport React, { useCallback, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { UdpCard } from '../../../fluent-web-components/UdpCard';\nimport { UdpMessageBar } from '../../../fluent-web-components/UdpMessageBar';\nimport { RecordFinder } from '../../../../inquiry/v2/search/RecordFinder';\nimport {\n deriveSearchableEntities,\n resolveRowLabel,\n type SearchableEntity,\n type SearchTreeWire\n} from '../../../../inquiry/v2/search/searchModel';\nimport { useInstanceParamValues } from '../../../../inquiry/v2/api/useInstanceParamValues';\n// The tree's own load-record recipe. Imported rather than re-derived so a row\n// clicked here resolves to exactly the record a tree click or a `?node` deep\n// link resolves to.\nimport { buildIdentifierFilterElements } from '../../../../inquiry/v2/tree/useInquiryMenu';\nimport { getSearchObject } from '../../../../utilities/search/SearchUtilities';\nimport { LogicalSearchOperatorEnums } from '../../../../enums/unitySystemEnums';\nimport type { CatalogObject } from '../../../../domain/inquiryTree';\n\n/** The node-to-load an inquiry host replays — v1's `getLoadedNodeObject` shape. */\ninterface NodeToLoad {\n apiMethodId: string;\n nodeDetails: { catalogReturnObject: string; nodeLabel: string };\n queryPayload: unknown;\n}\n\n/** One finder pick — the row the search returned, under its entity. */\nexport interface FinderPick {\n entity: SearchableEntity;\n row: Record<string, unknown>;\n}\n\nexport interface InquiryFindRecordsWidgetParams {\n tree?: SearchTreeWire | null;\n catalogObjects?: CatalogObject[] | null;\n /** Contract 1: load one finder row (the finder's `onChoose`). */\n onLoadRecord?: (entity: SearchableEntity, row: Record<string, unknown>) => void;\n /** Contract 1: load the ticked rows as one batch (the finder's `onChooseMany`). */\n onLoadRecords?: (picks: FinderPick[]) => void;\n /** Contract 2: replay a node-to-load (v1 hosts). */\n onLoadedNodeClick?: (node: NodeToLoad) => void;\n tableHeight?: string;\n hideWidgetName?: boolean;\n}\n\nexport interface InquiryFindRecordsWidgetProps {\n params?: InquiryFindRecordsWidgetParams;\n /** The registry contract's other props (`id`, `setParam`, `onDelete`, …). */\n [key: string]: unknown;\n className?: string;\n style?: React.CSSProperties;\n children?: React.ReactNode;\n}\n\nexport const InquiryFindRecordsWidget = (\n props: InquiryFindRecordsWidgetProps\n) => {\n // Only `className` and `style` reach the card. The rest of the widget\n // contract (`id`, `setParam`, `onDelete`, `widgetType`, `layout`, …) is host\n // bookkeeping the MUI card used to swallow; a web component would put every\n // one of them on the DOM element as an unknown attribute.\n const { children, params, className, style } = props;\n const {\n tree,\n catalogObjects,\n onLoadRecord,\n onLoadRecords,\n onLoadedNodeClick,\n hideWidgetName\n } = params ?? {};\n const { t } = useTranslation();\n\n const paramValues = useInstanceParamValues();\n const entities = useMemo(\n () => (tree ? deriveSearchableEntities(tree, paramValues) : []),\n [tree, paramValues]\n );\n\n /**\n * Load the chosen record: name it by its identifier values and hand the\n * host the node-to-load it already knows how to replay.\n */\n const handleChoose = useCallback(\n (entity: SearchableEntity, row: Record<string, unknown>) => {\n const filterElements = buildIdentifierFilterElements(\n (catalogObjects ?? undefined) as never,\n entity.entityName,\n row\n );\n // Without identifiers there is no way to name this record to the server,\n // and an unfiltered payload would load an arbitrary one. Do nothing.\n if (!filterElements.length) return;\n onLoadedNodeClick?.({\n apiMethodId: entity.apiMethodId,\n nodeDetails: {\n catalogReturnObject: entity.entityName,\n nodeLabel: resolveRowLabel(entity, row)\n },\n queryPayload: getSearchObject(\n filterElements as never,\n 1,\n 1,\n true,\n LogicalSearchOperatorEnums.And\n )\n });\n },\n [catalogObjects, onLoadedNodeClick]\n );\n\n return (\n <UdpCard\n className={className}\n style={style}\n // Content-sized: a compact search band idle, the finder's own result\n // area once a search runs. On a JSON page the renderer's cell may be\n // taller; the card simply doesn't fill it.\n label={\n hideWidgetName\n ? undefined\n : t('inquiry.widgets.findRecords.title', {\n defaultValue: 'Find records'\n })\n }\n >\n {entities.length ? (\n <RecordFinder\n entities={entities}\n catalogObjects={catalogObjects}\n onChoose={onLoadRecord ?? handleChoose}\n onChooseMany={onLoadRecords}\n />\n ) : (\n <UdpMessageBar intent='warning' layout='multiline'>\n {t('inquiry.widgets.findRecords.notSearchable', {\n defaultValue:\n 'This page is not showing an inquiry tree that can be searched.'\n })}\n </UdpMessageBar>\n )}\n {children}\n </UdpCard>\n );\n};\n\nexport default InquiryFindRecordsWidget;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGA,MAAa4C,4BAA2BC,UAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAOtC,MAAA,EAAAL,UAAAL,QAAAE,WAAAC,UAA+CK;CAAM,I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Ac;OAAAA,MAAAd,EAAA;CAAA,IAAAgB;AAAA,KAAAhB,EAAA,QAAAlB,kBAAAkB,EAAA,QAAAM,YAAAN,EAAA,QAAAa,gBAAAb,EAAA,QAAAjB,gBAAAiB,EAAA,QAAAhB,iBAAAgB,EAAA,QAAAG,GAAA;AAGPa,OAAAV,SAAQK,SACP,sBAAA,cAAC,cAAD;GACYL;GACMxB;GACN,UAAAC,gBAAA8B;GACI7B,cAAAA;GASjB,CAAA,GANC,sBAAA,cAAC,eAAD;GAAsB,QAAA;GAAiB,QAAA;GAMxC,EALImB,EAAE,6CAA6C,EAAAY,cAE5C,kEACH,CAAA,CAEJ;AAAAf,IAAA,MAAAlB;AAAAkB,IAAA,MAAAM;AAAAN,IAAA,MAAAa;AAAAb,IAAA,MAAAjB;AAAAiB,IAAA,MAAAhB;AAAAgB,IAAA,MAAAG;AAAAH,IAAA,MAAAgB;OAAAA,MAAAhB,EAAA;CAAA,IAAAiB;AAAA,KAAAjB,EAAA,QAAAJ,YAAAI,EAAA,QAAAP,aAAAO,EAAA,QAAAN,SAAAM,EAAA,QAAAc,MAAAd,EAAA,QAAAgB,IAAA;AA5BHC,OAAA,sBAAA,cAAC,SAAD;GACaxB;GACJC;GAKL,OAAAoB;GAuBM,EAhBPE,IAeApB,SACO;AAAAI,IAAA,MAAAJ;AAAAI,IAAA,MAAAP;AAAAO,IAAA,MAAAN;AAAAM,IAAA,MAAAc;AAAAd,IAAA,MAAAgB;AAAAhB,IAAA,MAAAiB;OAAAA,MAAAjB,EAAA;AAAA,QA9BViB"}
|
|
1
|
+
{"version":3,"file":"InquiryFindRecordsWidget.mjs","names":["React","useCallback","useMemo","useTranslation","UdpCard","UdpMessageBar","RecordFinder","RecordFinderProps","deriveSearchableEntities","resolveRowLabel","SearchableEntity","fromWire","InquiryTreeWire","useInstanceParamValues","useLinkedTrees","buildIdentifierFilterElements","getSearchObject","LogicalSearchOperatorEnums","CatalogObject","NodeToLoad","apiMethodId","nodeDetails","catalogReturnObject","nodeLabel","queryPayload","FinderPick","entity","row","Record","InquiryFindRecordsWidgetParams","tree","catalogObjects","onLoadRecord","onLoadRecords","picks","onLoadedNodeClick","node","tableHeight","hideWidgetName","InquiryFindRecordsWidgetProps","params","key","className","style","CSSProperties","children","ReactNode","FindRecordsProps","defaultListing","renderLayout","FindRecords","t0","$","_c","t1","t","paramValues","t2","typedTree","trees","linkedTrees","t3","entities","t4","filterElements","undefined","entityName","length","And","handleChoose","t5","defaultValue","t6","warning","t7","search","results","actions","idle","InquiryFindRecordsWidget","props"],"sources":["../../../../../src/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.tsx"],"sourcesContent":["/**\n * InquiryFindRecordsWidget — the search-forward hero of a modern inquiry\n * explore page, composed in code or in Page Assembler.\n *\n * The widget is a CARD SHELL around the shared `RecordFinder` — the same\n * finder the tree pane's + Load dialog renders, so finding a record works\n * identically from the dashboard and the sidebar (finder-unification,\n * 2026-08-27): quick search through `useInquirySearch`, one flat result list\n * with match highlighting under bolded entity labels, and advanced search in\n * a drawer hosting the shared `UdpAdvancedSearchBuilder` with the schema\n * field-picker tree.\n *\n * This file contributes the widget shell and the click-to-load wiring —\n * nothing else. The wiring is `FindRecords`, the finder with no card, which a\n * code-composed page lays out directly; the widget is that inside a card.\n * Two load contracts, in order of preference:\n *\n * 1. `onLoadRecord` / `onLoadRecords` — the finder's own `onChoose` /\n * `onChooseMany`, handed straight through. The v2 host (`InquiryV2`) passes\n * the SAME handlers its + Load dialog uses, so a row here loads exactly as\n * a row there: the fetched row is the record (no catalog round-trip), a\n * ticked set goes through the batch pipeline, and the host words the toast.\n * 2. `onLoadedNodeClick` — the node-to-load replay every inquiry host (v1\n * `InquiryContainer` included) already passes explore-page widgets. The\n * widget builds the record's identifier filters from the catalog, which is\n * why it needs `catalogObjects`; on a tenant whose catalog does not carry\n * the entity this path has nothing to name and does nothing — the reason\n * the v2 host supplies contract 1.\n *\n * ## Widget params (all supplied by the inquiry landing already)\n * | param | what it is |\n * |---|---|\n * | `tree` | the tree wire document — the searchable set is derived from it |\n * | `catalogObjects` | the catalog — identifier filters for the clicked row (contract 2) |\n * | `onLoadRecord` / `onLoadRecords` | load one / many finder rows (contract 1) |\n * | `onLoadedNodeClick` | load a record into the tree; the widget hands it a node-to-load, exactly as `RemindersWidget` does (contract 2) |\n * | `tableHeight` | accepted for JSON-page compatibility; the finder carries its own result heights |\n * | `hideWidgetName` | hide the card header (standard widget param) |\n *\n * ## Why the widget owns its card\n * NEITHER widget pipeline supplies chrome: `DashboardWidget` mounts the widget\n * bare inside its cell (its own `WidgetCard` is only reached on the not-found /\n * render-error branches), and v2's `UdpPageRenderer` mounts `<Component>` bare\n * in a grid cell. Every registry widget in this library therefore renders its\n * own card, and this one does the same — with the fluent `UdpCard` instead of\n * the MUI one. There is no double-card to guard against on either path.\n */\nimport React, { useCallback, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { UdpCard } from '../../../fluent-web-components/UdpCard';\nimport { UdpMessageBar } from '../../../fluent-web-components/UdpMessageBar';\nimport {\n RecordFinder,\n type RecordFinderProps\n} from '../../../../inquiry/v2/search/RecordFinder';\nimport {\n deriveSearchableEntities,\n resolveRowLabel,\n type SearchableEntity\n} from '../../../../inquiry/v2/search/searchModel';\nimport { fromWire } from '../../../../domain/inquiryTree/serialize';\nimport type { InquiryTreeWire } from '../../../../domain/inquiryTree/types';\nimport { useInstanceParamValues } from '../../../../inquiry/v2/api/useInstanceParamValues';\nimport { useLinkedTrees } from '../../../../inquiry/v2/api/queries';\n// The tree's own load-record recipe. Imported rather than re-derived so a row\n// clicked here resolves to exactly the record a tree click or a `?node` deep\n// link resolves to.\nimport { buildIdentifierFilterElements } from '../../../../inquiry/v2/tree/useInquiryMenu';\nimport { getSearchObject } from '../../../../utilities/search/SearchUtilities';\nimport { LogicalSearchOperatorEnums } from '../../../../enums/unitySystemEnums';\nimport type { CatalogObject } from '../../../../domain/inquiryTree';\n\n/** The node-to-load an inquiry host replays — v1's `getLoadedNodeObject` shape. */\ninterface NodeToLoad {\n apiMethodId: string;\n nodeDetails: { catalogReturnObject: string; nodeLabel: string };\n queryPayload: unknown;\n}\n\n/** One finder pick — the row the search returned, under its entity. */\nexport interface FinderPick {\n entity: SearchableEntity;\n row: Record<string, unknown>;\n}\n\nexport interface InquiryFindRecordsWidgetParams {\n /** The tree wire document, as an explore page's host hands it. */\n tree?: InquiryTreeWire | null;\n catalogObjects?: CatalogObject[] | null;\n /** Contract 1: load one finder row (the finder's `onChoose`). */\n onLoadRecord?: (entity: SearchableEntity, row: Record<string, unknown>) => void;\n /** Contract 1: load the ticked rows as one batch (the finder's `onChooseMany`). */\n onLoadRecords?: (picks: FinderPick[]) => void;\n /** Contract 2: replay a node-to-load (v1 hosts). */\n onLoadedNodeClick?: (node: NodeToLoad) => void;\n tableHeight?: string;\n hideWidgetName?: boolean;\n}\n\nexport interface InquiryFindRecordsWidgetProps {\n params?: InquiryFindRecordsWidgetParams;\n /** The registry contract's other props (`id`, `setParam`, `onDelete`, …). */\n [key: string]: unknown;\n className?: string;\n style?: React.CSSProperties;\n children?: React.ReactNode;\n}\n\nexport interface FindRecordsProps {\n params?: InquiryFindRecordsWidgetParams;\n /** Passed straight to the finder — see `RecordFinderProps`. */\n defaultListing?: RecordFinderProps['defaultListing'];\n renderLayout?: RecordFinderProps['renderLayout'];\n}\n\n/** The finder wired to an inquiry host's params, with no card around it. */\nexport const FindRecords = ({\n params,\n defaultListing,\n renderLayout\n}: FindRecordsProps) => {\n const { tree, catalogObjects, onLoadRecord, onLoadRecords, onLoadedNodeClick } =\n params ?? {};\n const { t } = useTranslation();\n\n const paramValues = useInstanceParamValues();\n const typedTree = useMemo(() => (tree ? fromWire(tree) : null), [tree]);\n const { trees: linkedTrees } = useLinkedTrees(typedTree);\n const entities = useMemo(\n () => deriveSearchableEntities(typedTree, linkedTrees, paramValues),\n [typedTree, linkedTrees, paramValues]\n );\n\n /**\n * Load the chosen record: name it by its identifier values and hand the\n * host the node-to-load it already knows how to replay.\n */\n const handleChoose = useCallback(\n (entity: SearchableEntity, row: Record<string, unknown>) => {\n const filterElements = buildIdentifierFilterElements(\n (catalogObjects ?? undefined) as never,\n entity.entityName,\n row\n );\n // Without identifiers there is no way to name this record to the server,\n // and an unfiltered payload would load an arbitrary one. Do nothing.\n if (!filterElements.length) return;\n onLoadedNodeClick?.({\n apiMethodId: entity.apiMethodId,\n nodeDetails: {\n catalogReturnObject: entity.entityName,\n nodeLabel: resolveRowLabel(entity, row)\n },\n queryPayload: getSearchObject(\n filterElements as never,\n 1,\n 1,\n true,\n LogicalSearchOperatorEnums.And\n )\n });\n },\n [catalogObjects, onLoadedNodeClick]\n );\n\n if (!entities.length) {\n // Nothing to search: the warning stands where the search row would.\n const warning = (\n <UdpMessageBar intent='warning' layout='multiline'>\n {t('inquiry.widgets.findRecords.notSearchable', {\n defaultValue:\n 'This page is not showing an inquiry tree that can be searched.'\n })}\n </UdpMessageBar>\n );\n return renderLayout\n ? renderLayout({\n search: warning,\n results: null,\n actions: null,\n idle: true\n })\n : warning;\n }\n\n return (\n <RecordFinder\n entities={entities}\n catalogObjects={catalogObjects}\n onChoose={onLoadRecord ?? handleChoose}\n onChooseMany={onLoadRecords}\n defaultListing={defaultListing}\n renderLayout={renderLayout}\n />\n );\n};\n\nexport const InquiryFindRecordsWidget = (\n props: InquiryFindRecordsWidgetProps\n) => {\n // Only `className` and `style` reach the card. The rest of the widget\n // contract (`id`, `setParam`, `onDelete`, `widgetType`, `layout`, …) is host\n // bookkeeping the MUI card used to swallow; a web component would put every\n // one of them on the DOM element as an unknown attribute.\n const { children, params, className, style } = props;\n const { t } = useTranslation();\n\n return (\n <UdpCard\n className={className}\n style={style}\n // Content-sized: a compact search band idle, the finder's own result\n // area once a search runs. On a JSON page the renderer's cell may be\n // taller; the card simply doesn't fill it.\n label={\n params?.hideWidgetName\n ? undefined\n : t('inquiry.widgets.findRecords.title', {\n defaultValue: 'Find records'\n })\n }\n >\n <FindRecords params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runtime.mjs";
|
|
2
|
-
import InquiryFindRecordsWidget from "./InquiryFindRecordsWidget.mjs";
|
|
2
|
+
import InquiryFindRecordsWidget, { FindRecords } from "./InquiryFindRecordsWidget.mjs";
|
|
3
3
|
//#region src/UI/widgets/library/InquiryFindRecordsWidget/index.ts
|
|
4
4
|
var InquiryFindRecordsWidget_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
+
FindRecords: () => FindRecords,
|
|
5
6
|
InquiryFindRecordsWidget: () => InquiryFindRecordsWidget,
|
|
6
7
|
default: () => InquiryFindRecordsWidget
|
|
7
8
|
});
|
|
8
9
|
//#endregion
|
|
9
|
-
export { InquiryFindRecordsWidget, InquiryFindRecordsWidget_exports, InquiryFindRecordsWidget as default };
|
|
10
|
+
export { FindRecords, InquiryFindRecordsWidget, InquiryFindRecordsWidget_exports, InquiryFindRecordsWidget as default };
|
|
10
11
|
|
|
11
12
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
* `RecentlyLoadedNodesWidget`, for explore pages composed in code or in Page
|
|
4
4
|
* Assembler.
|
|
5
5
|
*
|
|
6
|
-
* The history renders as LIST ROWS, not a grid:
|
|
7
|
-
*
|
|
6
|
+
* The history renders as LIST ROWS, not a grid: the record (with its entity
|
|
7
|
+
* beneath it on a mixed history), when it was loaded at the row's end, and one
|
|
8
|
+
* action (re-load it). A grid's sorting and
|
|
8
9
|
* column chrome earned nothing here — the list is always newest-first, and a
|
|
9
10
|
* row click is the whole interface. The avatar carries the record's identity
|
|
10
11
|
* the same way people-pickers do (`color="colorful"` keys a stable colour to
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
* keep passing it.
|
|
35
36
|
*/
|
|
36
37
|
import React from 'react';
|
|
38
|
+
import { UdpCard } from '../../../fluent-web-components/UdpCard';
|
|
37
39
|
import { type RecentlyLoadedWire } from '../../../../inquiry/v2/widgets/widgetRowModel';
|
|
38
40
|
export interface InquiryRecentRecordsWidgetParams {
|
|
39
41
|
recentlyLoadedNodes?: RecentlyLoadedWire[] | null;
|
|
@@ -41,6 +43,11 @@ export interface InquiryRecentRecordsWidgetParams {
|
|
|
41
43
|
onLoadedNodeClick?: (node: RecentlyLoadedWire) => void;
|
|
42
44
|
tableHeight?: string;
|
|
43
45
|
hideWidgetName?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The card's appearance. A page that is itself the canvas (the code-composed
|
|
48
|
+
* explore page) passes `subtle` so the widget reads as a section of it.
|
|
49
|
+
*/
|
|
50
|
+
appearance?: React.ComponentProps<typeof UdpCard>['appearance'];
|
|
44
51
|
}
|
|
45
52
|
export interface InquiryRecentRecordsWidgetProps {
|
|
46
53
|
params?: InquiryRecentRecordsWidgetParams;
|
package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InquiryRecentRecordsWidget.d.ts","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"InquiryRecentRecordsWidget.d.ts","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AAMjE,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,+CAA+C,CAAC;AAGvD,MAAM,WAAW,gCAAgC;IAC/C,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAC;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC;CACjE;AAED,MAAM,WAAW,+BAA+B;IAC9C,MAAM,CAAC,EAAE,gCAAgC,CAAC;IAC1C,+EAA6E;IAC7E,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAsBD,eAAO,MAAM,0BAA0B,+DAsHtC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
* `RecentlyLoadedNodesWidget`, for explore pages composed in code or in Page
|
|
4
4
|
* Assembler.
|
|
5
5
|
*
|
|
6
|
-
* The history renders as LIST ROWS, not a grid:
|
|
7
|
-
*
|
|
6
|
+
* The history renders as LIST ROWS, not a grid: the record (with its entity
|
|
7
|
+
* beneath it on a mixed history), when it was loaded at the row's end, and one
|
|
8
|
+
* action (re-load it). A grid's sorting and
|
|
8
9
|
* column chrome earned nothing here — the list is always newest-first, and a
|
|
9
10
|
* row click is the whole interface. The avatar carries the record's identity
|
|
10
11
|
* the same way people-pickers do (`color="colorful"` keys a stable colour to
|
|
@@ -44,6 +45,7 @@ import { UdpListItem } from '../../../fluent-web-components/UdpListItem';
|
|
|
44
45
|
import { UdpSpinner } from '../../../fluent-web-components/UdpSpinner';
|
|
45
46
|
import { UdpText } from '../../../fluent-web-components/UdpText';
|
|
46
47
|
import { toRecentRecordRows } from '../../../../inquiry/v2/widgets/widgetRowModel';
|
|
48
|
+
import rowStyles from '../../../../inquiry/v2/widgets/listRow.module.css';
|
|
47
49
|
/**
|
|
48
50
|
* "25 min ago" / "Yesterday"-style timestamp.
|
|
49
51
|
*
|
|
@@ -73,19 +75,19 @@ export const InquiryRecentRecordsWidget = (props) => {
|
|
|
73
75
|
// host bookkeeping the MUI card used to swallow; a web component would put
|
|
74
76
|
// every one of them on the DOM element as an unknown attribute.
|
|
75
77
|
const { children, params, className, style } = props;
|
|
76
|
-
const { recentlyLoadedNodes, loading, onLoadedNodeClick, hideWidgetName } = params !== null && params !== void 0 ? params : {};
|
|
78
|
+
const { recentlyLoadedNodes, loading, onLoadedNodeClick, hideWidgetName, appearance } = params !== null && params !== void 0 ? params : {};
|
|
77
79
|
const { t } = useTranslation();
|
|
78
|
-
// Newest first, always — recency is the list's whole
|
|
79
|
-
// so it is fixed rather than offered as a control.
|
|
80
|
-
const rows = useMemo(() => {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
// Newest first, always (toRecentRecordRows) — recency is the list's whole
|
|
81
|
+
// organizing principle, so it is fixed rather than offered as a control.
|
|
82
|
+
const rows = useMemo(() => toRecentRecordRows(recentlyLoadedNodes, t('inquiry.widgets.unnamedRecord', { defaultValue: 'Unnamed record' })), [recentlyLoadedNodes, t]);
|
|
83
|
+
// The entity is worth a line only when the history mixes entities; on a
|
|
84
|
+
// single-entity tree it would repeat the same word under every name.
|
|
85
|
+
const mixedEntities = new Set(rows.map((row) => row.entity)).size > 1;
|
|
84
86
|
const handleRowClick = (row) => {
|
|
85
87
|
if (row.node)
|
|
86
88
|
onLoadedNodeClick === null || onLoadedNodeClick === void 0 ? void 0 : onLoadedNodeClick(row.node);
|
|
87
89
|
};
|
|
88
|
-
return (React.createElement(UdpCard, { className: className, style: style,
|
|
90
|
+
return (React.createElement(UdpCard, { className: className, style: style, appearance: appearance,
|
|
89
91
|
// The card fills the region the composition sized; on a JSON page that
|
|
90
92
|
// region is the renderer's fixed-height cell. Either way the body below
|
|
91
93
|
// the header is a definite box for the list's scroll area.
|
|
@@ -93,15 +95,13 @@ export const InquiryRecentRecordsWidget = (props) => {
|
|
|
93
95
|
? undefined
|
|
94
96
|
: t('inquiry.widgets.recentRecords.title', {
|
|
95
97
|
defaultValue: 'Recently loaded'
|
|
96
|
-
}) },
|
|
98
|
+
}) }, loading && React.createElement(UdpSpinner, { size: "tiny" }), !loading && !rows.length && (React.createElement(UdpText, { variant: "caption1", as: "p" }, t('inquiry.widgets.recentRecords.empty', {
|
|
97
99
|
defaultValue: 'No records loaded yet.'
|
|
98
|
-
}))), !loading && rows.length > 0 && (React.createElement(UdpList, { interactive: true, showDivider: true }, rows.map((row,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
// position is the only honest key for a replayable log.
|
|
104
|
-
key: `${row.dateLoaded}-${index}`, value: `${row.dateLoaded}-${index}`, size: "small", label: row.label, subtitle: row.entity || undefined, onItemAction: () => handleRowClick(row) }, React.createElement(UdpAvatar, { slot: "start", size: 32, name: row.label, color: "colorful", "aria-hidden": "true" }), React.createElement(UdpText, { slot: "end", variant: "caption1" }, relativeLoadedAt(row.dateLoaded, t('inquiry.widgets.recentRecords.justNow', {
|
|
100
|
+
}))), !loading && rows.length > 0 && (React.createElement(UdpFlexbox, { className: rowStyles.bleed, grow: 1, basis: "0", overflow: "auto", wrap: "nowrap" }, React.createElement(UdpList, { className: rowStyles.flush, interactive: true, showDivider: true }, rows.map((row) => (React.createElement(UdpListItem, { key: row.key, value: row.key, size: "small", subtitle: (mixedEntities && row.entity) || undefined, onItemAction: () => handleRowClick(row) }, React.createElement("span", { slot: "title", className: rowStyles.oneLine, title: row.label }, row.label), React.createElement(UdpAvatar, { slot: "start", size: 32, name: row.label,
|
|
101
|
+
// Fluent derives no initials from a letterless name ("1001").
|
|
102
|
+
initials: /\p{L}/u.test(row.label)
|
|
103
|
+
? undefined
|
|
104
|
+
: row.label.slice(0, 2), color: "colorful", "aria-hidden": "true" }), React.createElement(UdpText, { slot: "end", variant: "caption1" }, relativeLoadedAt(row.dateLoaded, t('inquiry.widgets.recentRecords.justNow', {
|
|
105
105
|
defaultValue: 'just now'
|
|
106
106
|
}))))))))), children));
|
|
107
107
|
};
|
package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InquiryRecentRecordsWidget.js","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"InquiryRecentRecordsWidget.js","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AACjE,OAAO,EACL,kBAAkB,EAGnB,MAAM,+CAA+C,CAAC;AACvD,OAAO,SAAS,MAAM,mDAAmD,CAAC;AAwB1E;;;;;;;;;;;GAWG;AACH,MAAM,gBAAgB,GAAG,CAAC,OAAe,EAAE,YAAoB,EAAU,EAAE,CAAC;;IAC1E,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;I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AI,EAAC,OAAO,EACZ,SAAS,EAAE,SAAS,CAAC,OAAO,EAC5B,KAAK,EAAE,GAAG,CAAC,KAAK,IAEf,GAAG,CAAC,KAAK,CACL,EACP,oBAAC,SAAS,IACR,IAAI,EAAC,OAAO,EACZ,IAAI,EAAE,EAAE,EACR,IAAI,EAAE,GAAG,CAAC,KAAK;QACf,8DAA8D;QAC9D,QAAQ,EACN,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;YACtB,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAE3B,KAAK,EAAC,UAAU,iBACJ,MAAM,GAClB,EAGF,oBAAC,OAAO,IAAC,IAAI,EAAC,KAAK,EAAC,OAAO,EAAC,UAAU,IACnC,gBAAgB,CACf,GAAG,CAAC,UAAU,EACd,CAAC,CAAC,uCAAuC,EAAE;QACzC,YAAY,EAAE,UAAU;KACzB,CAAC,CACH,CACO,CACE,CACf,CAAC,CACM,CACC,CACd,EACA,QAAQ,CACD,CACX,CAAC;AAAA,CACH,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -10,14 +10,16 @@ import { toRecentRecordRows } from "../../../../inquiry/v2/widgets/widgetRowMode
|
|
|
10
10
|
import React from "react";
|
|
11
11
|
import { useTranslation } from "react-i18next";
|
|
12
12
|
import { DateTime } from "luxon";
|
|
13
|
+
import rowStyles from "../../../../inquiry/v2/widgets/listRow.module.css";
|
|
13
14
|
//#region src/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.tsx
|
|
14
15
|
/**
|
|
15
16
|
* InquiryRecentRecordsWidget — the modern replacement for
|
|
16
17
|
* `RecentlyLoadedNodesWidget`, for explore pages composed in code or in Page
|
|
17
18
|
* Assembler.
|
|
18
19
|
*
|
|
19
|
-
* The history renders as LIST ROWS, not a grid:
|
|
20
|
-
*
|
|
20
|
+
* The history renders as LIST ROWS, not a grid: the record (with its entity
|
|
21
|
+
* beneath it on a mixed history), when it was loaded at the row's end, and one
|
|
22
|
+
* action (re-load it). A grid's sorting and
|
|
21
23
|
* column chrome earned nothing here — the list is always newest-first, and a
|
|
22
24
|
* row click is the whole interface. The avatar carries the record's identity
|
|
23
25
|
* the same way people-pickers do (`color="colorful"` keys a stable colour to
|
|
@@ -66,7 +68,7 @@ const relativeLoadedAt = (isoDate, justNowLabel) => {
|
|
|
66
68
|
return at.toRelative() ?? "";
|
|
67
69
|
};
|
|
68
70
|
const InquiryRecentRecordsWidget = (props) => {
|
|
69
|
-
const $ = c(
|
|
71
|
+
const $ = c(33);
|
|
70
72
|
const { children, params, className, style } = props;
|
|
71
73
|
let t0;
|
|
72
74
|
if ($[0] !== params) {
|
|
@@ -74,109 +76,119 @@ const InquiryRecentRecordsWidget = (props) => {
|
|
|
74
76
|
$[0] = params;
|
|
75
77
|
$[1] = t0;
|
|
76
78
|
} else t0 = $[1];
|
|
77
|
-
const { recentlyLoadedNodes, loading, onLoadedNodeClick, hideWidgetName } = t0;
|
|
79
|
+
const { recentlyLoadedNodes, loading, onLoadedNodeClick, hideWidgetName, appearance } = t0;
|
|
78
80
|
const { t } = useTranslation();
|
|
79
81
|
let t1;
|
|
80
82
|
if ($[2] !== recentlyLoadedNodes || $[3] !== t) {
|
|
81
|
-
t1 =
|
|
83
|
+
t1 = toRecentRecordRows(recentlyLoadedNodes, t("inquiry.widgets.unnamedRecord", { defaultValue: "Unnamed record" }));
|
|
82
84
|
$[2] = recentlyLoadedNodes;
|
|
83
85
|
$[3] = t;
|
|
84
86
|
$[4] = t1;
|
|
85
87
|
} else t1 = $[4];
|
|
86
88
|
const rows = t1;
|
|
87
89
|
let t2;
|
|
88
|
-
if ($[5] !==
|
|
89
|
-
t2 = (
|
|
90
|
-
|
|
91
|
-
};
|
|
92
|
-
$[5] = onLoadedNodeClick;
|
|
90
|
+
if ($[5] !== rows) {
|
|
91
|
+
t2 = new Set(rows.map(_temp));
|
|
92
|
+
$[5] = rows;
|
|
93
93
|
$[6] = t2;
|
|
94
94
|
} else t2 = $[6];
|
|
95
|
-
const
|
|
95
|
+
const mixedEntities = t2.size > 1;
|
|
96
96
|
let t3;
|
|
97
|
-
if ($[7] !==
|
|
98
|
-
t3 =
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
$[
|
|
102
|
-
|
|
97
|
+
if ($[7] !== onLoadedNodeClick) {
|
|
98
|
+
t3 = (row_0) => {
|
|
99
|
+
if (row_0.node) onLoadedNodeClick?.(row_0.node);
|
|
100
|
+
};
|
|
101
|
+
$[7] = onLoadedNodeClick;
|
|
102
|
+
$[8] = t3;
|
|
103
|
+
} else t3 = $[8];
|
|
104
|
+
const handleRowClick = t3;
|
|
103
105
|
let t4;
|
|
104
|
-
if ($[10] !==
|
|
105
|
-
t4 =
|
|
106
|
-
$[
|
|
106
|
+
if ($[9] !== hideWidgetName || $[10] !== t) {
|
|
107
|
+
t4 = hideWidgetName ? void 0 : t("inquiry.widgets.recentRecords.title", { defaultValue: "Recently loaded" });
|
|
108
|
+
$[9] = hideWidgetName;
|
|
109
|
+
$[10] = t;
|
|
107
110
|
$[11] = t4;
|
|
108
111
|
} else t4 = $[11];
|
|
109
112
|
let t5;
|
|
110
|
-
if ($[12] !== loading
|
|
111
|
-
t5 =
|
|
113
|
+
if ($[12] !== loading) {
|
|
114
|
+
t5 = loading && /* @__PURE__ */ React.createElement(UdpSpinner, { size: "tiny" });
|
|
115
|
+
$[12] = loading;
|
|
116
|
+
$[13] = t5;
|
|
117
|
+
} else t5 = $[13];
|
|
118
|
+
let t6;
|
|
119
|
+
if ($[14] !== loading || $[15] !== rows.length || $[16] !== t) {
|
|
120
|
+
t6 = !loading && !rows.length && /* @__PURE__ */ React.createElement(UdpText, {
|
|
112
121
|
variant: "caption1",
|
|
113
122
|
as: "p"
|
|
114
123
|
}, t("inquiry.widgets.recentRecords.empty", { defaultValue: "No records loaded yet." }));
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
117
|
-
$[
|
|
118
|
-
$[
|
|
119
|
-
} else
|
|
120
|
-
let
|
|
121
|
-
if ($[
|
|
122
|
-
|
|
124
|
+
$[14] = loading;
|
|
125
|
+
$[15] = rows.length;
|
|
126
|
+
$[16] = t;
|
|
127
|
+
$[17] = t6;
|
|
128
|
+
} else t6 = $[17];
|
|
129
|
+
let t7;
|
|
130
|
+
if ($[18] !== handleRowClick || $[19] !== loading || $[20] !== mixedEntities || $[21] !== rows || $[22] !== t) {
|
|
131
|
+
t7 = !loading && rows.length > 0 && /* @__PURE__ */ React.createElement(UdpFlexbox, {
|
|
132
|
+
className: rowStyles.bleed,
|
|
133
|
+
grow: 1,
|
|
134
|
+
basis: "0",
|
|
135
|
+
overflow: "auto",
|
|
136
|
+
wrap: "nowrap"
|
|
137
|
+
}, /* @__PURE__ */ React.createElement(UdpList, {
|
|
138
|
+
className: rowStyles.flush,
|
|
123
139
|
interactive: true,
|
|
124
140
|
showDivider: true
|
|
125
|
-
}, rows.map((
|
|
126
|
-
key:
|
|
127
|
-
value:
|
|
141
|
+
}, rows.map((row_1) => /* @__PURE__ */ React.createElement(UdpListItem, {
|
|
142
|
+
key: row_1.key,
|
|
143
|
+
value: row_1.key,
|
|
128
144
|
size: "small",
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
145
|
+
subtitle: mixedEntities && row_1.entity || void 0,
|
|
146
|
+
onItemAction: () => handleRowClick(row_1)
|
|
147
|
+
}, /* @__PURE__ */ React.createElement("span", {
|
|
148
|
+
slot: "title",
|
|
149
|
+
className: rowStyles.oneLine,
|
|
150
|
+
title: row_1.label
|
|
151
|
+
}, row_1.label), /* @__PURE__ */ React.createElement(UdpAvatar, {
|
|
133
152
|
slot: "start",
|
|
134
153
|
size: 32,
|
|
135
|
-
name:
|
|
154
|
+
name: row_1.label,
|
|
155
|
+
initials: /\p{L}/u.test(row_1.label) ? void 0 : row_1.label.slice(0, 2),
|
|
136
156
|
color: "colorful",
|
|
137
157
|
"aria-hidden": "true"
|
|
138
158
|
}), /* @__PURE__ */ React.createElement(UdpText, {
|
|
139
159
|
slot: "end",
|
|
140
160
|
variant: "caption1"
|
|
141
|
-
}, relativeLoadedAt(
|
|
142
|
-
$[
|
|
143
|
-
$[
|
|
144
|
-
$[
|
|
145
|
-
$[
|
|
146
|
-
$[
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
if ($[21] !== t4 || $[22] !== t5 || $[23] !== t6) {
|
|
150
|
-
t7 = /* @__PURE__ */ React.createElement(UdpFlexbox, {
|
|
151
|
-
grow: 1,
|
|
152
|
-
basis: "0",
|
|
153
|
-
overflow: "auto",
|
|
154
|
-
wrap: "nowrap"
|
|
155
|
-
}, t4, t5, t6);
|
|
156
|
-
$[21] = t4;
|
|
157
|
-
$[22] = t5;
|
|
158
|
-
$[23] = t6;
|
|
159
|
-
$[24] = t7;
|
|
160
|
-
} else t7 = $[24];
|
|
161
|
+
}, relativeLoadedAt(row_1.dateLoaded, t("inquiry.widgets.recentRecords.justNow", { defaultValue: "just now" })))))));
|
|
162
|
+
$[18] = handleRowClick;
|
|
163
|
+
$[19] = loading;
|
|
164
|
+
$[20] = mixedEntities;
|
|
165
|
+
$[21] = rows;
|
|
166
|
+
$[22] = t;
|
|
167
|
+
$[23] = t7;
|
|
168
|
+
} else t7 = $[23];
|
|
161
169
|
let t8;
|
|
162
|
-
if ($[25] !== children || $[26] !== className || $[27] !== style || $[28] !==
|
|
170
|
+
if ($[24] !== appearance || $[25] !== children || $[26] !== className || $[27] !== style || $[28] !== t4 || $[29] !== t5 || $[30] !== t6 || $[31] !== t7) {
|
|
163
171
|
t8 = /* @__PURE__ */ React.createElement(UdpCard, {
|
|
164
172
|
className,
|
|
165
173
|
style,
|
|
174
|
+
appearance,
|
|
166
175
|
height: "100%",
|
|
167
|
-
label:
|
|
168
|
-
}, t7, children);
|
|
176
|
+
label: t4
|
|
177
|
+
}, t5, t6, t7, children);
|
|
178
|
+
$[24] = appearance;
|
|
169
179
|
$[25] = children;
|
|
170
180
|
$[26] = className;
|
|
171
181
|
$[27] = style;
|
|
172
|
-
$[28] =
|
|
173
|
-
$[29] =
|
|
174
|
-
$[30] =
|
|
175
|
-
|
|
182
|
+
$[28] = t4;
|
|
183
|
+
$[29] = t5;
|
|
184
|
+
$[30] = t6;
|
|
185
|
+
$[31] = t7;
|
|
186
|
+
$[32] = t8;
|
|
187
|
+
} else t8 = $[32];
|
|
176
188
|
return t8;
|
|
177
189
|
};
|
|
178
|
-
function _temp(
|
|
179
|
-
return
|
|
190
|
+
function _temp(row) {
|
|
191
|
+
return row.entity;
|
|
180
192
|
}
|
|
181
193
|
//#endregion
|
|
182
194
|
export { InquiryRecentRecordsWidget as default };
|
package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InquiryRecentRecordsWidget.mjs","names":["React","useMemo","DateTime","useTranslation","UdpAvatar","UdpCard","UdpFlexbox","UdpList","UdpListItem","UdpSpinner","UdpText","toRecentRecordRows","RecentlyLoadedWire","RecentRecordRow","InquiryRecentRecordsWidgetParams","recentlyLoadedNodes","loading","onLoadedNodeClick","node","tableHeight","hideWidgetName","InquiryRecentRecordsWidgetProps","params","key","className","style","CSSProperties","children","ReactNode","relativeLoadedAt","isoDate","justNowLabel","at","fromISO","isValid","now","toRelative","InquiryRecentRecordsWidget","props","$","_c","t0","t","t1","mapped","defaultValue","sort","_temp","rows","t2","row","handleRowClick","t3","undefined","t4","t5","length","t6","map","row_0","index","dateLoaded","label","entity","t7","t8","a","b","localeCompare"],"sources":["../../../../../src/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.tsx"],"sourcesContent":["/**\n * InquiryRecentRecordsWidget — the modern replacement for\n * `RecentlyLoadedNodesWidget`, for explore pages composed in code or in Page\n * Assembler.\n *\n * The history renders as LIST ROWS, not a grid: three fixed facts per entry\n * (record, entity, when) with one action (re-load it). A grid's sorting and\n * column chrome earned nothing here — the list is always newest-first, and a\n * row click is the whole interface. The avatar carries the record's identity\n * the same way people-pickers do (`color=\"colorful\"` keys a stable colour to\n * the label), and the entity reads in words in the subtitle.\n *\n * ## Why the widget owns its card\n * NEITHER widget pipeline supplies chrome: `DashboardWidget` mounts the widget\n * bare inside its cell (its own `WidgetCard` is only reached on the not-found /\n * render-error branches), and v2's `UdpPageRenderer` mounts `<Component>` bare\n * in a grid cell. Every registry widget in this library therefore renders its\n * own card, and this one does the same — with the fluent card instead of the\n * MUI one. There is no double-card to guard against on either path.\n *\n * The legacy widget is NOT removed — v1 explore pages still name it.\n *\n * ## Widget params (all supplied by the inquiry landing already)\n * | param | what it is |\n * |---|---|\n * | `recentlyLoadedNodes` | the tree's recently-loaded history (`RecentlyLoadedNode[]`) |\n * | `loading` | true while that history is being fetched |\n * | `onLoadedNodeClick` | replay one history entry back into the tree — the row click |\n * | `tableHeight` | accepted for JSON-page compatibility; the list scrolls in the card and no longer sizes off it |\n * | `hideWidgetName` | hide the card header (standard widget param) |\n *\n * `tree` is deliberately NOT consumed: the legacy table only needed it to look\n * up a per-entity icon, and the entity now reads in words. The landing may\n * keep passing it.\n */\nimport React, { useMemo } from 'react';\nimport { DateTime } from 'luxon';\nimport { useTranslation } from 'react-i18next';\nimport { UdpAvatar } from '../../../fluent-web-components/UdpAvatar';\nimport { UdpCard } from '../../../fluent-web-components/UdpCard';\nimport { UdpFlexbox } from '../../../fluent-web-components/UdpFlexbox';\nimport { UdpList } from '../../../fluent-web-components/UdpList';\nimport { UdpListItem } from '../../../fluent-web-components/UdpListItem';\nimport { UdpSpinner } from '../../../fluent-web-components/UdpSpinner';\nimport { UdpText } from '../../../fluent-web-components/UdpText';\nimport {\n toRecentRecordRows,\n type RecentlyLoadedWire,\n type RecentRecordRow\n} from '../../../../inquiry/v2/widgets/widgetRowModel';\n\nexport interface InquiryRecentRecordsWidgetParams {\n recentlyLoadedNodes?: RecentlyLoadedWire[] | null;\n loading?: boolean;\n onLoadedNodeClick?: (node: RecentlyLoadedWire) => void;\n tableHeight?: string;\n hideWidgetName?: boolean;\n}\n\nexport interface InquiryRecentRecordsWidgetProps {\n params?: InquiryRecentRecordsWidgetParams;\n /** The registry contract's other props (`id`, `setParam`, `onDelete`, …). */\n [key: string]: unknown;\n className?: string;\n style?: React.CSSProperties;\n children?: React.ReactNode;\n}\n\n/**\n * \"25 min ago\" / \"Yesterday\"-style timestamp.\n *\n * KNOWN DATA DEFECT: the v1 integration service stamps `dateLoaded` in the API\n * server's OWN local clock with no zone marker — neither local-parsing nor the\n * platform's parse-as-UTC convention renders it truthfully (verified 2026-08-27:\n * fresh loads read \"in 1 hour\" local-parsed, \"5 hours ago\" UTC-parsed for a\n * PDT user against the dev server). Until the backend stamps UTC with `Z`,\n * parse as written and clamp: a load history can never be in the future, so\n * anything that parses ahead of now reads \"just now\". An entry the server\n * never dated renders nothing rather than \"Invalid DateTime\".\n */\nconst relativeLoadedAt = (isoDate: string, justNowLabel: string): string => {\n if (!isoDate) return '';\n const at = DateTime.fromISO(isoDate);\n if (!at.isValid) return '';\n if (at > DateTime.now()) return justNowLabel;\n return at.toRelative() ?? '';\n};\n\nexport const InquiryRecentRecordsWidget = (\n props: InquiryRecentRecordsWidgetProps\n) => {\n // Only `className` and `style` reach the card. The rest of the widget\n // contract (`id`, `setParam`, `onDelete`, `widgetType`, `layout`, …) is\n // host bookkeeping the MUI card used to swallow; a web component would put\n // every one of them on the DOM element as an unknown attribute.\n const { children, params, className, style } = props;\n const { recentlyLoadedNodes, loading, onLoadedNodeClick, hideWidgetName } =\n params ?? {};\n const { t } = useTranslation();\n\n // Newest first, always — recency is the list's whole organizing principle,\n // so it is fixed rather than offered as a control.\n const rows = useMemo(() => {\n const mapped = toRecentRecordRows(\n recentlyLoadedNodes,\n t('inquiry.widgets.unnamedRecord', { defaultValue: 'Unnamed record' })\n );\n return [...mapped].sort((a, b) => b.dateLoaded.localeCompare(a.dateLoaded));\n }, [recentlyLoadedNodes, t]);\n\n const handleRowClick = (row: RecentRecordRow) => {\n if (row.node) onLoadedNodeClick?.(row.node);\n };\n\n return (\n <UdpCard\n className={className}\n style={style}\n // The card fills the region the composition sized; on a JSON page that\n // region is the renderer's fixed-height cell. Either way the body below\n // the header is a definite box for the list's scroll area.\n height='100%'\n label={\n hideWidgetName\n ? undefined\n : t('inquiry.widgets.recentRecords.title', {\n defaultValue: 'Recently loaded'\n })\n }\n >\n <UdpFlexbox grow={1} basis='0' overflow='auto' wrap='nowrap'>\n {loading && <UdpSpinner size='tiny' />}\n\n {!loading && !rows.length && (\n <UdpText variant='caption1' as='p'>\n {t('inquiry.widgets.recentRecords.empty', {\n defaultValue: 'No records loaded yet.'\n })}\n </UdpText>\n )}\n\n {!loading && rows.length > 0 && (\n <UdpList interactive showDivider>\n {rows.map((row, index) => (\n <UdpListItem\n // History entries carry no id and the same record can repeat;\n // position is the only honest key for a replayable log.\n key={`${row.dateLoaded}-${index}`}\n value={`${row.dateLoaded}-${index}`}\n size='small'\n label={row.label}\n subtitle={row.entity || undefined}\n onItemAction={() => handleRowClick(row)}\n >\n <UdpAvatar\n slot='start'\n size={32}\n name={row.label}\n color='colorful'\n aria-hidden='true'\n />\n <UdpText slot='end' variant='caption1'>\n {relativeLoadedAt(\n row.dateLoaded,\n t('inquiry.widgets.recentRecords.justNow', {\n defaultValue: 'just now'\n })\n )}\n </UdpText>\n </UdpListItem>\n ))}\n </UdpList>\n )}\n </UdpFlexbox>\n {children}\n </UdpCard>\n );\n};\n\nexport default InquiryRecentRecordsWidget;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFA,MAAM6B,oBAAoBC,SAAiBC,iBAAiC;AAC1E,KAAI,CAACD,QAAS,QAAO;CACrB,MAAME,KAAK9B,SAAS+B,QAAQH,QAAQ;AACpC,KAAI,CAACE,GAAGE,QAAS,QAAO;AACxB,KAAIF,KAAK9B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AAA,MAAAG;AAAAH,IAAA,MAAAkB;OAAAA,MAAAlB,EAAA;CAAA,IAAAyB;AAAA,KAAAzB,EAAA,QAAAe,MAAAf,EAAA,QAAAgB,MAAAhB,EAAA,QAAAkB,IAAA;AA1CHO,OAAA,sBAAA,cAAC,YAAD;GAAkB,MAAA;GAAS,OAAA;GAAa,UAAA;GAAY,MAAA;GA2CvC,EA1CVV,IAEAC,IAQAE,GAgCU;AAAAlB,IAAA,MAAAe;AAAAf,IAAA,MAAAgB;AAAAhB,IAAA,MAAAkB;AAAAlB,IAAA,MAAAyB;OAAAA,MAAAzB,EAAA;CAAA,IAAA0B;AAAA,KAAA1B,EAAA,QAAAZ,YAAAY,EAAA,QAAAf,aAAAe,EAAA,QAAAd,SAAAc,EAAA,QAAAa,MAAAb,EAAA,QAAAyB,IAAA;AA1DfC,OAAA,sBAAA,cAAC,SAAD;GACazC;GACJC;GAIA,QAAA;GAEL,OAAA2B;GAoDM,EA7CRY,IA4CCrC,SACO;AAAAY,IAAA,MAAAZ;AAAAY,IAAA,MAAAf;AAAAe,IAAA,MAAAd;AAAAc,IAAA,MAAAa;AAAAb,IAAA,MAAAyB;AAAAzB,IAAA,MAAA0B;OAAAA,MAAA1B,EAAA;AAAA,QA5DV0B;;AA3BsC,SAAAlB,MAAAmB,GAAAC,GAAA;AAAA,QAmBJA,EAACN,WAAWO,cAAeF,EAACL,WAAY"}
|
|
1
|
+
{"version":3,"file":"InquiryRecentRecordsWidget.mjs","names":["React","useMemo","DateTime","useTranslation","UdpAvatar","UdpCard","UdpFlexbox","UdpList","UdpListItem","UdpSpinner","UdpText","toRecentRecordRows","RecentlyLoadedWire","RecentRecordRow","rowStyles","InquiryRecentRecordsWidgetParams","recentlyLoadedNodes","loading","onLoadedNodeClick","node","tableHeight","hideWidgetName","appearance","ComponentProps","InquiryRecentRecordsWidgetProps","params","key","className","style","CSSProperties","children","ReactNode","relativeLoadedAt","isoDate","justNowLabel","at","fromISO","isValid","now","toRelative","InquiryRecentRecordsWidget","props","$","_c","t0","t","t1","defaultValue","rows","t2","Set","map","_temp","mixedEntities","size","t3","row_0","row","handleRowClick","t4","undefined","t5","t6","length","t7","bleed","flush","row_1","entity","oneLine","label","test","slice","dateLoaded","t8"],"sources":["../../../../../src/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.tsx"],"sourcesContent":["/**\n * InquiryRecentRecordsWidget — the modern replacement for\n * `RecentlyLoadedNodesWidget`, for explore pages composed in code or in Page\n * Assembler.\n *\n * The history renders as LIST ROWS, not a grid: the record (with its entity\n * beneath it on a mixed history), when it was loaded at the row's end, and one\n * action (re-load it). A grid's sorting and\n * column chrome earned nothing here — the list is always newest-first, and a\n * row click is the whole interface. The avatar carries the record's identity\n * the same way people-pickers do (`color=\"colorful\"` keys a stable colour to\n * the label), and the entity reads in words in the subtitle.\n *\n * ## Why the widget owns its card\n * NEITHER widget pipeline supplies chrome: `DashboardWidget` mounts the widget\n * bare inside its cell (its own `WidgetCard` is only reached on the not-found /\n * render-error branches), and v2's `UdpPageRenderer` mounts `<Component>` bare\n * in a grid cell. Every registry widget in this library therefore renders its\n * own card, and this one does the same — with the fluent card instead of the\n * MUI one. There is no double-card to guard against on either path.\n *\n * The legacy widget is NOT removed — v1 explore pages still name it.\n *\n * ## Widget params (all supplied by the inquiry landing already)\n * | param | what it is |\n * |---|---|\n * | `recentlyLoadedNodes` | the tree's recently-loaded history (`RecentlyLoadedNode[]`) |\n * | `loading` | true while that history is being fetched |\n * | `onLoadedNodeClick` | replay one history entry back into the tree — the row click |\n * | `tableHeight` | accepted for JSON-page compatibility; the list scrolls in the card and no longer sizes off it |\n * | `hideWidgetName` | hide the card header (standard widget param) |\n *\n * `tree` is deliberately NOT consumed: the legacy table only needed it to look\n * up a per-entity icon, and the entity now reads in words. The landing may\n * keep passing it.\n */\nimport React, { useMemo } from 'react';\nimport { DateTime } from 'luxon';\nimport { useTranslation } from 'react-i18next';\nimport { UdpAvatar } from '../../../fluent-web-components/UdpAvatar';\nimport { UdpCard } from '../../../fluent-web-components/UdpCard';\nimport { UdpFlexbox } from '../../../fluent-web-components/UdpFlexbox';\nimport { UdpList } from '../../../fluent-web-components/UdpList';\nimport { UdpListItem } from '../../../fluent-web-components/UdpListItem';\nimport { UdpSpinner } from '../../../fluent-web-components/UdpSpinner';\nimport { UdpText } from '../../../fluent-web-components/UdpText';\nimport {\n toRecentRecordRows,\n type RecentlyLoadedWire,\n type RecentRecordRow\n} from '../../../../inquiry/v2/widgets/widgetRowModel';\nimport rowStyles from '../../../../inquiry/v2/widgets/listRow.module.css';\n\nexport interface InquiryRecentRecordsWidgetParams {\n recentlyLoadedNodes?: RecentlyLoadedWire[] | null;\n loading?: boolean;\n onLoadedNodeClick?: (node: RecentlyLoadedWire) => void;\n tableHeight?: string;\n hideWidgetName?: boolean;\n /**\n * The card's appearance. A page that is itself the canvas (the code-composed\n * explore page) passes `subtle` so the widget reads as a section of it.\n */\n appearance?: React.ComponentProps<typeof UdpCard>['appearance'];\n}\n\nexport interface InquiryRecentRecordsWidgetProps {\n params?: InquiryRecentRecordsWidgetParams;\n /** The registry contract's other props (`id`, `setParam`, `onDelete`, …). */\n [key: string]: unknown;\n className?: string;\n style?: React.CSSProperties;\n children?: React.ReactNode;\n}\n\n/**\n * \"25 min ago\" / \"Yesterday\"-style timestamp.\n *\n * KNOWN DATA DEFECT: the v1 integration service stamps `dateLoaded` in the API\n * server's OWN local clock with no zone marker — neither local-parsing nor the\n * platform's parse-as-UTC convention renders it truthfully (verified 2026-08-27:\n * fresh loads read \"in 1 hour\" local-parsed, \"5 hours ago\" UTC-parsed for a\n * PDT user against the dev server). Until the backend stamps UTC with `Z`,\n * parse as written and clamp: a load history can never be in the future, so\n * anything that parses ahead of now reads \"just now\". An entry the server\n * never dated renders nothing rather than \"Invalid DateTime\".\n */\nconst relativeLoadedAt = (isoDate: string, justNowLabel: string): string => {\n if (!isoDate) return '';\n const at = DateTime.fromISO(isoDate);\n if (!at.isValid) return '';\n if (at > DateTime.now()) return justNowLabel;\n return at.toRelative() ?? '';\n};\n\nexport const InquiryRecentRecordsWidget = (\n props: InquiryRecentRecordsWidgetProps\n) => {\n // Only `className` and `style` reach the card. The rest of the widget\n // contract (`id`, `setParam`, `onDelete`, `widgetType`, `layout`, …) is\n // host bookkeeping the MUI card used to swallow; a web component would put\n // every one of them on the DOM element as an unknown attribute.\n const { children, params, className, style } = props;\n const {\n recentlyLoadedNodes,\n loading,\n onLoadedNodeClick,\n hideWidgetName,\n appearance\n } = params ?? {};\n const { t } = useTranslation();\n\n // Newest first, always (toRecentRecordRows) — recency is the list's whole\n // organizing principle, so it is fixed rather than offered as a control.\n const rows = useMemo(\n () =>\n toRecentRecordRows(\n recentlyLoadedNodes,\n t('inquiry.widgets.unnamedRecord', { defaultValue: 'Unnamed record' })\n ),\n [recentlyLoadedNodes, t]\n );\n\n // The entity is worth a line only when the history mixes entities; on a\n // single-entity tree it would repeat the same word under every name.\n const mixedEntities = new Set(rows.map((row) => row.entity)).size > 1;\n\n const handleRowClick = (row: RecentRecordRow) => {\n if (row.node) onLoadedNodeClick?.(row.node);\n };\n\n return (\n <UdpCard\n className={className}\n style={style}\n appearance={appearance}\n // The card fills the region the composition sized; on a JSON page that\n // region is the renderer's fixed-height cell. Either way the body below\n // the header is a definite box for the list's scroll area.\n height='100%'\n label={\n hideWidgetName\n ? undefined\n : t('inquiry.widgets.recentRecords.title', {\n defaultValue: 'Recently loaded'\n })\n }\n >\n {loading && <UdpSpinner size='tiny' />}\n\n {!loading && !rows.length && (\n <UdpText variant='caption1' as='p'>\n {t('inquiry.widgets.recentRecords.empty', {\n defaultValue: 'No records loaded yet.'\n })}\n </UdpText>\n )}\n\n {!loading && rows.length > 0 && (\n <UdpFlexbox\n className={rowStyles.bleed}\n grow={1}\n basis='0'\n overflow='auto'\n wrap='nowrap'\n >\n <UdpList className={rowStyles.flush} interactive showDivider>\n {rows.map((row) => (\n <UdpListItem\n key={row.key}\n value={row.key}\n size='small'\n subtitle={(mixedEntities && row.entity) || undefined}\n onItemAction={() => handleRowClick(row)}\n >\n <span\n slot='title'\n className={rowStyles.oneLine}\n title={row.label}\n >\n {row.label}\n </span>\n <UdpAvatar\n slot='start'\n size={32}\n name={row.label}\n // Fluent derives no initials from a letterless name (\"1001\").\n initials={\n /\\p{L}/u.test(row.label)\n ? undefined\n : row.label.slice(0, 2)\n }\n color='colorful'\n aria-hidden='true'\n />\n {/* When it was loaded closes the row at the column's far\n edge, so each row spans the column it sits in. */}\n <UdpText slot='end' variant='caption1'>\n {relativeLoadedAt(\n row.dateLoaded,\n t('inquiry.widgets.recentRecords.justNow', {\n defaultValue: 'just now'\n })\n )}\n </UdpText>\n </UdpListItem>\n ))}\n </UdpList>\n </UdpFlexbox>\n )}\n {children}\n </UdpCard>\n );\n};\n\nexport default InquiryRecentRecordsWidget;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuFA,MAAMgC,oBAAoBC,SAAiBC,iBAAiC;AAC1E,KAAI,CAACD,QAAS,QAAO;CACrB,MAAME,KAAKjC,SAASkC,QAAQH,QAAQ;AACpC,KAAI,CAACE,GAAGE,QAAS,QAAO;AACxB,KAAIF,KAAKjC,SAASoC,KAAK,CAAE,QAAOJ;AAChC,QAAOC,GAAGI,YAAY,IAAI;;AAG5B,MAAaC,8BAA6BC,UAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAOxC,MAAA,EAAAb,UAAAL,QAAAE,WAAAC,UAA+Ca;CAAM,IAAAG;AAAA,KAAAF,EAAA,OAAAjB,QAAA;AAOjDmB,OAAAnB,UAAA,EAAY;AAAAiB,IAAA,KAAAjB;AAAAiB,IAAA,KAAAE;OAAAA,MAAAF,EAAA;CANhB,MAAA,EAAA1B,qBAAAC,SAAAC,mBAAAG,gBAAAC,eAMIsB;CACJ,MAAA,EAAAC,MAAc1C,gBAAgB;CAAC,IAAA2C;AAAA,KAAAJ,EA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gB;AAAAhB,IAAA,MAAAzB;AAAAyB,IAAA,MAAAW;AAAAX,IAAA,MAAAM;AAAAN,IAAA,MAAAG;AAAAH,IAAA,MAAAsB;OAAAA,MAAAtB,EAAA;CAAA,IAAAgC;AAAA,KAAAhC,EAAA,QAAApB,cAAAoB,EAAA,QAAAZ,YAAAY,EAAA,QAAAf,aAAAe,EAAA,QAAAd,SAAAc,EAAA,QAAAiB,MAAAjB,EAAA,QAAAmB,MAAAnB,EAAA,QAAAoB,MAAApB,EAAA,QAAAsB,IAAA;AA7EHU,OAAA,sBAAA,cAAC,SAAD;GACa/C;GACJC;GACKN;GAIL,QAAA;GAEL,OAAAqC;GAsEM,EA/DPE,IAEAC,IAQAE,IAoDAlC,SACO;AAAAY,IAAA,MAAApB;AAAAoB,IAAA,MAAAZ;AAAAY,IAAA,MAAAf;AAAAe,IAAA,MAAAd;AAAAc,IAAA,MAAAiB;AAAAjB,IAAA,MAAAmB;AAAAnB,IAAA,MAAAoB;AAAApB,IAAA,MAAAsB;AAAAtB,IAAA,MAAAgC;OAAAA,MAAAhC,EAAA;AAAA,QA/EVgC;;AArCsC,SAAAtB,MAAAK,KAAA;AAAA,QA8BQA,IAAGW"}
|
|
@@ -26,17 +26,23 @@
|
|
|
26
26
|
* The legacy `RemindersWidget` is NOT removed — v1 JSON explore pages name it.
|
|
27
27
|
*/
|
|
28
28
|
import React from 'react';
|
|
29
|
+
import { UdpCard } from '../../../fluent-web-components/UdpCard';
|
|
30
|
+
import type { InquiryTreeWire } from '../../../../domain/inquiryTree/types';
|
|
29
31
|
import { type ReminderNodeToLoad } from './reminderRowModel';
|
|
30
|
-
import { type RemindersTreeWire } from './useInquiryReminders';
|
|
31
32
|
export interface InquiryRemindersWidgetParams {
|
|
32
33
|
/** The tree wire document — reminders outside its entities are not shown. */
|
|
33
|
-
tree?:
|
|
34
|
+
tree?: InquiryTreeWire | null;
|
|
34
35
|
/** The catalog — identifier fields for the record a clicked reminder names. */
|
|
35
36
|
catalogObjects?: unknown;
|
|
36
37
|
/** Load the named record into the tree (the row click). */
|
|
37
38
|
onLoadedNodeClick?: (node: ReminderNodeToLoad) => void;
|
|
38
39
|
/** Hide the card header (standard widget param). */
|
|
39
40
|
hideWidgetName?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The card's appearance. A page that is itself the canvas (the code-composed
|
|
43
|
+
* explore page) passes `subtle` so the widget reads as a section of it.
|
|
44
|
+
*/
|
|
45
|
+
appearance?: React.ComponentProps<typeof UdpCard>['appearance'];
|
|
40
46
|
}
|
|
41
47
|
export interface InquiryRemindersWidgetProps {
|
|
42
48
|
params?: InquiryRemindersWidgetParams;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InquiryRemindersWidget.d.ts","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,KAA+B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"InquiryRemindersWidget.d.ts","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,KAA+B,MAAM,OAAO,CAAC;AAIpD,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AAWjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAG5E,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,oBAAoB,CAAC;AAgB5B,MAAM,WAAW,4BAA4B;IAC3C,+EAA6E;IAC7E,IAAI,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAC9B,iFAA+E;IAC/E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2DAA2D;IAC3D,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACvD,oDAAoD;IACpD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC;CACjE;AAED,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,+EAA6E;IAC7E,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,sBAAsB,2DAsMlC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|