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
|
@@ -39,10 +39,13 @@ import { UdpSpinner } from '../../../fluent-web-components/UdpSpinner';
|
|
|
39
39
|
import { UdpText } from '../../../fluent-web-components/UdpText';
|
|
40
40
|
import { useActions } from '../../../../hooks/useActions';
|
|
41
41
|
import { SplitScreenTypeEnums } from '../../../../enums/unitySystemEnums';
|
|
42
|
+
import { fromWire } from '../../../../domain/inquiryTree/serialize';
|
|
43
|
+
import { useLinkedTrees } from '../../../../inquiry/v2/api/queries';
|
|
42
44
|
import { formatDateToLocaleString as formatDateUntyped } from '../../../../utilities/input/DateUtilities';
|
|
43
45
|
import { buildReminderNodeToLoad, reminderOverdue } from './reminderRowModel';
|
|
44
46
|
import { useInquiryReminders } from './useInquiryReminders';
|
|
45
47
|
import { ReminderCompleteSwitch } from './ReminderCompleteSwitch';
|
|
48
|
+
import rowStyles from '../../../../inquiry/v2/widgets/listRow.module.css';
|
|
46
49
|
/**
|
|
47
50
|
* Typed boundary over the untyped shared date helper: its `luxonFormat`
|
|
48
51
|
* parameter infers as `string` from its default value, but every caller passes
|
|
@@ -56,10 +59,12 @@ export const InquiryRemindersWidget = (props) => {
|
|
|
56
59
|
// bookkeeping the MUI card used to swallow; a web component would put every
|
|
57
60
|
// one of them on the DOM element as an unknown attribute.
|
|
58
61
|
const { children, params, className, style } = props;
|
|
59
|
-
const { tree, catalogObjects, onLoadedNodeClick, hideWidgetName } = params !== null && params !== void 0 ? params : {};
|
|
62
|
+
const { tree, catalogObjects, onLoadedNodeClick, hideWidgetName, appearance } = params !== null && params !== void 0 ? params : {};
|
|
60
63
|
const { t } = useTranslation();
|
|
61
64
|
const { openSplitScreen } = useActions();
|
|
62
|
-
const
|
|
65
|
+
const typedTree = useMemo(() => (tree ? fromWire(tree) : null), [tree]);
|
|
66
|
+
const { reminders, loading, warnings, saving, setAcknowledged } = useInquiryReminders(typedTree);
|
|
67
|
+
const { trees: linkedTrees } = useLinkedTrees(typedTree);
|
|
63
68
|
// Newest first, always — the fetch returns whatever order the server gave it.
|
|
64
69
|
const sorted = useMemo(() => {
|
|
65
70
|
const at = (reminder) => {
|
|
@@ -78,7 +83,7 @@ export const InquiryRemindersWidget = (props) => {
|
|
|
78
83
|
*/
|
|
79
84
|
const handleOpen = useCallback((reminder) => {
|
|
80
85
|
var _a;
|
|
81
|
-
onLoadedNodeClick === null || onLoadedNodeClick === void 0 ? void 0 : onLoadedNodeClick(buildReminderNodeToLoad(reminder,
|
|
86
|
+
onLoadedNodeClick === null || onLoadedNodeClick === void 0 ? void 0 : onLoadedNodeClick(buildReminderNodeToLoad(reminder, typedTree, linkedTrees, catalogObjects));
|
|
82
87
|
openSplitScreen({
|
|
83
88
|
open: true,
|
|
84
89
|
action: null,
|
|
@@ -90,25 +95,36 @@ export const InquiryRemindersWidget = (props) => {
|
|
|
90
95
|
} }))
|
|
91
96
|
}
|
|
92
97
|
});
|
|
93
|
-
}, [
|
|
94
|
-
|
|
98
|
+
}, [
|
|
99
|
+
onLoadedNodeClick,
|
|
100
|
+
typedTree,
|
|
101
|
+
linkedTrees,
|
|
102
|
+
catalogObjects,
|
|
103
|
+
openSplitScreen,
|
|
104
|
+
setAcknowledged,
|
|
105
|
+
t
|
|
106
|
+
]);
|
|
107
|
+
return (React.createElement(UdpCard, { className: className, style: style, appearance: appearance,
|
|
95
108
|
// The card fills the region the composition sized; on a JSON page that
|
|
96
109
|
// region is the renderer's fixed-height cell.
|
|
97
110
|
height: "100%", label: hideWidgetName
|
|
98
111
|
? undefined
|
|
99
|
-
: t('ui.widgets.reminders.title', { defaultValue: 'Reminders' }) }, sorted.length > 0 && (React.createElement(UdpBadge, { slot: "header-action", size: "small", appearance: "tint", color: "brand" }, sorted.length)), React.createElement(UdpFlexbox, { grow: 1, basis: "0", overflow: "auto", gap: "sm", wrap: "nowrap" }, warnings.map((warning) => (React.createElement(UdpMessageBar, { key: warning.id, intent: warning.intent, layout: "multiline" }, warning.message))), loading && React.createElement(UdpSpinner, { size: "tiny" }), !loading && !warnings.length && !sorted.length && (React.createElement(UdpText, { variant: "caption1", as: "p" }, t('ui.widgets.reminders.allCaughtUp', {
|
|
112
|
+
: t('ui.widgets.reminders.title', { defaultValue: 'Reminders' }) }, sorted.length > 0 && (React.createElement(UdpBadge, { slot: "header-action", size: "small", appearance: "tint", color: "brand" }, sorted.length)), React.createElement(UdpFlexbox, { className: rowStyles.bleed, grow: 1, basis: "0", overflow: "auto", gap: "sm", wrap: "nowrap" }, warnings.map((warning) => (React.createElement(UdpMessageBar, { key: warning.id, intent: warning.intent, layout: "multiline" }, warning.message))), loading && React.createElement(UdpSpinner, { size: "tiny" }), !loading && !warnings.length && !sorted.length && (React.createElement(UdpText, { variant: "caption1", as: "p" }, t('ui.widgets.reminders.allCaughtUp', {
|
|
100
113
|
defaultValue: 'All caught up — no open reminders.'
|
|
101
|
-
}))), !loading && sorted.length > 0 && (React.createElement(UdpList, { interactive: true, showDivider: true }, sorted.map((reminder) => {
|
|
114
|
+
}))), !loading && sorted.length > 0 && (React.createElement(UdpList, { className: rowStyles.flush, interactive: true, showDivider: true }, sorted.map((reminder) => {
|
|
102
115
|
const overdue = reminderOverdue(reminder.reminderDate);
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
116
|
+
const subject = reminder.subject ||
|
|
117
|
+
t('ui.widgets.reminders.untitled', {
|
|
118
|
+
defaultValue: 'Untitled reminder'
|
|
119
|
+
});
|
|
120
|
+
return (React.createElement(UdpListItem, { key: reminder.id, value: reminder.id, size: "small", onItemAction: () => handleOpen(reminder) }, React.createElement("span", { slot: "title", className: rowStyles.oneLine, title: subject }, subject), React.createElement(UdpFlexbox, { slot: "subtitle", direction: "row", gap: "xs", align: "center", wrap: "nowrap" }, reminder.reminderDate && (React.createElement(UdpText, { variant: "caption1", as: "span" }, formatDateToLocaleString(reminder.reminderDate, DateTime.DATE_MED))), overdue && (React.createElement(UdpBadge, { size: "small", appearance: "tint", color: overdue.color }, overdue.days === 0
|
|
121
|
+
? t('ui.widgets.reminders.dueToday', {
|
|
122
|
+
defaultValue: 'Due today'
|
|
123
|
+
})
|
|
124
|
+
: t('ui.widgets.reminders.overdueDays', {
|
|
125
|
+
defaultValue: '{{days}}d overdue',
|
|
126
|
+
days: overdue.days
|
|
127
|
+
})))), React.createElement(UdpIconButton, { slot: "end", appearance: "subtle", size: "small", iconName: "checkmark", disabled: saving, ariaLabel: t('reminders.card.complete', {
|
|
112
128
|
defaultValue: 'Complete'
|
|
113
129
|
}), onClick: () => handleComplete(reminder) })));
|
|
114
130
|
})))), children));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InquiryRemindersWidget.js","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,wBAAwB,IAAI,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC1G,OAAO,EACL,uBAAuB,EACvB,eAAe,EAEhB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,
|
|
1
|
+
{"version":3,"file":"InquiryRemindersWidget.js","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,E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E,EAAC,MAAM,IAClC,wBAAwB,CACvB,QAAQ,CAAC,YAAY,EACrB,QAAQ,CAAC,QAAQ,CAClB,CACO,CACX,EACA,OAAO,IAAI,CACV,oBAAC,QAAQ,IACP,IAAI,EAAC,OAAO,EACZ,UAAU,EAAC,MAAM,EACjB,KAAK,EAAE,OAAO,CAAC,KAAK,IAEnB,OAAO,CAAC,IAAI,KAAK,CAAC;YACjB,CAAC,CAAC,CAAC,CAAC,+BAA+B,EAAE;gBACjC,YAAY,EAAE,WAAW;aAC1B,CAAC;YACJ,CAAC,CAAC,CAAC,CAAC,kCAAkC,EAAE;gBACpC,YAAY,EAAE,mBAAmB;gBACjC,IAAI,EAAE,OAAO,CAAC,IAAI;aACnB,CAAC,CACG,CACZ,CACU,EAIb,oBAAC,aAAa,IACZ,IAAI,EAAC,KAAK,EACV,UAAU,EAAC,QAAQ,EACnB,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAC,WAAW,EACpB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,CAAC,CAAC,yBAAyB,EAAE;gBACtC,YAAY,EAAE,UAAU;aACzB,CAAC,EACF,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,QAAQ,CAAC,GACvC,CACU,CACf,CAAC;IAAA,CACH,CAAC,CACM,CACX,CACU,EACZ,QAAQ,CACD,CACX,CAAC;AAAA,CACH,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -11,12 +11,15 @@ import { UdpList } from "../../../fluent-web-components/UdpList.mjs";
|
|
|
11
11
|
import { UdpListItem } from "../../../fluent-web-components/UdpListItem.mjs";
|
|
12
12
|
import { useActions } from "../../../../hooks/useActions.mjs";
|
|
13
13
|
import { formatDateToLocaleString as formatDateToLocaleString$1 } from "../../../../utilities/input/DateUtilities.mjs";
|
|
14
|
+
import { fromWire } from "../../../../domain/inquiryTree/serialize.mjs";
|
|
15
|
+
import { useLinkedTrees } from "../../../../inquiry/v2/api/queries.mjs";
|
|
14
16
|
import { buildReminderNodeToLoad, reminderOverdue } from "./reminderRowModel.mjs";
|
|
15
17
|
import { useInquiryReminders } from "./useInquiryReminders.mjs";
|
|
16
18
|
import { ReminderCompleteSwitch } from "./ReminderCompleteSwitch.mjs";
|
|
17
19
|
import React from "react";
|
|
18
20
|
import { useTranslation } from "react-i18next";
|
|
19
21
|
import { DateTime } from "luxon";
|
|
22
|
+
import rowStyles from "../../../../inquiry/v2/widgets/listRow.module.css";
|
|
20
23
|
//#region src/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.tsx
|
|
21
24
|
/**
|
|
22
25
|
* InquiryRemindersWidget — the modern replacement for `RemindersWidget`, for
|
|
@@ -53,7 +56,7 @@ import { DateTime } from "luxon";
|
|
|
53
56
|
*/
|
|
54
57
|
const formatDateToLocaleString = formatDateToLocaleString$1;
|
|
55
58
|
const InquiryRemindersWidget = (props) => {
|
|
56
|
-
const $ = c(
|
|
59
|
+
const $ = c(51);
|
|
57
60
|
const { children, params, className, style } = props;
|
|
58
61
|
let t0;
|
|
59
62
|
if ($[0] !== params) {
|
|
@@ -61,36 +64,44 @@ const InquiryRemindersWidget = (props) => {
|
|
|
61
64
|
$[0] = params;
|
|
62
65
|
$[1] = t0;
|
|
63
66
|
} else t0 = $[1];
|
|
64
|
-
const { tree, catalogObjects, onLoadedNodeClick, hideWidgetName } = t0;
|
|
67
|
+
const { tree, catalogObjects, onLoadedNodeClick, hideWidgetName, appearance } = t0;
|
|
65
68
|
const { t } = useTranslation();
|
|
66
69
|
const { openSplitScreen } = useActions();
|
|
67
|
-
const { reminders, loading, warnings, saving, setAcknowledged } = useInquiryReminders(tree);
|
|
68
|
-
const at = _temp;
|
|
69
70
|
let t1;
|
|
70
|
-
if ($[2] !==
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
t2 = (a, b) => at(b) - at(a);
|
|
74
|
-
$[4] = t2;
|
|
75
|
-
} else t2 = $[4];
|
|
76
|
-
t1 = [...reminders].sort(t2);
|
|
77
|
-
$[2] = reminders;
|
|
71
|
+
if ($[2] !== tree) {
|
|
72
|
+
t1 = tree ? fromWire(tree) : null;
|
|
73
|
+
$[2] = tree;
|
|
78
74
|
$[3] = t1;
|
|
79
75
|
} else t1 = $[3];
|
|
80
|
-
const
|
|
76
|
+
const typedTree = t1;
|
|
77
|
+
const { reminders, loading, warnings, saving, setAcknowledged } = useInquiryReminders(typedTree);
|
|
78
|
+
const { trees: linkedTrees } = useLinkedTrees(typedTree);
|
|
79
|
+
const at = _temp;
|
|
81
80
|
let t2;
|
|
82
|
-
if ($[
|
|
83
|
-
|
|
81
|
+
if ($[4] !== reminders) {
|
|
82
|
+
let t3;
|
|
83
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
84
|
+
t3 = (a, b) => at(b) - at(a);
|
|
85
|
+
$[6] = t3;
|
|
86
|
+
} else t3 = $[6];
|
|
87
|
+
t2 = [...reminders].sort(t3);
|
|
88
|
+
$[4] = reminders;
|
|
89
|
+
$[5] = t2;
|
|
90
|
+
} else t2 = $[5];
|
|
91
|
+
const sorted = t2;
|
|
92
|
+
let t3;
|
|
93
|
+
if ($[7] !== setAcknowledged) {
|
|
94
|
+
t3 = (reminder_0) => {
|
|
84
95
|
setAcknowledged([reminder_0], true);
|
|
85
96
|
};
|
|
86
|
-
$[
|
|
87
|
-
$[
|
|
88
|
-
} else
|
|
89
|
-
const handleComplete =
|
|
90
|
-
let
|
|
91
|
-
if ($[
|
|
92
|
-
|
|
93
|
-
onLoadedNodeClick?.(buildReminderNodeToLoad(reminder_1,
|
|
97
|
+
$[7] = setAcknowledged;
|
|
98
|
+
$[8] = t3;
|
|
99
|
+
} else t3 = $[8];
|
|
100
|
+
const handleComplete = t3;
|
|
101
|
+
let t4;
|
|
102
|
+
if ($[9] !== catalogObjects || $[10] !== linkedTrees || $[11] !== onLoadedNodeClick || $[12] !== openSplitScreen || $[13] !== setAcknowledged || $[14] !== t || $[15] !== typedTree) {
|
|
103
|
+
t4 = (reminder_1) => {
|
|
104
|
+
onLoadedNodeClick?.(buildReminderNodeToLoad(reminder_1, typedTree, linkedTrees, catalogObjects));
|
|
94
105
|
openSplitScreen({
|
|
95
106
|
open: true,
|
|
96
107
|
action: null,
|
|
@@ -107,80 +118,93 @@ const InquiryRemindersWidget = (props) => {
|
|
|
107
118
|
}
|
|
108
119
|
});
|
|
109
120
|
};
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
112
|
-
$[
|
|
113
|
-
$[
|
|
114
|
-
$[
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
117
|
-
} else t3 = $[13];
|
|
118
|
-
const handleOpen = t3;
|
|
119
|
-
let t4;
|
|
120
|
-
if ($[14] !== hideWidgetName || $[15] !== t) {
|
|
121
|
-
t4 = hideWidgetName ? void 0 : t("ui.widgets.reminders.title", { defaultValue: "Reminders" });
|
|
122
|
-
$[14] = hideWidgetName;
|
|
123
|
-
$[15] = t;
|
|
121
|
+
$[9] = catalogObjects;
|
|
122
|
+
$[10] = linkedTrees;
|
|
123
|
+
$[11] = onLoadedNodeClick;
|
|
124
|
+
$[12] = openSplitScreen;
|
|
125
|
+
$[13] = setAcknowledged;
|
|
126
|
+
$[14] = t;
|
|
127
|
+
$[15] = typedTree;
|
|
124
128
|
$[16] = t4;
|
|
125
129
|
} else t4 = $[16];
|
|
130
|
+
const handleOpen = t4;
|
|
126
131
|
let t5;
|
|
127
|
-
if ($[17] !==
|
|
128
|
-
t5 =
|
|
132
|
+
if ($[17] !== hideWidgetName || $[18] !== t) {
|
|
133
|
+
t5 = hideWidgetName ? void 0 : t("ui.widgets.reminders.title", { defaultValue: "Reminders" });
|
|
134
|
+
$[17] = hideWidgetName;
|
|
135
|
+
$[18] = t;
|
|
136
|
+
$[19] = t5;
|
|
137
|
+
} else t5 = $[19];
|
|
138
|
+
let t6;
|
|
139
|
+
if ($[20] !== sorted.length) {
|
|
140
|
+
t6 = sorted.length > 0 && /* @__PURE__ */ React.createElement(UdpBadge, {
|
|
129
141
|
slot: "header-action",
|
|
130
142
|
size: "small",
|
|
131
143
|
appearance: "tint",
|
|
132
144
|
color: "brand"
|
|
133
145
|
}, sorted.length);
|
|
134
|
-
$[
|
|
135
|
-
$[
|
|
136
|
-
} else
|
|
137
|
-
let t6;
|
|
138
|
-
if ($[19] !== warnings) {
|
|
139
|
-
t6 = warnings.map(_temp2);
|
|
140
|
-
$[19] = warnings;
|
|
141
|
-
$[20] = t6;
|
|
142
|
-
} else t6 = $[20];
|
|
146
|
+
$[20] = sorted.length;
|
|
147
|
+
$[21] = t6;
|
|
148
|
+
} else t6 = $[21];
|
|
143
149
|
let t7;
|
|
144
|
-
if ($[
|
|
145
|
-
t7 =
|
|
146
|
-
$[
|
|
147
|
-
$[
|
|
148
|
-
} else t7 = $[
|
|
150
|
+
if ($[22] !== warnings) {
|
|
151
|
+
t7 = warnings.map(_temp2);
|
|
152
|
+
$[22] = warnings;
|
|
153
|
+
$[23] = t7;
|
|
154
|
+
} else t7 = $[23];
|
|
149
155
|
let t8;
|
|
150
|
-
if ($[
|
|
151
|
-
t8 =
|
|
156
|
+
if ($[24] !== loading) {
|
|
157
|
+
t8 = loading && /* @__PURE__ */ React.createElement(UdpSpinner, { size: "tiny" });
|
|
158
|
+
$[24] = loading;
|
|
159
|
+
$[25] = t8;
|
|
160
|
+
} else t8 = $[25];
|
|
161
|
+
let t9;
|
|
162
|
+
if ($[26] !== loading || $[27] !== sorted.length || $[28] !== t || $[29] !== warnings.length) {
|
|
163
|
+
t9 = !loading && !warnings.length && !sorted.length && /* @__PURE__ */ React.createElement(UdpText, {
|
|
152
164
|
variant: "caption1",
|
|
153
165
|
as: "p"
|
|
154
166
|
}, t("ui.widgets.reminders.allCaughtUp", { defaultValue: "All caught up — no open reminders." }));
|
|
155
|
-
$[
|
|
156
|
-
$[
|
|
157
|
-
$[
|
|
158
|
-
$[
|
|
159
|
-
$[
|
|
160
|
-
} else
|
|
161
|
-
let
|
|
162
|
-
if ($[
|
|
163
|
-
|
|
167
|
+
$[26] = loading;
|
|
168
|
+
$[27] = sorted.length;
|
|
169
|
+
$[28] = t;
|
|
170
|
+
$[29] = warnings.length;
|
|
171
|
+
$[30] = t9;
|
|
172
|
+
} else t9 = $[30];
|
|
173
|
+
let t10;
|
|
174
|
+
if ($[31] !== handleComplete || $[32] !== handleOpen || $[33] !== loading || $[34] !== saving || $[35] !== sorted || $[36] !== t) {
|
|
175
|
+
t10 = !loading && sorted.length > 0 && /* @__PURE__ */ React.createElement(UdpList, {
|
|
176
|
+
className: rowStyles.flush,
|
|
164
177
|
interactive: true,
|
|
165
178
|
showDivider: true
|
|
166
179
|
}, sorted.map((reminder_2) => {
|
|
167
180
|
const overdue = reminderOverdue(reminder_2.reminderDate);
|
|
181
|
+
const subject = reminder_2.subject || t("ui.widgets.reminders.untitled", { defaultValue: "Untitled reminder" });
|
|
168
182
|
return /* @__PURE__ */ React.createElement(UdpListItem, {
|
|
169
183
|
key: reminder_2.id,
|
|
170
184
|
value: reminder_2.id,
|
|
171
185
|
size: "small",
|
|
172
|
-
label: reminder_2.subject || t("ui.widgets.reminders.untitled", { defaultValue: "Untitled reminder" }),
|
|
173
|
-
subtitle: reminder_2.reminderDate ? formatDateToLocaleString(reminder_2.reminderDate, DateTime.DATE_MED) : void 0,
|
|
174
186
|
onItemAction: () => handleOpen(reminder_2)
|
|
175
|
-
},
|
|
176
|
-
slot: "
|
|
187
|
+
}, /* @__PURE__ */ React.createElement("span", {
|
|
188
|
+
slot: "title",
|
|
189
|
+
className: rowStyles.oneLine,
|
|
190
|
+
title: subject
|
|
191
|
+
}, subject), /* @__PURE__ */ React.createElement(UdpFlexbox, {
|
|
192
|
+
slot: "subtitle",
|
|
193
|
+
direction: "row",
|
|
194
|
+
gap: "xs",
|
|
195
|
+
align: "center",
|
|
196
|
+
wrap: "nowrap"
|
|
197
|
+
}, reminder_2.reminderDate && /* @__PURE__ */ React.createElement(UdpText, {
|
|
198
|
+
variant: "caption1",
|
|
199
|
+
as: "span"
|
|
200
|
+
}, formatDateToLocaleString(reminder_2.reminderDate, DateTime.DATE_MED)), overdue && /* @__PURE__ */ React.createElement(UdpBadge, {
|
|
177
201
|
size: "small",
|
|
178
202
|
appearance: "tint",
|
|
179
203
|
color: overdue.color
|
|
180
|
-
}, t("ui.widgets.reminders.overdueDays", {
|
|
204
|
+
}, overdue.days === 0 ? t("ui.widgets.reminders.dueToday", { defaultValue: "Due today" }) : t("ui.widgets.reminders.overdueDays", {
|
|
181
205
|
defaultValue: "{{days}}d overdue",
|
|
182
206
|
days: overdue.days
|
|
183
|
-
})), /* @__PURE__ */ React.createElement(UdpIconButton, {
|
|
207
|
+
}))), /* @__PURE__ */ React.createElement(UdpIconButton, {
|
|
184
208
|
slot: "end",
|
|
185
209
|
appearance: "subtle",
|
|
186
210
|
size: "small",
|
|
@@ -190,46 +214,49 @@ const InquiryRemindersWidget = (props) => {
|
|
|
190
214
|
onClick: () => handleComplete(reminder_2)
|
|
191
215
|
}));
|
|
192
216
|
}));
|
|
193
|
-
$[
|
|
194
|
-
$[
|
|
195
|
-
$[
|
|
196
|
-
$[
|
|
197
|
-
$[
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
200
|
-
} else
|
|
201
|
-
let
|
|
202
|
-
if ($[
|
|
203
|
-
|
|
217
|
+
$[31] = handleComplete;
|
|
218
|
+
$[32] = handleOpen;
|
|
219
|
+
$[33] = loading;
|
|
220
|
+
$[34] = saving;
|
|
221
|
+
$[35] = sorted;
|
|
222
|
+
$[36] = t;
|
|
223
|
+
$[37] = t10;
|
|
224
|
+
} else t10 = $[37];
|
|
225
|
+
let t11;
|
|
226
|
+
if ($[38] !== t10 || $[39] !== t7 || $[40] !== t8 || $[41] !== t9) {
|
|
227
|
+
t11 = /* @__PURE__ */ React.createElement(UdpFlexbox, {
|
|
228
|
+
className: rowStyles.bleed,
|
|
204
229
|
grow: 1,
|
|
205
230
|
basis: "0",
|
|
206
231
|
overflow: "auto",
|
|
207
232
|
gap: "sm",
|
|
208
233
|
wrap: "nowrap"
|
|
209
|
-
},
|
|
210
|
-
$[
|
|
211
|
-
$[
|
|
212
|
-
$[
|
|
213
|
-
$[
|
|
214
|
-
$[
|
|
215
|
-
} else
|
|
216
|
-
let
|
|
217
|
-
if ($[
|
|
218
|
-
|
|
234
|
+
}, t7, t8, t9, t10);
|
|
235
|
+
$[38] = t10;
|
|
236
|
+
$[39] = t7;
|
|
237
|
+
$[40] = t8;
|
|
238
|
+
$[41] = t9;
|
|
239
|
+
$[42] = t11;
|
|
240
|
+
} else t11 = $[42];
|
|
241
|
+
let t12;
|
|
242
|
+
if ($[43] !== appearance || $[44] !== children || $[45] !== className || $[46] !== style || $[47] !== t11 || $[48] !== t5 || $[49] !== t6) {
|
|
243
|
+
t12 = /* @__PURE__ */ React.createElement(UdpCard, {
|
|
219
244
|
className,
|
|
220
245
|
style,
|
|
246
|
+
appearance,
|
|
221
247
|
height: "100%",
|
|
222
|
-
label:
|
|
223
|
-
},
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
$[
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
230
|
-
$[
|
|
231
|
-
|
|
232
|
-
|
|
248
|
+
label: t5
|
|
249
|
+
}, t6, t11, children);
|
|
250
|
+
$[43] = appearance;
|
|
251
|
+
$[44] = children;
|
|
252
|
+
$[45] = className;
|
|
253
|
+
$[46] = style;
|
|
254
|
+
$[47] = t11;
|
|
255
|
+
$[48] = t5;
|
|
256
|
+
$[49] = t6;
|
|
257
|
+
$[50] = t12;
|
|
258
|
+
} else t12 = $[50];
|
|
259
|
+
return t12;
|
|
233
260
|
};
|
|
234
261
|
function _temp(reminder) {
|
|
235
262
|
return new Date(reminder.reminderDate ?? 0).getTime();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InquiryRemindersWidget.mjs","names":["React","useCallback","useMemo","DateTime","useTranslation","UdpBadge","UdpCard","UdpFlexbox","UdpIconButton","UdpList","UdpListItem","UdpMessageBar","UdpSpinner","UdpText","useActions","SplitScreenTypeEnums","formatDateToLocaleString","formatDateUntyped","buildReminderNodeToLoad","reminderOverdue","ReminderNodeToLoad","useInquiryReminders","Reminder","RemindersTreeWire","ReminderCompleteSwitch","isoDate","luxonFormat","Intl","DateTimeFormatOptions","InquiryRemindersWidgetParams","tree","catalogObjects","onLoadedNodeClick","node","hideWidgetName","InquiryRemindersWidgetProps","params","key","className","style","CSSProperties","children","ReactNode","InquiryRemindersWidget","props","$","_c","t0","t","openSplitScreen","reminders","loading","warnings","saving","setAcknowledged","at","_temp","t1","t2","Symbol","for","a","b","sort","sorted","reminder_0","reminder","handleComplete","t3","reminder_1","open","action","type","Reminders","id","additionalInputs","defaultValue","acknowledged","next","handleOpen","t4","undefined","t5","length","t6","map","_temp2","t7","t8","t9","reminder_2","overdue","reminderDate","subject","DATE_MED","color","days","t10","t11","Date","getTime","warning","intent","message"],"sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.tsx"],"sourcesContent":["/**\n * InquiryRemindersWidget — the modern replacement for `RemindersWidget`, for\n * explore pages composed in code or in Page Assembler.\n *\n * Same data as the legacy widget: `useInquiryReminders` is its\n * fetch/acknowledge path lifted out untouched (ActionProvider's\n * promoted-entity catalog → `UdpReminderFiledFor.unityBaseSearchMethod` to\n * read, `UdpReminder.unityBaseUpdateMethod` to write), and\n * `buildReminderNodeToLoad` is its `getNodeToLoad`. No new endpoint.\n *\n * The SURFACE shows items, not chrome. The list is the open reminders (due\n * and unacknowledged), newest first, with a count in the header. Each row\n * carries its own complete control — the tick acknowledges that reminder\n * immediately, replacing the legacy tick-then-footer-Complete two-step and\n * the All/sort header controls, which existed to manage a list this card no\n * longer shows (completed reminders remain reachable from the reminder split\n * screen a row click opens). All caught up → one quiet line, no controls.\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 renders its own card;\n * this one renders the fluent card.\n *\n * The legacy `RemindersWidget` is NOT removed — v1 JSON explore pages name it.\n */\nimport React, { useCallback, useMemo } from 'react';\nimport { DateTime } from 'luxon';\nimport { useTranslation } from 'react-i18next';\nimport { UdpBadge } from '../../../fluent-web-components/UdpBadge';\nimport { UdpCard } from '../../../fluent-web-components/UdpCard';\nimport { UdpFlexbox } from '../../../fluent-web-components/UdpFlexbox';\nimport { UdpIconButton } from '../../../fluent-web-components/UdpIconButton';\nimport { UdpList } from '../../../fluent-web-components/UdpList';\nimport { UdpListItem } from '../../../fluent-web-components/UdpListItem';\nimport { UdpMessageBar } from '../../../fluent-web-components/UdpMessageBar';\nimport { UdpSpinner } from '../../../fluent-web-components/UdpSpinner';\nimport { UdpText } from '../../../fluent-web-components/UdpText';\nimport { useActions } from '../../../../hooks/useActions';\nimport { SplitScreenTypeEnums } from '../../../../enums/unitySystemEnums';\nimport { formatDateToLocaleString as formatDateUntyped } from '../../../../utilities/input/DateUtilities';\nimport {\n buildReminderNodeToLoad,\n reminderOverdue,\n type ReminderNodeToLoad\n} from './reminderRowModel';\nimport {\n useInquiryReminders,\n type Reminder,\n type RemindersTreeWire\n} from './useInquiryReminders';\nimport { ReminderCompleteSwitch } from './ReminderCompleteSwitch';\n\n/**\n * Typed boundary over the untyped shared date helper: its `luxonFormat`\n * parameter infers as `string` from its default value, but every caller passes\n * a luxon format PRESET (an options object). Same boundary the recent-records\n * widget draws.\n */\nconst formatDateToLocaleString = formatDateUntyped as unknown as (\n isoDate: string,\n luxonFormat?: Intl.DateTimeFormatOptions\n) => string;\n\nexport interface InquiryRemindersWidgetParams {\n /** The tree wire document — reminders outside its entities are not shown. */\n tree?: RemindersTreeWire | null;\n /** The catalog — identifier fields for the record a clicked reminder names. */\n catalogObjects?: unknown;\n /** Load the named record into the tree (the row click). */\n onLoadedNodeClick?: (node: ReminderNodeToLoad) => void;\n /** Hide the card header (standard widget param). */\n hideWidgetName?: boolean;\n}\n\nexport interface InquiryRemindersWidgetProps {\n params?: InquiryRemindersWidgetParams;\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 InquiryRemindersWidget = (props: InquiryRemindersWidgetProps) => {\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 { tree, catalogObjects, onLoadedNodeClick, hideWidgetName } =\n params ?? {};\n const { t } = useTranslation();\n const { openSplitScreen } = useActions();\n\n const { reminders, loading, warnings, saving, setAcknowledged } =\n useInquiryReminders(tree);\n\n // Newest first, always — the fetch returns whatever order the server gave it.\n const sorted = useMemo(() => {\n const at = (reminder: Reminder) =>\n new Date(reminder.reminderDate ?? 0).getTime();\n return [...reminders].sort((a, b) => at(b) - at(a));\n }, [reminders]);\n\n const handleComplete = useCallback(\n (reminder: Reminder) => {\n void setAcknowledged([reminder], true);\n },\n [setAcknowledged]\n );\n\n /**\n * Open a reminder: load its record into the tree and show the reminder in the\n * split screen, whose Complete switch writes through the same path. Both\n * halves are the legacy card's behaviour.\n */\n const handleOpen = useCallback(\n (reminder: Reminder) => {\n onLoadedNodeClick?.(\n buildReminderNodeToLoad(reminder, tree, catalogObjects)\n );\n openSplitScreen({\n open: true,\n action: null,\n type: SplitScreenTypeEnums.Reminders,\n params: {\n id: reminder.id ?? '',\n additionalInputs: (\n <ReminderCompleteSwitch\n label={t('reminders.card.complete', { defaultValue: 'Complete' })}\n checked={!!reminder.acknowledged}\n onCompleteChange={(next) => {\n void setAcknowledged([reminder], next);\n }}\n />\n )\n }\n });\n },\n [onLoadedNodeClick, tree, catalogObjects, openSplitScreen, setAcknowledged, t]\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.\n height='100%'\n label={\n hideWidgetName\n ? undefined\n : t('ui.widgets.reminders.title', { defaultValue: 'Reminders' })\n }\n >\n {/* The count is the header's one annotation — how much is open, at a\n glance. Nothing renders here when the list is empty or still loading:\n a zero would just repeat the empty state. */}\n {sorted.length > 0 && (\n <UdpBadge slot='header-action' size='small' appearance='tint' color='brand'>\n {sorted.length}\n </UdpBadge>\n )}\n\n <UdpFlexbox grow={1} basis='0' overflow='auto' gap='sm' wrap='nowrap'>\n {warnings.map((warning) => (\n <UdpMessageBar key={warning.id} intent={warning.intent} layout='multiline'>\n {warning.message}\n </UdpMessageBar>\n ))}\n\n {loading && <UdpSpinner size='tiny' />}\n\n {!loading && !warnings.length && !sorted.length && (\n <UdpText variant='caption1' as='p'>\n {t('ui.widgets.reminders.allCaughtUp', {\n defaultValue: 'All caught up — no open reminders.'\n })}\n </UdpText>\n )}\n\n {!loading && sorted.length > 0 && (\n <UdpList interactive showDivider>\n {sorted.map((reminder) => {\n const overdue = reminderOverdue(reminder.reminderDate);\n return (\n <UdpListItem\n key={reminder.id}\n value={reminder.id}\n size='small'\n label={\n reminder.subject ||\n t('ui.widgets.reminders.untitled', {\n defaultValue: 'Untitled reminder'\n })\n }\n subtitle={\n reminder.reminderDate\n ? formatDateToLocaleString(\n reminder.reminderDate,\n DateTime.DATE_MED\n )\n : undefined\n }\n onItemAction={() => handleOpen(reminder)}\n >\n {overdue && (\n <UdpBadge\n slot='end'\n size='small'\n appearance='tint'\n color={overdue.color}\n >\n {t('ui.widgets.reminders.overdueDays', {\n defaultValue: '{{days}}d overdue',\n days: overdue.days\n })}\n </UdpBadge>\n )}\n {/* The row's own complete control. End-slot clicks never\n trigger the row action, so ticking here completes without\n opening. */}\n <UdpIconButton\n slot='end'\n appearance='subtle'\n size='small'\n iconName='checkmark'\n disabled={saving}\n ariaLabel={t('reminders.card.complete', {\n defaultValue: 'Complete'\n })}\n onClick={() => handleComplete(reminder)}\n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,QAAAmC,MAAAnC,EAAA,QAAAqC,IAAA;AA/FfgB,QAAA,sBAAA,cAAC,SAAD;GACa5D;GACJC;GAGA,QAAA;GAEL,OAAAyC;GA0FM,EAlFPE,IAMDe,KA2ECxD,SACO;AAAAI,IAAA,MAAAJ;AAAAI,IAAA,MAAAP;AAAAO,IAAA,MAAAN;AAAAM,IAAA,MAAAoD;AAAApD,IAAA,MAAAmC;AAAAnC,IAAA,MAAAqC;AAAArC,IAAA,MAAAqD;OAAAA,OAAArD,EAAA;AAAA,QAjGVqD;;AA5DkC,SAAA1C,MAAAU,UAAA;AAAA,QAiBhC,IAAIiC,KAAKjC,SAAQ0B,gBAAR,EAA2B,CAAAQ,SAAU;;AAjBd,SAAAd,OAAAe,SAAA;AAAA,QAmF5B,sBAAA,cAAC,eAAD;EAAoB,KAAAA,QAAO3B;EAAa,QAAA2B,QAAOC;EAAgB,QAAA;EAE/C,EADbD,QAAOE,QACM"}
|
|
1
|
+
{"version":3,"file":"InquiryRemindersWidget.mjs","names":["React","useCallback","useMemo","DateTime","useTranslation","UdpBadge","UdpCard","UdpFlexbox","UdpIconButton","UdpList","UdpListItem","UdpMessageBar","UdpSpinner","UdpText","useActions","SplitScreenTypeEnums","fromWire","InquiryTreeWire","useLinkedTrees","formatDateToLocaleString","formatDateUntyped","buildReminderNodeToLoad","reminderOverdue","ReminderNodeToLoad","useInquiryReminders","Reminder","ReminderCompleteSwitch","rowStyles","isoDate","luxonFormat","Intl","DateTimeFormatOptions","InquiryRemindersWidgetParams","tree","catalogObjects","onLoadedNodeClick","node","hideWidgetName","appearance","ComponentProps","InquiryRemindersWidgetProps","params","key","className","style","CSSProperties","children","ReactNode","InquiryRemindersWidget","props","$","_c","t0","t","openSplitScreen","t1","typedTree","reminders","loading","warnings","saving","setAcknowledged","trees","linkedTrees","at","_temp","t2","t3","Symbol","for","a","b","sort","sorted","reminder_0","reminder","handleComplete","t4","reminder_1","open","action","type","Reminders","id","additionalInputs","defaultValue","acknowledged","next","handleOpen","t5","undefined","t6","length","t7","map","_temp2","t8","t9","t10","flush","reminder_2","overdue","reminderDate","subject","oneLine","DATE_MED","color","days","t11","bleed","t12","Date","getTime","warning","intent","message"],"sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.tsx"],"sourcesContent":["/**\n * InquiryRemindersWidget — the modern replacement for `RemindersWidget`, for\n * explore pages composed in code or in Page Assembler.\n *\n * Same data as the legacy widget: `useInquiryReminders` is its\n * fetch/acknowledge path lifted out untouched (ActionProvider's\n * promoted-entity catalog → `UdpReminderFiledFor.unityBaseSearchMethod` to\n * read, `UdpReminder.unityBaseUpdateMethod` to write), and\n * `buildReminderNodeToLoad` is its `getNodeToLoad`. No new endpoint.\n *\n * The SURFACE shows items, not chrome. The list is the open reminders (due\n * and unacknowledged), newest first, with a count in the header. Each row\n * carries its own complete control — the tick acknowledges that reminder\n * immediately, replacing the legacy tick-then-footer-Complete two-step and\n * the All/sort header controls, which existed to manage a list this card no\n * longer shows (completed reminders remain reachable from the reminder split\n * screen a row click opens). All caught up → one quiet line, no controls.\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 renders its own card;\n * this one renders the fluent card.\n *\n * The legacy `RemindersWidget` is NOT removed — v1 JSON explore pages name it.\n */\nimport React, { useCallback, useMemo } from 'react';\nimport { DateTime } from 'luxon';\nimport { useTranslation } from 'react-i18next';\nimport { UdpBadge } from '../../../fluent-web-components/UdpBadge';\nimport { UdpCard } from '../../../fluent-web-components/UdpCard';\nimport { UdpFlexbox } from '../../../fluent-web-components/UdpFlexbox';\nimport { UdpIconButton } from '../../../fluent-web-components/UdpIconButton';\nimport { UdpList } from '../../../fluent-web-components/UdpList';\nimport { UdpListItem } from '../../../fluent-web-components/UdpListItem';\nimport { UdpMessageBar } from '../../../fluent-web-components/UdpMessageBar';\nimport { UdpSpinner } from '../../../fluent-web-components/UdpSpinner';\nimport { UdpText } from '../../../fluent-web-components/UdpText';\nimport { useActions } from '../../../../hooks/useActions';\nimport { SplitScreenTypeEnums } from '../../../../enums/unitySystemEnums';\nimport { fromWire } from '../../../../domain/inquiryTree/serialize';\nimport type { InquiryTreeWire } from '../../../../domain/inquiryTree/types';\nimport { useLinkedTrees } from '../../../../inquiry/v2/api/queries';\nimport { formatDateToLocaleString as formatDateUntyped } from '../../../../utilities/input/DateUtilities';\nimport {\n buildReminderNodeToLoad,\n reminderOverdue,\n type ReminderNodeToLoad\n} from './reminderRowModel';\nimport { useInquiryReminders, type Reminder } from './useInquiryReminders';\nimport { ReminderCompleteSwitch } from './ReminderCompleteSwitch';\nimport rowStyles from '../../../../inquiry/v2/widgets/listRow.module.css';\n\n/**\n * Typed boundary over the untyped shared date helper: its `luxonFormat`\n * parameter infers as `string` from its default value, but every caller passes\n * a luxon format PRESET (an options object). Same boundary the recent-records\n * widget draws.\n */\nconst formatDateToLocaleString = formatDateUntyped as unknown as (\n isoDate: string,\n luxonFormat?: Intl.DateTimeFormatOptions\n) => string;\n\nexport interface InquiryRemindersWidgetParams {\n /** The tree wire document — reminders outside its entities are not shown. */\n tree?: InquiryTreeWire | null;\n /** The catalog — identifier fields for the record a clicked reminder names. */\n catalogObjects?: unknown;\n /** Load the named record into the tree (the row click). */\n onLoadedNodeClick?: (node: ReminderNodeToLoad) => void;\n /** Hide the card header (standard widget param). */\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 InquiryRemindersWidgetProps {\n params?: InquiryRemindersWidgetParams;\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 InquiryRemindersWidget = (props: InquiryRemindersWidgetProps) => {\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 { tree, catalogObjects, onLoadedNodeClick, hideWidgetName, appearance } =\n params ?? {};\n const { t } = useTranslation();\n const { openSplitScreen } = useActions();\n\n const typedTree = useMemo(() => (tree ? fromWire(tree) : null), [tree]);\n const { reminders, loading, warnings, saving, setAcknowledged } =\n useInquiryReminders(typedTree);\n const { trees: linkedTrees } = useLinkedTrees(typedTree);\n\n // Newest first, always — the fetch returns whatever order the server gave it.\n const sorted = useMemo(() => {\n const at = (reminder: Reminder) =>\n new Date(reminder.reminderDate ?? 0).getTime();\n return [...reminders].sort((a, b) => at(b) - at(a));\n }, [reminders]);\n\n const handleComplete = useCallback(\n (reminder: Reminder) => {\n void setAcknowledged([reminder], true);\n },\n [setAcknowledged]\n );\n\n /**\n * Open a reminder: load its record into the tree and show the reminder in the\n * split screen, whose Complete switch writes through the same path. Both\n * halves are the legacy card's behaviour.\n */\n const handleOpen = useCallback(\n (reminder: Reminder) => {\n onLoadedNodeClick?.(\n buildReminderNodeToLoad(\n reminder,\n typedTree,\n linkedTrees,\n catalogObjects\n )\n );\n openSplitScreen({\n open: true,\n action: null,\n type: SplitScreenTypeEnums.Reminders,\n params: {\n id: reminder.id ?? '',\n additionalInputs: (\n <ReminderCompleteSwitch\n label={t('reminders.card.complete', { defaultValue: 'Complete' })}\n checked={!!reminder.acknowledged}\n onCompleteChange={(next) => {\n void setAcknowledged([reminder], next);\n }}\n />\n )\n }\n });\n },\n [\n onLoadedNodeClick,\n typedTree,\n linkedTrees,\n catalogObjects,\n openSplitScreen,\n setAcknowledged,\n t\n ]\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.\n height='100%'\n label={\n hideWidgetName\n ? undefined\n : t('ui.widgets.reminders.title', { defaultValue: 'Reminders' })\n }\n >\n {/* The count is the header's one annotation — how much is open, at a\n glance. Nothing renders here when the list is empty or still loading:\n a zero would just repeat the empty state. */}\n {sorted.length > 0 && (\n <UdpBadge slot='header-action' size='small' appearance='tint' color='brand'>\n {sorted.length}\n </UdpBadge>\n )}\n\n <UdpFlexbox\n className={rowStyles.bleed}\n grow={1}\n basis='0'\n overflow='auto'\n gap='sm'\n wrap='nowrap'\n >\n {warnings.map((warning) => (\n <UdpMessageBar key={warning.id} intent={warning.intent} layout='multiline'>\n {warning.message}\n </UdpMessageBar>\n ))}\n\n {loading && <UdpSpinner size='tiny' />}\n\n {!loading && !warnings.length && !sorted.length && (\n <UdpText variant='caption1' as='p'>\n {t('ui.widgets.reminders.allCaughtUp', {\n defaultValue: 'All caught up — no open reminders.'\n })}\n </UdpText>\n )}\n\n {!loading && sorted.length > 0 && (\n <UdpList className={rowStyles.flush} interactive showDivider>\n {sorted.map((reminder) => {\n const overdue = reminderOverdue(reminder.reminderDate);\n const subject =\n reminder.subject ||\n t('ui.widgets.reminders.untitled', {\n defaultValue: 'Untitled reminder'\n });\n return (\n <UdpListItem\n key={reminder.id}\n value={reminder.id}\n size='small'\n onItemAction={() => handleOpen(reminder)}\n >\n <span slot='title' className={rowStyles.oneLine} title={subject}>\n {subject}\n </span>\n {/* When it was due and how late it is read together, under\n the subject — the end of the row is left to the one\n action, so the subject keeps the rail's width. */}\n <UdpFlexbox\n slot='subtitle'\n direction='row'\n gap='xs'\n align='center'\n wrap='nowrap'\n >\n {reminder.reminderDate && (\n <UdpText variant='caption1' as='span'>\n {formatDateToLocaleString(\n reminder.reminderDate,\n DateTime.DATE_MED\n )}\n </UdpText>\n )}\n {overdue && (\n <UdpBadge\n size='small'\n appearance='tint'\n color={overdue.color}\n >\n {overdue.days === 0\n ? t('ui.widgets.reminders.dueToday', {\n defaultValue: 'Due today'\n })\n : t('ui.widgets.reminders.overdueDays', {\n defaultValue: '{{days}}d overdue',\n days: overdue.days\n })}\n </UdpBadge>\n )}\n </UdpFlexbox>\n {/* The row's own complete control. End-slot clicks never\n trigger the row action, so ticking here completes without\n opening. */}\n <UdpIconButton\n slot='end'\n appearance='subtle'\n size='small'\n iconName='checkmark'\n disabled={saving}\n ariaLabel={t('reminders.card.complete', {\n defaultValue: 'Complete'\n })}\n onClick={() => handleComplete(reminder)}\n />\n </UdpListItem>\n );\n })}\n </UdpList>\n )}\n </UdpFlexbox>\n {children}\n </UdpCard>\n );\n};\n\nexport default InquiryRemindersWidget;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,MAAMmB,2BAA2BC;AA8BjC,MAAa4B,0BAAyBC,UAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAKpC,MAAA,EAAAL,UAAAL,QAAAE,WAAAC,UAA+CK;CAAM,IAAAG;AAAA,KAAAF,EAAA,OAAAT,QAAA;AAEnDW,OAAAX,UAAA,EAAY;AAAAS,IAAA,KAAAT;AAAAS,IAAA,KAAAE;OAAAA,MAAAF,EAAA;CADd,MAAA,EAAAjB,MAAAC,gBAAAC,mBAAAE,gBAAAC,eACEc;CACF,MAAA,EAAAC,MAAcjD,gBAAgB;CAC9B,MAAA,EAAAkD,oBAA4BxC,YAAY;CAAC,IAAAyC;AAAA,KAAAL,EAAA,OAAAjB,MAAA;AAERsB,OAAAtB,OAAOjB,SAASiB,KAAY,GAA5B;AAA4BiB,IAAA,KAAAjB;AAAAiB,IAAA,KAAAK;OAAAA,MAAAL,EAAA;CAA7D,MAAAM,YAAiCD;CACjC,MAAA,EAAAE,WAAAC,SAAAC,UAAAC,QAAAC,oBACErC,oBAAoBgC,UAAU;CAChC,MAAA,EAAAM,OAAAC,gBAA+B7C,eAAesC,UAAU;CAItD,MAAAQ,KAAWC;CACsC,IAAAC;AAAA,KAAAhB,EAAA,OAAAO,WAAA;E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vC,IAAA,MAAAyC;AAAAzC,IAAA,MAAA4D;OAAAA,OAAA5D,EAAA;AAAA,QAzHV4D;;AA3EkC,SAAA7C,MAAAU,UAAA;AAAA,QAmBhC,IAAIoC,KAAKpC,SAAQ2B,gBAAR,EAA2B,CAAAU,SAAU;;AAnBd,SAAAjB,OAAAkB,SAAA;AAAA,QA0G5B,sBAAA,cAAC,eAAD;EAAoB,KAAAA,QAAO9B;EAAa,QAAA8B,QAAOC;EAAgB,QAAA;EAE/C,EADbD,QAAOE,QACM"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type InquiryTree } from '../../../../domain/inquiryTree';
|
|
2
|
+
import type { Reminder } from './useInquiryReminders';
|
|
2
3
|
/** The node-to-load an inquiry host replays — v1's `getLoadedNodeObject` shape. */
|
|
3
4
|
export interface ReminderNodeToLoad {
|
|
4
5
|
apiMethodId: string;
|
|
@@ -8,7 +9,7 @@ export interface ReminderNodeToLoad {
|
|
|
8
9
|
};
|
|
9
10
|
queryPayload: unknown;
|
|
10
11
|
}
|
|
11
|
-
export declare const buildReminderNodeToLoad: (reminder: Reminder, tree:
|
|
12
|
+
export declare const buildReminderNodeToLoad: (reminder: Reminder, tree: InquiryTree, linkedTrees: Readonly<Record<string, InquiryTree>>, catalogObjects: unknown) => ReminderNodeToLoad;
|
|
12
13
|
/** How overdue a reminder is, and how loudly to say so. */
|
|
13
14
|
export interface ReminderOverdue {
|
|
14
15
|
days: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reminderRowModel.d.ts","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reminderRowModel.d.ts","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.ts"],"names":[],"mappings":"AAiBA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,qFAAmF;AACnF,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QAAE,mBAAmB,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,uBAAuB,4IA2CnC,CAAC;AAIF,2DAA2D;AAC3D,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,QAAQ,GAAG,aAAa,GAAG,SAAS,GAAG,QAAQ,CAAC;CACxD;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,2CAY3B,CAAC"}
|
|
@@ -12,28 +12,27 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { getSearchIdentifiers, getSearchObject } from '../../../../utilities/search/SearchUtilities';
|
|
14
14
|
import { LogicalSearchOperatorEnums } from '../../../../enums/unitySystemEnums';
|
|
15
|
-
import { buildRecordEntryFilterElements } from '../../../../domain/inquiryTree';
|
|
16
|
-
export const buildReminderNodeToLoad = (reminder, tree, catalogObjects) => {
|
|
17
|
-
var _a, _b, _c, _d
|
|
18
|
-
var _g, _h, _j
|
|
19
|
-
const domainObject = (
|
|
20
|
-
const matchingNode =
|
|
21
|
-
var _a;
|
|
22
|
-
return ((_a = node.properties) === null || _a === void 0 ? void 0 : _a.catalogReturnObject) === domainObject;
|
|
23
|
-
});
|
|
15
|
+
import { buildRecordEntryFilterElements, isEntityNode } from '../../../../domain/inquiryTree';
|
|
16
|
+
export const buildReminderNodeToLoad = (reminder, tree, linkedTrees, catalogObjects) => {
|
|
17
|
+
var _a, _b, _c, _d;
|
|
18
|
+
var _e, _f, _g, _h, _j;
|
|
19
|
+
const domainObject = (_e = reminder === null || reminder === void 0 ? void 0 : reminder.domainObject) !== null && _e !== void 0 ? _e : '';
|
|
20
|
+
const matchingNode = tree === null || tree === void 0 ? void 0 : tree.nodes.filter(isEntityNode).find((node) => node.properties.catalogReturnObject === domainObject);
|
|
24
21
|
let apiMethodId = '';
|
|
25
22
|
if (matchingNode) {
|
|
26
23
|
apiMethodId = matchingNode.parentId
|
|
27
|
-
? (
|
|
24
|
+
? String((_g = (_b = (_a = linkedTrees === null || linkedTrees === void 0 ? void 0 : linkedTrees[(_f = matchingNode.properties.associatedTreeId) !== null && _f !== void 0 ? _f : '']) === null || _a === void 0 ? void 0 : _a.wrapper.apiMethodInstance) === null || _b === void 0 ? void 0 : _b.apiMethodId) !== null && _g !== void 0 ? _g : '')
|
|
25
|
+
: (_h = (_c = tree === null || tree === void 0 ? void 0 : tree.wrapper.apiMethodInstance) === null || _c === void 0 ? void 0 : _c.apiMethodId) !== null && _h !== void 0 ? _h : '';
|
|
28
26
|
}
|
|
29
27
|
// `"<entity>|<key1,key2>"` — the values are positional against the catalog's
|
|
30
28
|
// identifier fields.
|
|
31
|
-
const
|
|
29
|
+
const keyValues = (_d = reminder === null || reminder === void 0 ? void 0 : reminder.entityBusinessKey) === null || _d === void 0 ? void 0 : _d.split('|')[1];
|
|
30
|
+
const filterElements = buildRecordEntryFilterElements(getSearchIdentifiers(catalogObjects, domainObject), keyValues ? keyValues.split(',') : []);
|
|
32
31
|
return {
|
|
33
32
|
apiMethodId,
|
|
34
33
|
nodeDetails: {
|
|
35
34
|
catalogReturnObject: domainObject,
|
|
36
|
-
treeStructureId: (
|
|
35
|
+
treeStructureId: (_j = matchingNode === null || matchingNode === void 0 ? void 0 : matchingNode.id) !== null && _j !== void 0 ? _j : ''
|
|
37
36
|
},
|
|
38
37
|
queryPayload: getSearchObject(filterElements, 1, 50, true, LogicalSearchOperatorEnums.And)
|
|
39
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reminderRowModel.js","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EACL,oBAAoB,EACpB,eAAe,EAChB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,
|
|
1
|
+
{"version":3,"file":"reminderRowModel.js","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EACL,oBAAoB,EACpB,eAAe,EAChB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EACL,8BAA8B,EAC9B,YAAY,EAEb,MAAM,gCAAgC,CAAC;AAWxC,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,QAAkB,EAClB,IAAoC,EACpC,WAAoC,EACpC,cAAuB,EACH,EAAE,CAAC;;;IACvB,MAAM,YAAY,SAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,YAAY,mCAAI,EAAE,CAAC;IAClD,MAAM,YAAY,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAC7B,MAAM,CAAC,YAAY,EACnB,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,mBAAmB,KAAK,YAAY,CAAC,CAAC;IAExE,IAAI,WAAW,GAAG,EAAE,CAAC;IACrB,IAAI,YAAY,EAAE,CAAC;QACjB,WAAW,GAAG,YAAY,CAAC,QAAQ;YACjC,CAAC,CAAC,MAAM,OACJ,MAAA,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,OAAG,YAAY,CAAC,UAAU,CAAC,gBAAgB,mCAAI,EAAE,CAAC,0CACzD,OAAO,CAAC,iBAAiB,0CAAE,WAAW,mCAAI,EAAE,CACjD;YACH,CAAC,OAAC,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OA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