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
|
@@ -16,6 +16,7 @@ import { applyRule, mapRuleVariables } from '../inquiryTree/rules';
|
|
|
16
16
|
import { formatTreeLabel } from '../inquiryTree/view';
|
|
17
17
|
import { resolveRowLabel } from '../inquiryTree/displayTree';
|
|
18
18
|
import { toWireString } from '../inquiryTree/wireString';
|
|
19
|
+
import { queryParamsFromRecord } from '../inquiryTree/runtime';
|
|
19
20
|
/** Display-safe stringification: objects never render as '[object Object]'. */
|
|
20
21
|
const displayString = (value) => {
|
|
21
22
|
if (value === undefined || value === null || value === '')
|
|
@@ -39,6 +40,8 @@ export const BADGE_COLORS = [
|
|
|
39
40
|
'success',
|
|
40
41
|
'warning'
|
|
41
42
|
];
|
|
43
|
+
/** A badge with no colour of its own to fall back on. */
|
|
44
|
+
const NEUTRAL_BADGE_COLOR = 'informative';
|
|
42
45
|
/**
|
|
43
46
|
* The node view's degradation rule (one place, so band and body agree):
|
|
44
47
|
*
|
|
@@ -72,7 +75,7 @@ const passesRule = (candidate, nodeObj) => {
|
|
|
72
75
|
if (!candidate.propertyMapping || !candidate.jsonLogic)
|
|
73
76
|
return true;
|
|
74
77
|
const rule = mapRuleVariables(candidate.propertyMapping, candidate.jsonLogic);
|
|
75
|
-
return !!applyRule(rule, nodeObj
|
|
78
|
+
return !!applyRule(rule, nodeObj);
|
|
76
79
|
};
|
|
77
80
|
/**
|
|
78
81
|
* The shared sequence-ordered, rule-gated candidate walk: first candidate
|
|
@@ -92,20 +95,27 @@ export const resolveFirstMatchingPageId = (candidates, nodeObj) => {
|
|
|
92
95
|
};
|
|
93
96
|
const asBadgeColor = (color) => BADGE_COLORS.includes(color) ? color : undefined;
|
|
94
97
|
/**
|
|
95
|
-
* Whether a badge entry renders at all, and in which color.
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
98
|
+
* Whether a badge entry renders at all, and in which color. A badge shows when
|
|
99
|
+
* its value is present (a boolean flag only when true). The entry's own color
|
|
100
|
+
* is the badge's color; rules override it for the records they match, first
|
|
101
|
+
* match wins — the conditional icon's grammar, where the base icon is what
|
|
102
|
+
* "all other records" get. A value no rule matches therefore still shows, in
|
|
103
|
+
* the entry's color: a field must never vanish just because its value is one
|
|
104
|
+
* the designer did not single out. The expressions go through `applyRule` —
|
|
105
|
+
* the same evaluator the tree's conditional icon/adornment rules use, so one
|
|
106
|
+
* rule behaves identically wherever a designer puts it.
|
|
101
107
|
*/
|
|
102
108
|
const resolveBadge = (config, value, nodeObj) => {
|
|
103
109
|
var _a;
|
|
104
|
-
if (
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
110
|
+
if (!value)
|
|
111
|
+
return null;
|
|
112
|
+
const base = asBadgeColor(config.badgeColor);
|
|
113
|
+
if (!((_a = config.badgeRules) === null || _a === void 0 ? void 0 : _a.length))
|
|
114
|
+
return { color: base };
|
|
115
|
+
const match = config.badgeRules.find((rule) => rule.expression && applyRule(rule.expression, nodeObj));
|
|
116
|
+
return {
|
|
117
|
+
color: match ? asBadgeColor(match.color) : (base !== null && base !== void 0 ? base : NEUTRAL_BADGE_COLOR)
|
|
118
|
+
};
|
|
109
119
|
};
|
|
110
120
|
/**
|
|
111
121
|
* Read a record property, preferring the lookup display text the data layer
|
|
@@ -116,6 +126,36 @@ const readRecordValue = (source, property) => {
|
|
|
116
126
|
var _a;
|
|
117
127
|
return (_a = source === null || source === void 0 ? void 0 : source[`${property}LookupValue`]) !== null && _a !== void 0 ? _a : source === null || source === void 0 ? void 0 : source[property];
|
|
118
128
|
};
|
|
129
|
+
const fieldConfigs = (node) => {
|
|
130
|
+
var _a;
|
|
131
|
+
var _b;
|
|
132
|
+
return (_b = (_a = node.properties) === null || _a === void 0 ? void 0 : _a.pageHeaderConfiguration) !== null && _b !== void 0 ? _b : [];
|
|
133
|
+
};
|
|
134
|
+
/** An entry's value from the record, through its joining entity when it has one. */
|
|
135
|
+
const readEntryValue = (config, node, nodeObj) => {
|
|
136
|
+
var _a;
|
|
137
|
+
var _b, _c;
|
|
138
|
+
const propertyName = (_b = config.propertyName) !== null && _b !== void 0 ? _b : '';
|
|
139
|
+
const property = config.property || propertyName;
|
|
140
|
+
if (!config.joiningEntityKey)
|
|
141
|
+
return readRecordValue(nodeObj, propertyName);
|
|
142
|
+
if (config.joiningEntityKey === ((_a = node.properties) === null || _a === void 0 ? void 0 : _a.catalogObjectKey)) {
|
|
143
|
+
return readRecordValue(nodeObj, property);
|
|
144
|
+
}
|
|
145
|
+
const joined = nodeObj[config.joiningEntityKey];
|
|
146
|
+
return (_c = readRecordValue(joined, property)) !== null && _c !== void 0 ? _c : readRecordValue(nodeObj, property);
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Badge text: a boolean is a FLAG, and the flag's display string is the
|
|
150
|
+
* entry's name ("Confidential"); every other value-bearing field shows its
|
|
151
|
+
* VALUE, same as a plain field (lookup display text already preferred by
|
|
152
|
+
* `readRecordValue`). Rules only decide whether — and in what colour — the
|
|
153
|
+
* badge shows; they never change its text.
|
|
154
|
+
*/
|
|
155
|
+
const badgeText = (config, value) => {
|
|
156
|
+
var _a;
|
|
157
|
+
return typeof value === 'boolean' ? ((_a = config.name) !== null && _a !== void 0 ? _a : '') : displayString(value);
|
|
158
|
+
};
|
|
119
159
|
/**
|
|
120
160
|
* Static header fields (legacy NodeDetails value resolution, ported pure):
|
|
121
161
|
* value from the record by propertyName, with the joining-entity fallback
|
|
@@ -127,45 +167,23 @@ const readRecordValue = (source, property) => {
|
|
|
127
167
|
*/
|
|
128
168
|
export const resolveHeaderFields = (node) => {
|
|
129
169
|
var _a, _b;
|
|
130
|
-
var _c, _d, _e, _f;
|
|
131
|
-
const configs = (_a = node.properties) === null || _a === void 0 ? void 0 : _a.pageHeaderConfiguration;
|
|
132
170
|
const nodeObj = node.nodeObj;
|
|
133
|
-
if (!
|
|
171
|
+
if (!nodeObj)
|
|
134
172
|
return [];
|
|
135
173
|
const fields = [];
|
|
136
|
-
for (const config of
|
|
174
|
+
for (const config of fieldConfigs(node)) {
|
|
137
175
|
if (!config.isShown)
|
|
138
176
|
continue;
|
|
139
|
-
const
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
if (config.joiningEntityKey) {
|
|
143
|
-
if (config.joiningEntityKey === ((_b = node.properties) === null || _b === void 0 ? void 0 : _b.catalogObjectKey)) {
|
|
144
|
-
value = readRecordValue(nodeObj, property);
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
const joined = nodeObj[config.joiningEntityKey];
|
|
148
|
-
value = (_d = readRecordValue(joined, property)) !== null && _d !== void 0 ? _d : readRecordValue(nodeObj, property);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
const display = (_e = config.display) !== null && _e !== void 0 ? _e : 'field';
|
|
152
|
-
// A falsy value (no rules) or a rule set with no match drops the badge.
|
|
177
|
+
const value = readEntryValue(config, node, nodeObj);
|
|
178
|
+
const display = (_a = config.display) !== null && _a !== void 0 ? _a : 'field';
|
|
179
|
+
// A badge with no value to show is dropped (resolveBadge).
|
|
153
180
|
const badge = display === 'badge' ? resolveBadge(config, value, nodeObj) : null;
|
|
154
181
|
if (display === 'badge' && !badge)
|
|
155
182
|
continue;
|
|
156
|
-
// Badge text: a boolean is a FLAG, and the flag's display string is the
|
|
157
|
-
// entry's name ("Confidential"); every other value-bearing field shows its
|
|
158
|
-
// VALUE, same as a plain field (lookup display text already preferred by
|
|
159
|
-
// `readRecordValue`). Rules only decide whether — and in what colour — the
|
|
160
|
-
// badge shows; they never change its text.
|
|
161
|
-
const name = (_f = config.name) !== null && _f !== void 0 ? _f : '';
|
|
162
|
-
const text = display === 'badge' && typeof value === 'boolean'
|
|
163
|
-
? name
|
|
164
|
-
: displayString(value);
|
|
165
183
|
// Empty stays empty — the renderer decides the placeholder (legacy: 'N/A').
|
|
166
184
|
const field = {
|
|
167
|
-
label: name,
|
|
168
|
-
value:
|
|
185
|
+
label: (_b = config.name) !== null && _b !== void 0 ? _b : '',
|
|
186
|
+
value: display === 'badge' ? badgeText(config, value) : displayString(value),
|
|
169
187
|
display
|
|
170
188
|
};
|
|
171
189
|
if (badge === null || badge === void 0 ? void 0 : badge.color)
|
|
@@ -174,9 +192,41 @@ export const resolveHeaderFields = (node) => {
|
|
|
174
192
|
}
|
|
175
193
|
return fields;
|
|
176
194
|
};
|
|
195
|
+
/**
|
|
196
|
+
* The fields a level draws as badges in one of the two places outside the
|
|
197
|
+
* header's details — its tree rows (`onRow`) or beside the record's title
|
|
198
|
+
* (`onTitle`) — in list order. It is the header's own entry, read by the
|
|
199
|
+
* header's own functions — value, text, visibility and colour — so a field's
|
|
200
|
+
* badge is the same badge in every place, and can only be configured once.
|
|
201
|
+
* Whether the details show the field (`isShown`), and how (`display`), is the
|
|
202
|
+
* details' business alone.
|
|
203
|
+
*/
|
|
204
|
+
const resolveFieldBadges = (node, place) => {
|
|
205
|
+
const nodeObj = node.nodeObj;
|
|
206
|
+
if (!nodeObj)
|
|
207
|
+
return [];
|
|
208
|
+
const badges = [];
|
|
209
|
+
for (const config of fieldConfigs(node)) {
|
|
210
|
+
if (!config[place])
|
|
211
|
+
continue;
|
|
212
|
+
const value = readEntryValue(config, node, nodeObj);
|
|
213
|
+
const badge = resolveBadge(config, value, nodeObj);
|
|
214
|
+
if (!badge)
|
|
215
|
+
continue;
|
|
216
|
+
const text = badgeText(config, value);
|
|
217
|
+
if (!text)
|
|
218
|
+
continue;
|
|
219
|
+
badges.push(badge.color ? { text, color: badge.color } : { text });
|
|
220
|
+
}
|
|
221
|
+
return badges;
|
|
222
|
+
};
|
|
223
|
+
/** The field badges on a record's tree row. */
|
|
224
|
+
export const resolveRowBadges = (node) => resolveFieldBadges(node, 'onRow');
|
|
225
|
+
/** The field badges beside a record's title. */
|
|
226
|
+
export const resolveTitleBadges = (node) => resolveFieldBadges(node, 'onTitle');
|
|
177
227
|
/**
|
|
178
228
|
* Node-level alert refs (legacy EntityHeader → UdpAlertsContainer read of
|
|
179
|
-
* `properties.alerts`): the `{ id, alertId }` rows, entity nodes only (group
|
|
229
|
+
* `properties.alerts`): the `{ id, alertId, paramMappings }` rows, entity nodes only (group
|
|
180
230
|
* nodes never carried alerts). Pure — the `alert/{alertId}` fetch and the
|
|
181
231
|
* threshold-status render happen in the alerts capability.
|
|
182
232
|
*/
|
|
@@ -189,17 +239,17 @@ export const resolveNodeAlerts = (node) => {
|
|
|
189
239
|
return [];
|
|
190
240
|
return alerts
|
|
191
241
|
.filter((alert) => alert && alert.alertId != null && alert.alertId !== '')
|
|
192
|
-
.map((alert) => ({
|
|
193
|
-
id: alert.id != null ? toWireString(alert.id) : toWireString(alert.alertId),
|
|
194
|
-
alertId: toWireString(alert.alertId)
|
|
195
|
-
}));
|
|
242
|
+
.map((alert) => (Object.assign({ id: alert.id != null ? toWireString(alert.id) : toWireString(alert.alertId), alertId: toWireString(alert.alertId), params: queryParamsFromRecord(node.nodeObj, alert.paramMappings) }, (alert.stagedAlert ? { staged: alert.stagedAlert } : {}))));
|
|
196
243
|
};
|
|
197
244
|
const resolveCollapse = (value) => {
|
|
198
245
|
if (!value || value === 'hidden')
|
|
199
246
|
return { show: false, expanded: false };
|
|
200
247
|
return { show: true, expanded: value === 'expanded' };
|
|
201
248
|
};
|
|
202
|
-
/**
|
|
249
|
+
/**
|
|
250
|
+
* Visible tabs: sequence-ordered, rule-filtered, stable ids. A tab with no
|
|
251
|
+
* page (saved as `page: ''`) has nothing to show and is skipped.
|
|
252
|
+
*/
|
|
203
253
|
export const resolveTabs = (node) => {
|
|
204
254
|
var _a, _b, _c, _d, _e, _f;
|
|
205
255
|
var _g, _h, _j, _k, _l, _m, _o;
|
|
@@ -210,16 +260,16 @@ export const resolveTabs = (node) => {
|
|
|
210
260
|
return [];
|
|
211
261
|
const visible = [];
|
|
212
262
|
for (const tab of bySequence(tabs)) {
|
|
213
|
-
if (!passesRule(tab, nodeObj))
|
|
214
|
-
continue;
|
|
215
263
|
const pageId = (_h = (_c = tab.page) === null || _c === void 0 ? void 0 : _c.pageId) !== null && _h !== void 0 ? _h : '';
|
|
264
|
+
if (!pageId || !passesRule(tab, nodeObj))
|
|
265
|
+
continue;
|
|
216
266
|
const label = ((_d = tab.displayName) === null || _d === void 0 ? void 0 : _d.trim()) || ((_f = (_e = tab.page) === null || _e === void 0 ? void 0 : _e.name) === null || _f === void 0 ? void 0 : _f.trim()) || '';
|
|
217
267
|
visible.push({
|
|
218
268
|
id: tab.id !== undefined && tab.id !== null ? String(tab.id) : pageId,
|
|
219
269
|
label,
|
|
220
270
|
pageId,
|
|
221
271
|
pageHeaderPageId: resolveFirstMatchingPageId((_j = tab.pageHeaderPages) !== null && _j !== void 0 ? _j : null, nodeObj),
|
|
222
|
-
pageHeaderCollapse: resolveCollapse(
|
|
272
|
+
pageHeaderCollapse: resolveCollapse(nodePageHeaderDefault),
|
|
223
273
|
queryId: (_k = tab.queryId) !== null && _k !== void 0 ? _k : '',
|
|
224
274
|
queryParamMapping: (_l = tab.queryParamMapping) !== null && _l !== void 0 ? _l : null,
|
|
225
275
|
requiredFieldMapping: (_m = tab.requiredFieldMapping) !== null && _m !== void 0 ? _m : {},
|
|
@@ -232,24 +282,13 @@ export const resolveNodeViewModel = (node) => {
|
|
|
232
282
|
var _a, _b, _c;
|
|
233
283
|
const properties = (_a = node.properties) !== null && _a !== void 0 ? _a : {};
|
|
234
284
|
const nodeObj = (_b = node.nodeObj) !== null && _b !== void 0 ? _b : {};
|
|
235
|
-
//
|
|
236
|
-
//
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
//
|
|
242
|
-
// A string, though, is not yet a TITLE: a level configuring no headerName
|
|
243
|
-
// rendered a blank title row for a record whose name the tree row showed
|
|
244
|
-
// perfectly well. Hence the fallback contract, stated once here: a configured
|
|
245
|
-
// headerName wins, and a level that configures none shows exactly what its
|
|
246
|
-
// tree row shows (`resolveRowLabel`, the one row-label reader). Group nodes
|
|
247
|
-
// are unchanged — their row label IS `properties.label`.
|
|
248
|
-
const headerTitle = displayString(node.isGroupNode
|
|
249
|
-
? properties.label
|
|
250
|
-
: formatTreeLabel(properties.headerName, nodeObj)) || resolveRowLabel(node);
|
|
285
|
+
// A configured headerName wins; a level that configures none shows exactly
|
|
286
|
+
// what its tree row shows. Group nodes' row label IS `properties.label`.
|
|
287
|
+
const headerTitle = (node.isGroupNode
|
|
288
|
+
? displayString(properties.label)
|
|
289
|
+
: formatTreeLabel(properties.headerName, nodeObj)) ||
|
|
290
|
+
resolveRowLabel(node);
|
|
251
291
|
const headerCollapse = resolveCollapse(properties.defaultNodeHeaderExpanded);
|
|
252
|
-
const pageHeaderCollapse = resolveCollapse(properties.defaultPageHeaderExpanded);
|
|
253
292
|
let header = { kind: 'none' };
|
|
254
293
|
if (headerCollapse.show) {
|
|
255
294
|
const headerPageId = resolveFirstMatchingPageId(properties.nodeHeaderPages, nodeObj);
|
|
@@ -265,10 +304,10 @@ export const resolveNodeViewModel = (node) => {
|
|
|
265
304
|
headerTitle,
|
|
266
305
|
header,
|
|
267
306
|
headerCollapse,
|
|
268
|
-
pageHeaderCollapse,
|
|
269
307
|
tabs: resolveTabs(node),
|
|
270
308
|
panels: (_c = properties.panels) !== null && _c !== void 0 ? _c : [],
|
|
271
|
-
alerts: resolveNodeAlerts(node)
|
|
309
|
+
alerts: resolveNodeAlerts(node),
|
|
310
|
+
titleBadges: resolveTitleBadges(node)
|
|
272
311
|
};
|
|
273
312
|
};
|
|
274
313
|
//# sourceMappingURL=model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/domain/nodeView/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/domain/nodeView/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAS7D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,+EAA+E;AAC/E,MAAM,aAAa,GAAG,CAAC,KAAc,EAAU,EAAE,CAAC;IAChD,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE;QAAE,OAAO,EAAE,CAAC;IACrE,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5D,OAAO,MAAM,CAAC,KAAkC,CAAC,CAAC;AAAA,CACnD,CAAC;AAYF;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,OAAO;IACP,QAAQ;IACR,WAAW;IACX,aAAa;IACb,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,SAAS;CACD,CAAC;AAIX,yDAAyD;AACzD,MAAM,mBAAmB,GAAe,aAAa,CAAC;AAwGtD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,QAA0B,EACV,EAA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-1,6 +1,7 @@
|
|
|
1
1
|
import { applyRule, mapRuleVariables } from "../inquiryTree/rules.mjs";
|
|
2
2
|
import { formatTreeLabel } from "../inquiryTree/view.mjs";
|
|
3
3
|
import { toWireString } from "../inquiryTree/wireString.mjs";
|
|
4
|
+
import { queryParamsFromRecord } from "../inquiryTree/runtime.mjs";
|
|
4
5
|
import { resolveRowLabel } from "../inquiryTree/displayTree.mjs";
|
|
5
6
|
//#region src/domain/nodeView/model.ts
|
|
6
7
|
/**
|
|
@@ -38,6 +39,8 @@ const BADGE_COLORS = [
|
|
|
38
39
|
"success",
|
|
39
40
|
"warning"
|
|
40
41
|
];
|
|
42
|
+
/** A badge with no colour of its own to fall back on. */
|
|
43
|
+
const NEUTRAL_BADGE_COLOR = "informative";
|
|
41
44
|
/**
|
|
42
45
|
* The node view's degradation rule (one place, so band and body agree):
|
|
43
46
|
*
|
|
@@ -62,7 +65,7 @@ const bySequence = (list) => [...list].sort((a, b) => (Number(a.sequenceNo ?? 0)
|
|
|
62
65
|
/** True when the candidate has no rule, or its rule passes against the record. */
|
|
63
66
|
const passesRule = (candidate, nodeObj) => {
|
|
64
67
|
if (!candidate.propertyMapping || !candidate.jsonLogic) return true;
|
|
65
|
-
return !!applyRule(mapRuleVariables(candidate.propertyMapping, candidate.jsonLogic), nodeObj
|
|
68
|
+
return !!applyRule(mapRuleVariables(candidate.propertyMapping, candidate.jsonLogic), nodeObj);
|
|
66
69
|
};
|
|
67
70
|
/**
|
|
68
71
|
* The shared sequence-ordered, rule-gated candidate walk: first candidate
|
|
@@ -75,19 +78,22 @@ const resolveFirstMatchingPageId = (candidates, nodeObj) => {
|
|
|
75
78
|
};
|
|
76
79
|
const asBadgeColor = (color) => BADGE_COLORS.includes(color) ? color : void 0;
|
|
77
80
|
/**
|
|
78
|
-
* Whether a badge entry renders at all, and in which color.
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
81
|
+
* Whether a badge entry renders at all, and in which color. A badge shows when
|
|
82
|
+
* its value is present (a boolean flag only when true). The entry's own color
|
|
83
|
+
* is the badge's color; rules override it for the records they match, first
|
|
84
|
+
* match wins — the conditional icon's grammar, where the base icon is what
|
|
85
|
+
* "all other records" get. A value no rule matches therefore still shows, in
|
|
86
|
+
* the entry's color: a field must never vanish just because its value is one
|
|
87
|
+
* the designer did not single out. The expressions go through `applyRule` —
|
|
88
|
+
* the same evaluator the tree's conditional icon/adornment rules use, so one
|
|
89
|
+
* rule behaves identically wherever a designer puts it.
|
|
84
90
|
*/
|
|
85
91
|
const resolveBadge = (config, value, nodeObj) => {
|
|
86
|
-
if (
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return
|
|
92
|
+
if (!value) return null;
|
|
93
|
+
const base = asBadgeColor(config.badgeColor);
|
|
94
|
+
if (!config.badgeRules?.length) return { color: base };
|
|
95
|
+
const match = config.badgeRules.find((rule) => rule.expression && applyRule(rule.expression, nodeObj));
|
|
96
|
+
return { color: match ? asBadgeColor(match.color) : base ?? NEUTRAL_BADGE_COLOR };
|
|
91
97
|
};
|
|
92
98
|
/**
|
|
93
99
|
* Read a record property, preferring the lookup display text the data layer
|
|
@@ -95,6 +101,24 @@ const resolveBadge = (config, value, nodeObj) => {
|
|
|
95
101
|
* Unstamped fields (no lookup, or an unresolved one) read as before.
|
|
96
102
|
*/
|
|
97
103
|
const readRecordValue = (source, property) => source?.[`${property}LookupValue`] ?? source?.[property];
|
|
104
|
+
const fieldConfigs = (node) => node.properties?.pageHeaderConfiguration ?? [];
|
|
105
|
+
/** An entry's value from the record, through its joining entity when it has one. */
|
|
106
|
+
const readEntryValue = (config, node, nodeObj) => {
|
|
107
|
+
const propertyName = config.propertyName ?? "";
|
|
108
|
+
const property = config.property || propertyName;
|
|
109
|
+
if (!config.joiningEntityKey) return readRecordValue(nodeObj, propertyName);
|
|
110
|
+
if (config.joiningEntityKey === node.properties?.catalogObjectKey) return readRecordValue(nodeObj, property);
|
|
111
|
+
const joined = nodeObj[config.joiningEntityKey];
|
|
112
|
+
return readRecordValue(joined, property) ?? readRecordValue(nodeObj, property);
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Badge text: a boolean is a FLAG, and the flag's display string is the
|
|
116
|
+
* entry's name ("Confidential"); every other value-bearing field shows its
|
|
117
|
+
* VALUE, same as a plain field (lookup display text already preferred by
|
|
118
|
+
* `readRecordValue`). Rules only decide whether — and in what colour — the
|
|
119
|
+
* badge shows; they never change its text.
|
|
120
|
+
*/
|
|
121
|
+
const badgeText = (config, value) => typeof value === "boolean" ? config.name ?? "" : displayString(value);
|
|
98
122
|
/**
|
|
99
123
|
* Static header fields (legacy NodeDetails value resolution, ported pure):
|
|
100
124
|
* value from the record by propertyName, with the joining-entity fallback
|
|
@@ -105,27 +129,18 @@ const readRecordValue = (source, property) => source?.[`${property}LookupValue`]
|
|
|
105
129
|
* resolve their visibility and color here, so the renderer stays dumb.
|
|
106
130
|
*/
|
|
107
131
|
const resolveHeaderFields = (node) => {
|
|
108
|
-
const configs = node.properties?.pageHeaderConfiguration;
|
|
109
132
|
const nodeObj = node.nodeObj;
|
|
110
|
-
if (!
|
|
133
|
+
if (!nodeObj) return [];
|
|
111
134
|
const fields = [];
|
|
112
|
-
for (const config of
|
|
135
|
+
for (const config of fieldConfigs(node)) {
|
|
113
136
|
if (!config.isShown) continue;
|
|
114
|
-
const
|
|
115
|
-
const property = config.property || propertyName;
|
|
116
|
-
let value = readRecordValue(nodeObj, propertyName);
|
|
117
|
-
if (config.joiningEntityKey) if (config.joiningEntityKey === node.properties?.catalogObjectKey) value = readRecordValue(nodeObj, property);
|
|
118
|
-
else {
|
|
119
|
-
const joined = nodeObj[config.joiningEntityKey];
|
|
120
|
-
value = readRecordValue(joined, property) ?? readRecordValue(nodeObj, property);
|
|
121
|
-
}
|
|
137
|
+
const value = readEntryValue(config, node, nodeObj);
|
|
122
138
|
const display = config.display ?? "field";
|
|
123
139
|
const badge = display === "badge" ? resolveBadge(config, value, nodeObj) : null;
|
|
124
140
|
if (display === "badge" && !badge) continue;
|
|
125
|
-
const name = config.name ?? "";
|
|
126
141
|
const field = {
|
|
127
|
-
label: name,
|
|
128
|
-
value: display === "badge"
|
|
142
|
+
label: config.name ?? "",
|
|
143
|
+
value: display === "badge" ? badgeText(config, value) : displayString(value),
|
|
129
144
|
display
|
|
130
145
|
};
|
|
131
146
|
if (badge?.color) field.color = badge.color;
|
|
@@ -134,8 +149,39 @@ const resolveHeaderFields = (node) => {
|
|
|
134
149
|
return fields;
|
|
135
150
|
};
|
|
136
151
|
/**
|
|
152
|
+
* The fields a level draws as badges in one of the two places outside the
|
|
153
|
+
* header's details — its tree rows (`onRow`) or beside the record's title
|
|
154
|
+
* (`onTitle`) — in list order. It is the header's own entry, read by the
|
|
155
|
+
* header's own functions — value, text, visibility and colour — so a field's
|
|
156
|
+
* badge is the same badge in every place, and can only be configured once.
|
|
157
|
+
* Whether the details show the field (`isShown`), and how (`display`), is the
|
|
158
|
+
* details' business alone.
|
|
159
|
+
*/
|
|
160
|
+
const resolveFieldBadges = (node, place) => {
|
|
161
|
+
const nodeObj = node.nodeObj;
|
|
162
|
+
if (!nodeObj) return [];
|
|
163
|
+
const badges = [];
|
|
164
|
+
for (const config of fieldConfigs(node)) {
|
|
165
|
+
if (!config[place]) continue;
|
|
166
|
+
const value = readEntryValue(config, node, nodeObj);
|
|
167
|
+
const badge = resolveBadge(config, value, nodeObj);
|
|
168
|
+
if (!badge) continue;
|
|
169
|
+
const text = badgeText(config, value);
|
|
170
|
+
if (!text) continue;
|
|
171
|
+
badges.push(badge.color ? {
|
|
172
|
+
text,
|
|
173
|
+
color: badge.color
|
|
174
|
+
} : { text });
|
|
175
|
+
}
|
|
176
|
+
return badges;
|
|
177
|
+
};
|
|
178
|
+
/** The field badges on a record's tree row. */
|
|
179
|
+
const resolveRowBadges = (node) => resolveFieldBadges(node, "onRow");
|
|
180
|
+
/** The field badges beside a record's title. */
|
|
181
|
+
const resolveTitleBadges = (node) => resolveFieldBadges(node, "onTitle");
|
|
182
|
+
/**
|
|
137
183
|
* Node-level alert refs (legacy EntityHeader → UdpAlertsContainer read of
|
|
138
|
-
* `properties.alerts`): the `{ id, alertId }` rows, entity nodes only (group
|
|
184
|
+
* `properties.alerts`): the `{ id, alertId, paramMappings }` rows, entity nodes only (group
|
|
139
185
|
* nodes never carried alerts). Pure — the `alert/{alertId}` fetch and the
|
|
140
186
|
* threshold-status render happen in the alerts capability.
|
|
141
187
|
*/
|
|
@@ -145,7 +191,9 @@ const resolveNodeAlerts = (node) => {
|
|
|
145
191
|
if (!alerts?.length) return [];
|
|
146
192
|
return alerts.filter((alert) => alert && alert.alertId != null && alert.alertId !== "").map((alert) => ({
|
|
147
193
|
id: alert.id != null ? toWireString(alert.id) : toWireString(alert.alertId),
|
|
148
|
-
alertId: toWireString(alert.alertId)
|
|
194
|
+
alertId: toWireString(alert.alertId),
|
|
195
|
+
params: queryParamsFromRecord(node.nodeObj, alert.paramMappings),
|
|
196
|
+
...alert.stagedAlert ? { staged: alert.stagedAlert } : {}
|
|
149
197
|
}));
|
|
150
198
|
};
|
|
151
199
|
const resolveCollapse = (value) => {
|
|
@@ -158,7 +206,10 @@ const resolveCollapse = (value) => {
|
|
|
158
206
|
expanded: value === "expanded"
|
|
159
207
|
};
|
|
160
208
|
};
|
|
161
|
-
/**
|
|
209
|
+
/**
|
|
210
|
+
* Visible tabs: sequence-ordered, rule-filtered, stable ids. A tab with no
|
|
211
|
+
* page (saved as `page: ''`) has nothing to show and is skipped.
|
|
212
|
+
*/
|
|
162
213
|
const resolveTabs = (node) => {
|
|
163
214
|
const tabs = node.properties?.tabs;
|
|
164
215
|
const nodeObj = node.nodeObj ?? {};
|
|
@@ -166,15 +217,15 @@ const resolveTabs = (node) => {
|
|
|
166
217
|
if (!tabs?.length) return [];
|
|
167
218
|
const visible = [];
|
|
168
219
|
for (const tab of bySequence(tabs)) {
|
|
169
|
-
if (!passesRule(tab, nodeObj)) continue;
|
|
170
220
|
const pageId = tab.page?.pageId ?? "";
|
|
221
|
+
if (!pageId || !passesRule(tab, nodeObj)) continue;
|
|
171
222
|
const label = tab.displayName?.trim() || tab.page?.name?.trim() || "";
|
|
172
223
|
visible.push({
|
|
173
224
|
id: tab.id !== void 0 && tab.id !== null ? String(tab.id) : pageId,
|
|
174
225
|
label,
|
|
175
226
|
pageId,
|
|
176
227
|
pageHeaderPageId: resolveFirstMatchingPageId(tab.pageHeaderPages ?? null, nodeObj),
|
|
177
|
-
pageHeaderCollapse: resolveCollapse(
|
|
228
|
+
pageHeaderCollapse: resolveCollapse(nodePageHeaderDefault),
|
|
178
229
|
queryId: tab.queryId ?? "",
|
|
179
230
|
queryParamMapping: tab.queryParamMapping ?? null,
|
|
180
231
|
requiredFieldMapping: tab.requiredFieldMapping ?? {},
|
|
@@ -186,9 +237,8 @@ const resolveTabs = (node) => {
|
|
|
186
237
|
const resolveNodeViewModel = (node) => {
|
|
187
238
|
const properties = node.properties ?? {};
|
|
188
239
|
const nodeObj = node.nodeObj ?? {};
|
|
189
|
-
const headerTitle =
|
|
240
|
+
const headerTitle = (node.isGroupNode ? displayString(properties.label) : formatTreeLabel(properties.headerName, nodeObj)) || resolveRowLabel(node);
|
|
190
241
|
const headerCollapse = resolveCollapse(properties.defaultNodeHeaderExpanded);
|
|
191
|
-
const pageHeaderCollapse = resolveCollapse(properties.defaultPageHeaderExpanded);
|
|
192
242
|
let header = { kind: "none" };
|
|
193
243
|
if (headerCollapse.show) {
|
|
194
244
|
const headerPageId = resolveFirstMatchingPageId(properties.nodeHeaderPages, nodeObj);
|
|
@@ -208,13 +258,13 @@ const resolveNodeViewModel = (node) => {
|
|
|
208
258
|
headerTitle,
|
|
209
259
|
header,
|
|
210
260
|
headerCollapse,
|
|
211
|
-
pageHeaderCollapse,
|
|
212
261
|
tabs: resolveTabs(node),
|
|
213
262
|
panels: properties.panels ?? [],
|
|
214
|
-
alerts: resolveNodeAlerts(node)
|
|
263
|
+
alerts: resolveNodeAlerts(node),
|
|
264
|
+
titleBadges: resolveTitleBadges(node)
|
|
215
265
|
};
|
|
216
266
|
};
|
|
217
267
|
//#endregion
|
|
218
|
-
export { BADGE_COLORS, resolveFirstMatchingPageId, resolveHeaderFields, resolveNodeAlerts, resolveNodeViewLayout, resolveNodeViewModel, resolveTabs };
|
|
268
|
+
export { BADGE_COLORS, resolveFirstMatchingPageId, resolveHeaderFields, resolveNodeAlerts, resolveNodeViewLayout, resolveNodeViewModel, resolveRowBadges, resolveTabs, resolveTitleBadges };
|
|
219
269
|
|
|
220
270
|
//# sourceMappingURL=model.mjs.map
|