udp-react-enterprise-component-library 27.0.0-next.12 → 27.0.0-next.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.d.ts +4 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.js +2 -2
- package/dist/UI/fluent-web-components/UdpIconPicker.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.mjs +32 -28
- package/dist/UI/fluent-web-components/UdpIconPicker.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.d.ts +6 -0
- package/dist/UI/fluent-web-components/UdpLink.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.mjs.map +1 -1
- package/dist/UI/fluent-web-components/types.d.ts +2 -0
- package/dist/UI/fluent-web-components/types.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts +16 -3
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js +36 -13
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs +119 -62
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/index.mjs +3 -2
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts +9 -2
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js +18 -18
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs +79 -67
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts +8 -2
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js +32 -16
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs +129 -102
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts +3 -2
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js +11 -12
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs +6 -4
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts +2 -19
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js +4 -5
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs +5 -4
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs.map +1 -1
- package/dist/actionPanels/index.d.ts +0 -2
- package/dist/actionPanels/index.d.ts.map +1 -1
- package/dist/actionPanels/index.js +0 -2
- package/dist/actionPanels/index.js.map +1 -1
- package/dist/actionPanels/panelActionFields.d.ts +9 -26
- package/dist/actionPanels/panelActionFields.d.ts.map +1 -1
- package/dist/actionPanels/panelActionFields.js +32 -55
- package/dist/actionPanels/panelActionFields.js.map +1 -1
- package/dist/actionPanels/panelActionFields.mjs +159 -375
- package/dist/actionPanels/panelActionFields.mjs.map +1 -1
- package/dist/actionPanels/panelOperations.d.ts +15 -41
- package/dist/actionPanels/panelOperations.d.ts.map +1 -1
- package/dist/actionPanels/panelOperations.js +51 -89
- package/dist/actionPanels/panelOperations.js.map +1 -1
- package/dist/actionPanels/panelOperations.mjs +37 -92
- package/dist/actionPanels/panelOperations.mjs.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.d.ts +15 -2
- package/dist/domain/actionPanel/actionTypeMeta.d.ts.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.js +21 -2
- package/dist/domain/actionPanel/actionTypeMeta.js.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.mjs +18 -3
- package/dist/domain/actionPanel/actionTypeMeta.mjs.map +1 -1
- package/dist/domain/actionPanel/buttonOrder.d.ts +67 -0
- package/dist/domain/actionPanel/buttonOrder.d.ts.map +1 -0
- package/dist/domain/actionPanel/buttonOrder.js +105 -0
- package/dist/domain/actionPanel/buttonOrder.js.map +1 -0
- package/dist/domain/actionPanel/buttonOrder.mjs +90 -0
- package/dist/domain/actionPanel/buttonOrder.mjs.map +1 -0
- package/dist/domain/actionPanel/index.d.ts +1 -0
- package/dist/domain/actionPanel/index.d.ts.map +1 -1
- package/dist/domain/actionPanel/index.js +1 -0
- package/dist/domain/actionPanel/index.js.map +1 -1
- package/dist/domain/actionPanel/index.mjs +4 -3
- package/dist/domain/actionPanel/serialize.d.ts +6 -2
- package/dist/domain/actionPanel/serialize.d.ts.map +1 -1
- package/dist/domain/actionPanel/serialize.js +10 -3
- package/dist/domain/actionPanel/serialize.js.map +1 -1
- package/dist/domain/actionPanel/serialize.mjs +7 -3
- package/dist/domain/actionPanel/serialize.mjs.map +1 -1
- package/dist/domain/actionPanel/types.d.ts +24 -8
- package/dist/domain/actionPanel/types.d.ts.map +1 -1
- package/dist/domain/actionPanel/types.js.map +1 -1
- package/dist/domain/actionPanel/types.mjs.map +1 -1
- package/dist/domain/inquiryTree/describe.d.ts +15 -3
- package/dist/domain/inquiryTree/describe.d.ts.map +1 -1
- package/dist/domain/inquiryTree/describe.js +32 -28
- package/dist/domain/inquiryTree/describe.js.map +1 -1
- package/dist/domain/inquiryTree/describe.mjs +34 -16
- package/dist/domain/inquiryTree/describe.mjs.map +1 -1
- package/dist/domain/inquiryTree/displayTree.d.ts +75 -97
- package/dist/domain/inquiryTree/displayTree.d.ts.map +1 -1
- package/dist/domain/inquiryTree/displayTree.js +418 -551
- package/dist/domain/inquiryTree/displayTree.js.map +1 -1
- package/dist/domain/inquiryTree/displayTree.mjs +345 -414
- package/dist/domain/inquiryTree/displayTree.mjs.map +1 -1
- package/dist/domain/inquiryTree/groups.d.ts +2 -0
- package/dist/domain/inquiryTree/groups.d.ts.map +1 -1
- package/dist/domain/inquiryTree/groups.js.map +1 -1
- package/dist/domain/inquiryTree/groups.mjs.map +1 -1
- package/dist/domain/inquiryTree/index.d.ts +1 -1
- package/dist/domain/inquiryTree/index.d.ts.map +1 -1
- package/dist/domain/inquiryTree/index.js +1 -1
- package/dist/domain/inquiryTree/index.js.map +1 -1
- package/dist/domain/inquiryTree/index.mjs +12 -12
- package/dist/domain/inquiryTree/lazyLoad.d.ts +20 -129
- package/dist/domain/inquiryTree/lazyLoad.d.ts.map +1 -1
- package/dist/domain/inquiryTree/lazyLoad.js +48 -233
- package/dist/domain/inquiryTree/lazyLoad.js.map +1 -1
- package/dist/domain/inquiryTree/lazyLoad.mjs +32 -187
- package/dist/domain/inquiryTree/lazyLoad.mjs.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.d.ts +13 -14
- package/dist/domain/inquiryTree/legalChildren.d.ts.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.js +21 -42
- package/dist/domain/inquiryTree/legalChildren.js.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.mjs +19 -37
- package/dist/domain/inquiryTree/legalChildren.mjs.map +1 -1
- package/dist/domain/inquiryTree/names.d.ts +38 -0
- package/dist/domain/inquiryTree/names.d.ts.map +1 -0
- package/dist/domain/inquiryTree/names.js +64 -0
- package/dist/domain/inquiryTree/names.js.map +1 -0
- package/dist/domain/inquiryTree/names.mjs +56 -0
- package/dist/domain/inquiryTree/names.mjs.map +1 -0
- package/dist/domain/inquiryTree/operations.d.ts +6 -2
- package/dist/domain/inquiryTree/operations.d.ts.map +1 -1
- package/dist/domain/inquiryTree/operations.js +17 -16
- package/dist/domain/inquiryTree/operations.js.map +1 -1
- package/dist/domain/inquiryTree/operations.mjs +14 -11
- package/dist/domain/inquiryTree/operations.mjs.map +1 -1
- package/dist/domain/inquiryTree/rules.d.ts +3 -4
- package/dist/domain/inquiryTree/rules.d.ts.map +1 -1
- package/dist/domain/inquiryTree/rules.js +3 -13
- package/dist/domain/inquiryTree/rules.js.map +1 -1
- package/dist/domain/inquiryTree/rules.mjs +3 -9
- package/dist/domain/inquiryTree/rules.mjs.map +1 -1
- package/dist/domain/inquiryTree/runtime.d.ts +23 -16
- package/dist/domain/inquiryTree/runtime.d.ts.map +1 -1
- package/dist/domain/inquiryTree/runtime.js +46 -54
- package/dist/domain/inquiryTree/runtime.js.map +1 -1
- package/dist/domain/inquiryTree/runtime.mjs +31 -26
- package/dist/domain/inquiryTree/runtime.mjs.map +1 -1
- package/dist/domain/inquiryTree/serialize.d.ts +20 -29
- package/dist/domain/inquiryTree/serialize.d.ts.map +1 -1
- package/dist/domain/inquiryTree/serialize.js +93 -205
- package/dist/domain/inquiryTree/serialize.js.map +1 -1
- package/dist/domain/inquiryTree/serialize.mjs +89 -180
- package/dist/domain/inquiryTree/serialize.mjs.map +1 -1
- package/dist/domain/inquiryTree/types.d.ts +146 -65
- package/dist/domain/inquiryTree/types.d.ts.map +1 -1
- package/dist/domain/inquiryTree/types.js +5 -0
- package/dist/domain/inquiryTree/types.js.map +1 -1
- package/dist/domain/inquiryTree/types.mjs +3 -1
- package/dist/domain/inquiryTree/types.mjs.map +1 -1
- package/dist/domain/inquiryTree/validate.d.ts +9 -2
- package/dist/domain/inquiryTree/validate.d.ts.map +1 -1
- package/dist/domain/inquiryTree/validate.js +30 -58
- package/dist/domain/inquiryTree/validate.js.map +1 -1
- package/dist/domain/inquiryTree/validate.mjs +29 -44
- package/dist/domain/inquiryTree/validate.mjs.map +1 -1
- package/dist/domain/inquiryTree/view.d.ts +8 -12
- package/dist/domain/inquiryTree/view.d.ts.map +1 -1
- package/dist/domain/inquiryTree/view.js +40 -66
- package/dist/domain/inquiryTree/view.js.map +1 -1
- package/dist/domain/inquiryTree/view.mjs +30 -60
- package/dist/domain/inquiryTree/view.mjs.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.d.ts +32 -48
- package/dist/domain/inquiryTree/waveLoad.d.ts.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.js +75 -90
- package/dist/domain/inquiryTree/waveLoad.js.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.mjs +54 -60
- package/dist/domain/inquiryTree/waveLoad.mjs.map +1 -1
- package/dist/domain/inquiryTree/wireString.d.ts +5 -0
- package/dist/domain/inquiryTree/wireString.d.ts.map +1 -1
- package/dist/domain/inquiryTree/wireString.js +11 -0
- package/dist/domain/inquiryTree/wireString.js.map +1 -1
- package/dist/domain/inquiryTree/wireString.mjs +10 -1
- package/dist/domain/inquiryTree/wireString.mjs.map +1 -1
- package/dist/domain/nodeView/index.mjs +2 -2
- package/dist/domain/nodeView/model.d.ts +35 -30
- package/dist/domain/nodeView/model.d.ts.map +1 -1
- package/dist/domain/nodeView/model.js +108 -69
- package/dist/domain/nodeView/model.js.map +1 -1
- package/dist/domain/nodeView/model.mjs +86 -36
- package/dist/domain/nodeView/model.mjs.map +1 -1
- package/dist/icons/legacyIconNames.d.ts.map +1 -1
- package/dist/icons/legacyIconNames.js +46 -1
- package/dist/icons/legacyIconNames.js.map +1 -1
- package/dist/icons/legacyIconNames.mjs +46 -1
- package/dist/icons/legacyIconNames.mjs.map +1 -1
- package/dist/index.mjs +10 -12
- package/dist/inquiry/Inquiry.d.ts +3 -0
- package/dist/inquiry/Inquiry.d.ts.map +1 -1
- package/dist/inquiry/Inquiry.js +3 -0
- package/dist/inquiry/Inquiry.js.map +1 -1
- package/dist/inquiry/Inquiry.mjs +3 -0
- package/dist/inquiry/Inquiry.mjs.map +1 -1
- package/dist/inquiry/v2/InquiryV2.d.ts +8 -6
- package/dist/inquiry/v2/InquiryV2.d.ts.map +1 -1
- package/dist/inquiry/v2/InquiryV2.js +45 -24
- package/dist/inquiry/v2/InquiryV2.js.map +1 -1
- package/dist/inquiry/v2/InquiryV2.mjs +108 -61
- package/dist/inquiry/v2/InquiryV2.mjs.map +1 -1
- package/dist/inquiry/v2/InquiryV2.module.css +60 -15
- package/dist/inquiry/v2/InquiryWorkspace.d.ts +9 -9
- package/dist/inquiry/v2/InquiryWorkspace.d.ts.map +1 -1
- package/dist/inquiry/v2/InquiryWorkspace.js +531 -408
- package/dist/inquiry/v2/InquiryWorkspace.js.map +1 -1
- package/dist/inquiry/v2/InquiryWorkspace.mjs +524 -408
- package/dist/inquiry/v2/InquiryWorkspace.mjs.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts +3 -2
- package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.js +20 -37
- package/dist/inquiry/v2/ai/InquiryV2Copilot.js.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs +19 -31
- package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.d.ts +6 -14
- package/dist/inquiry/v2/ai/copilotModel.d.ts.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.js +35 -87
- package/dist/inquiry/v2/ai/copilotModel.js.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.mjs +23 -47
- package/dist/inquiry/v2/ai/copilotModel.mjs.map +1 -1
- package/dist/inquiry/v2/api/queries.d.ts +46 -73
- package/dist/inquiry/v2/api/queries.d.ts.map +1 -1
- package/dist/inquiry/v2/api/queries.js +151 -210
- package/dist/inquiry/v2/api/queries.js.map +1 -1
- package/dist/inquiry/v2/api/queries.mjs +227 -183
- package/dist/inquiry/v2/api/queries.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js +103 -32
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs +92 -32
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.module.css +8 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts +20 -16
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js +111 -68
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs +108 -142
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/RetrieveSurface.mjs +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts +66 -50
- package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.js +141 -66
- package/dist/inquiry/v2/capabilities/actions/actionModel.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.mjs +115 -53
- package/dist/inquiry/v2/capabilities/actions/actionModel.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts +26 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js +36 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs +41 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/runAction.d.ts +3 -2
- package/dist/inquiry/v2/capabilities/actions/runAction.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/runAction.js +27 -23
- package/dist/inquiry/v2/capabilities/actions/runAction.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/runAction.mjs +26 -20
- package/dist/inquiry/v2/capabilities/actions/runAction.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts +20 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js +112 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs +118 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts +25 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js +7 -4
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs +9 -4
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts +5 -3
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js +11 -8
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs +13 -7
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.module.css +4 -4
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.js +20 -17
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs +101 -111
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.module.css +9 -6
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts +2 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js +9 -2
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs +18 -15
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/index.d.ts +0 -1
- package/dist/inquiry/v2/index.d.ts.map +1 -1
- package/dist/inquiry/v2/index.js.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts +3 -3
- package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.js +11 -5
- package/dist/inquiry/v2/kernel/ActionRunnerContext.js.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs +15 -12
- package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts +3 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts.map +1 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.js +14 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.js.map +1 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs +20 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs.map +1 -0
- package/dist/inquiry/v2/kernel/RecordContext.d.ts +2 -0
- package/dist/inquiry/v2/kernel/RecordContext.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/RecordContext.js.map +1 -1
- package/dist/inquiry/v2/kernel/RecordContext.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.js +18 -13
- package/dist/inquiry/v2/kernel/UdpNodeView.js.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.mjs +177 -140
- package/dist/inquiry/v2/kernel/UdpNodeView.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.module.css +56 -5
- package/dist/inquiry/v2/kernel/capabilities.d.ts +0 -2
- package/dist/inquiry/v2/kernel/capabilities.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/capabilities.js.map +1 -1
- package/dist/inquiry/v2/kernel/capabilities.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts +26 -37
- package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.js +48 -57
- package/dist/inquiry/v2/landing/InquiryExplorePage.js.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.mjs +102 -106
- package/dist/inquiry/v2/landing/InquiryExplorePage.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.module.css +58 -6
- package/dist/inquiry/v2/landing/InquiryLanding.d.ts +3 -3
- package/dist/inquiry/v2/landing/InquiryLanding.d.ts.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.js +8 -3
- package/dist/inquiry/v2/landing/InquiryLanding.js.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.mjs +51 -35
- package/dist/inquiry/v2/landing/InquiryLanding.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.module.css +8 -0
- package/dist/inquiry/v2/page/UdpPageRenderer.d.ts +5 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.d.ts.map +1 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.js +13 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.js.map +1 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.mjs +36 -7
- package/dist/inquiry/v2/page/UdpPageRenderer.mjs.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.d.ts +1 -7
- package/dist/inquiry/v2/search/InquirySearchPanel.d.ts.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.js +6 -13
- package/dist/inquiry/v2/search/InquirySearchPanel.js.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.mjs +4 -8
- package/dist/inquiry/v2/search/InquirySearchPanel.mjs.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.d.ts +30 -1
- package/dist/inquiry/v2/search/RecordFinder.d.ts.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.js +43 -20
- package/dist/inquiry/v2/search/RecordFinder.js.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.mjs +68 -42
- package/dist/inquiry/v2/search/RecordFinder.mjs.map +1 -1
- package/dist/inquiry/v2/search/index.d.ts +3 -3
- package/dist/inquiry/v2/search/index.d.ts.map +1 -1
- package/dist/inquiry/v2/search/index.js +1 -1
- package/dist/inquiry/v2/search/index.js.map +1 -1
- package/dist/inquiry/v2/search/searchModel.d.ts +130 -23
- package/dist/inquiry/v2/search/searchModel.d.ts.map +1 -1
- package/dist/inquiry/v2/search/searchModel.js +237 -36
- package/dist/inquiry/v2/search/searchModel.js.map +1 -1
- package/dist/inquiry/v2/search/searchModel.mjs +207 -34
- package/dist/inquiry/v2/search/searchModel.mjs.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.d.ts.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.js +46 -19
- package/dist/inquiry/v2/search/useInquirySearch.js.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.mjs +83 -84
- package/dist/inquiry/v2/search/useInquirySearch.mjs.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts +4 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js +174 -166
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs +343 -325
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts +3 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.js +8 -7
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.js.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs +68 -72
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts +3 -3
- package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.js +12 -7
- package/dist/inquiry/v2/tree/LoadRecordDialog.js.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.mjs +48 -33
- package/dist/inquiry/v2/tree/LoadRecordDialog.mjs.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.js +17 -6
- package/dist/inquiry/v2/tree/NodeList.js.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.mjs +49 -36
- package/dist/inquiry/v2/tree/NodeList.mjs.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.d.ts +15 -0
- package/dist/inquiry/v2/tree/arrivalModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.js +14 -1
- package/dist/inquiry/v2/tree/arrivalModel.js.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.mjs +12 -1
- package/dist/inquiry/v2/tree/arrivalModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/branchRefreshModel.d.ts +32 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.d.ts.map +1 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.js +62 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.js.map +1 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.mjs +60 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.mjs.map +1 -0
- package/dist/inquiry/v2/tree/droppedPageModel.d.ts +23 -1
- package/dist/inquiry/v2/tree/droppedPageModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/droppedPageModel.js +53 -26
- package/dist/inquiry/v2/tree/droppedPageModel.js.map +1 -1
- package/dist/inquiry/v2/tree/droppedPageModel.mjs +48 -20
- package/dist/inquiry/v2/tree/droppedPageModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts +7 -12
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js +44 -15
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs +34 -15
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js +7 -18
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs +6 -14
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts +20 -16
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js +77 -55
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs +85 -106
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.d.ts +18 -1
- package/dist/inquiry/v2/tree/lineageModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.js +71 -2
- package/dist/inquiry/v2/tree/lineageModel.js.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.mjs +53 -3
- package/dist/inquiry/v2/tree/lineageModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.d.ts +10 -27
- package/dist/inquiry/v2/tree/menuRebuildModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.js +8 -58
- package/dist/inquiry/v2/tree/menuRebuildModel.js.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.mjs +8 -51
- package/dist/inquiry/v2/tree/menuRebuildModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts +26 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts.map +1 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.js +56 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.js.map +1 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.mjs +43 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.mjs.map +1 -0
- package/dist/inquiry/v2/tree/rootRemovalModel.d.ts +7 -0
- package/dist/inquiry/v2/tree/rootRemovalModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/rootRemovalModel.js +31 -5
- package/dist/inquiry/v2/tree/rootRemovalModel.js.map +1 -1
- package/dist/inquiry/v2/tree/rootRemovalModel.mjs +21 -4
- package/dist/inquiry/v2/tree/rootRemovalModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.d.ts +0 -2
- package/dist/inquiry/v2/tree/treeFilterModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.js +0 -7
- package/dist/inquiry/v2/tree/treeFilterModel.js.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.d.ts +16 -7
- package/dist/inquiry/v2/tree/useInquiryMenu.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.js +401 -163
- package/dist/inquiry/v2/tree/useInquiryMenu.js.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.mjs +511 -310
- package/dist/inquiry/v2/tree/useInquiryMenu.mjs.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.d.ts +10 -11
- package/dist/inquiry/v2/tree/waveLoader.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.js +78 -72
- package/dist/inquiry/v2/tree/waveLoader.js.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.mjs +79 -68
- package/dist/inquiry/v2/tree/waveLoader.mjs.map +1 -1
- package/dist/inquiry/v2/widgets/listRow.module.css +27 -0
- package/dist/inquiry/v2/widgets/widgetRowModel.d.ts +6 -2
- package/dist/inquiry/v2/widgets/widgetRowModel.d.ts.map +1 -1
- package/dist/inquiry/v2/widgets/widgetRowModel.js +49 -14
- package/dist/inquiry/v2/widgets/widgetRowModel.js.map +1 -1
- package/dist/inquiry/v2/widgets/widgetRowModel.mjs +36 -12
- package/dist/inquiry/v2/widgets/widgetRowModel.mjs.map +1 -1
- package/dist/maintenance/UdpTaggedRecordsPage.mjs +1 -1
- package/dist/maintenance/api/lookupApi.mjs +1 -1
- package/dist/maintenance/api/tagsApi.mjs +1 -1
- package/dist/maintenance/config/nodeDefaults.d.ts.map +1 -1
- package/dist/maintenance/config/nodeDefaults.js +16 -5
- package/dist/maintenance/config/nodeDefaults.js.map +1 -1
- package/dist/maintenance/config/nodeDefaults.mjs +14 -5
- package/dist/maintenance/config/nodeDefaults.mjs.map +1 -1
- package/dist/maintenance/config/useEntityConfig.mjs +1 -1
- package/dist/maintenance/config/useLinkedLabels.mjs +1 -1
- package/dist/maintenance/grid/MaintenanceGrid.mjs +1 -1
- package/dist/maintenance/metadata/useEntityMetadata.mjs +1 -1
- package/dist/maintenance/record/ChildTab.mjs +1 -1
- package/dist/maintenance/record/DeleteRecordDialog.mjs +1 -1
- package/dist/maintenance/record/LinkRecordsSheet.mjs +1 -1
- package/dist/maintenance/record/RecordFacts.mjs +1 -1
- package/dist/maintenance/record/RecordSheet.mjs +2 -2
- package/dist/maintenance/record/displayValue.mjs +1 -1
- package/dist/maintenance/record/stampDisplayText.mjs +1 -1
- package/dist/maintenance/settings/useEntityCatalog.mjs +1 -1
- package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +4 -5
- package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts.map +1 -1
- package/dist/stores/inquiryStore.d.ts +2 -1
- package/dist/stores/inquiryStore.d.ts.map +1 -1
- package/dist/stores/inquiryStore.js +4 -3
- package/dist/stores/inquiryStore.js.map +1 -1
- package/dist/stores/inquiryStore.mjs +18 -11
- package/dist/stores/inquiryStore.mjs.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.d.ts.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs +2 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/components/EntitiyTimeLine.mjs +1 -1
- package/dist/udp/utilities/useDateStringColumnDef.d.ts +1 -1
- package/dist/utilities/i18n/locales/es-US.json +23 -5
- package/dist/utilities/i18n/locales/es-US.mjs +24 -4
- package/dist/utilities/i18n/locales/fr-CA.json +23 -5
- package/dist/utilities/i18n/locales/fr-CA.mjs +24 -4
- package/package.json +30 -18
- package/dist/actionPanels/PanelActionForm.d.ts +0 -56
- package/dist/actionPanels/PanelActionForm.d.ts.map +0 -1
- package/dist/actionPanels/PanelActionForm.js +0 -30
- package/dist/actionPanels/PanelActionForm.js.map +0 -1
- package/dist/actionPanels/PanelActionForm.mjs +0 -168
- package/dist/actionPanels/PanelActionForm.mjs.map +0 -1
- package/dist/actionPanels/PanelEditor.d.ts +0 -44
- package/dist/actionPanels/PanelEditor.d.ts.map +0 -1
- package/dist/actionPanels/PanelEditor.js +0 -78
- package/dist/actionPanels/PanelEditor.js.map +0 -1
- package/dist/actionPanels/PanelEditor.mjs +0 -345
- package/dist/actionPanels/PanelEditor.mjs.map +0 -1
- package/dist/actionPanels/panelActionFields.module.css +0 -18
- package/dist/domain/inquiryTree/ruleBindings.d.ts +0 -10
- package/dist/domain/inquiryTree/ruleBindings.d.ts.map +0 -1
- package/dist/domain/inquiryTree/ruleBindings.js +0 -20
- package/dist/domain/inquiryTree/ruleBindings.js.map +0 -1
- package/dist/domain/inquiryTree/ruleBindings.mjs +0 -21
- package/dist/domain/inquiryTree/ruleBindings.mjs.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.d.ts +0 -17
- package/dist/inquiry/v2/kernel/readOnlyModel.d.ts.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.js +0 -19
- package/dist/inquiry/v2/kernel/readOnlyModel.js.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.mjs +0 -21
- package/dist/inquiry/v2/kernel/readOnlyModel.mjs.map +0 -1
|
@@ -1,29 +1,18 @@
|
|
|
1
1
|
import { toUpperFirstChar } from "../../utilities/input/StringUtilities.mjs";
|
|
2
2
|
import { applyRule, mapRuleVariables } from "./rules.mjs";
|
|
3
|
-
import { isGroupNode } from "./types.mjs";
|
|
4
3
|
import { formatTreeLabel } from "./view.mjs";
|
|
5
4
|
import { toWireString } from "./wireString.mjs";
|
|
6
5
|
//#region src/domain/inquiryTree/runtime.ts
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* derivation in InquiryTreeMenu.renderTree :337-375). Nothing here mutates the
|
|
11
|
-
* canonical node — the §3 single-object rule.
|
|
12
|
-
*
|
|
13
|
-
* Everything here is a verbatim behavioral port; quirks are kept on purpose so
|
|
14
|
-
* Inquiry renders identically after the migration (parity discipline, §4.8).
|
|
15
|
-
*/
|
|
16
|
-
const resolveDisplayName = (node, obj) => formatTreeLabel(node.properties.displayName, obj) ?? "";
|
|
17
|
-
const resolveDisplayDetails = (node, obj) => formatTreeLabel(node.properties.displayDetails, obj) ?? "";
|
|
18
|
-
const resolveHeaderTitle = (node, obj) => formatTreeLabel(node.properties.headerName, obj) ?? "";
|
|
19
|
-
const evaluateIconExpression = (expression, node, obj, wasLazyLoaded) => {
|
|
6
|
+
const resolveDisplayName = (node, obj) => formatTreeLabel(node.properties.displayName, obj);
|
|
7
|
+
const resolveDisplayDetails = (node, obj) => formatTreeLabel(node.properties.displayDetails, obj);
|
|
8
|
+
const evaluateIconExpression = (expression, obj) => {
|
|
20
9
|
if (!expression) return null;
|
|
21
|
-
const result = applyRule(expression, obj
|
|
10
|
+
const result = applyRule(expression, obj);
|
|
22
11
|
return result ? result : null;
|
|
23
12
|
};
|
|
24
13
|
const toConditionalIconParts = (evaluated) => evaluated ? {
|
|
25
14
|
name: evaluated.name || "",
|
|
26
|
-
colorHex: evaluated.iconColor
|
|
15
|
+
colorHex: evaluated.iconColor ? evaluated.iconColor.hex : void 0,
|
|
27
16
|
type: evaluated.type || "",
|
|
28
17
|
fluentName: evaluated.fluentName || ""
|
|
29
18
|
} : {
|
|
@@ -40,9 +29,9 @@ const toConditionalIconParts = (evaluated) => evaluated ? {
|
|
|
40
29
|
* ('' triple on no match — legacy resets explicitly), preserving the legacy
|
|
41
30
|
* two-step contract for the display-tree layer.
|
|
42
31
|
*/
|
|
43
|
-
const evaluateConditionalIconParts = (node, obj
|
|
32
|
+
const evaluateConditionalIconParts = (node, obj) => {
|
|
44
33
|
if (!node.properties.conditionalNodeIconExpression) return null;
|
|
45
|
-
return toConditionalIconParts(evaluateIconExpression(node.properties.conditionalNodeIconExpression,
|
|
34
|
+
return toConditionalIconParts(evaluateIconExpression(node.properties.conditionalNodeIconExpression, obj));
|
|
46
35
|
};
|
|
47
36
|
/**
|
|
48
37
|
* Evaluate the node's conditional ADORNMENT expression into the separate
|
|
@@ -51,10 +40,10 @@ const evaluateConditionalIconParts = (node, obj, wasLazyLoaded = false) => {
|
|
|
51
40
|
* conditionalIconExpression fallback (original adornments were stored as
|
|
52
41
|
* conditionalIcons). Returns null when the node has neither expression.
|
|
53
42
|
*/
|
|
54
|
-
const evaluateConditionalAdornmentParts = (node, obj
|
|
43
|
+
const evaluateConditionalAdornmentParts = (node, obj) => {
|
|
55
44
|
const props = node.properties;
|
|
56
45
|
if (!props.conditionalNodeAdornmentExpression && !props.conditionalIconExpression) return null;
|
|
57
|
-
return toConditionalIconParts(evaluateIconExpression(props.conditionalNodeAdornmentExpression ? props.conditionalNodeAdornmentExpression : props.conditionalIconExpression,
|
|
46
|
+
return toConditionalIconParts(evaluateIconExpression(props.conditionalNodeAdornmentExpression ? props.conditionalNodeAdornmentExpression : props.conditionalIconExpression, obj));
|
|
58
47
|
};
|
|
59
48
|
/**
|
|
60
49
|
* Conditional node hiding — port of checkNodeIsHidden (TreeUtilities.js:2199-2229):
|
|
@@ -62,14 +51,14 @@ const evaluateConditionalAdornmentParts = (node, obj, wasLazyLoaded = false) =>
|
|
|
62
51
|
* an entity node with hiddenNode.enabled hides when the variable-mapped rule
|
|
63
52
|
* evaluates truthy against the data object.
|
|
64
53
|
*/
|
|
65
|
-
const isNodeHidden = (node, obj
|
|
54
|
+
const isNodeHidden = (node, obj) => {
|
|
66
55
|
if (!node || !Object.keys(node).length) return true;
|
|
67
|
-
if (isGroupNode
|
|
56
|
+
if (node.isGroupNode) return false;
|
|
68
57
|
const hiddenNode = node.properties.hiddenNode;
|
|
69
58
|
if (!hiddenNode?.enabled) return false;
|
|
70
59
|
const rule = mapRuleVariables(hiddenNode.propertyMapping, hiddenNode.jsonLogic);
|
|
71
60
|
if (!rule) return false;
|
|
72
|
-
return Boolean(applyRule(rule, obj
|
|
61
|
+
return Boolean(applyRule(rule, obj));
|
|
73
62
|
};
|
|
74
63
|
/**
|
|
75
64
|
* Identifier property names for an entity. Port of
|
|
@@ -88,6 +77,12 @@ const getSearchIdentifiers = (catalogObjects, catalogReturnObject) => {
|
|
|
88
77
|
return (match?.properties?.filter((property) => (property?.extendedProperties)?.identifier))?.map((property) => property.name) ?? [];
|
|
89
78
|
};
|
|
90
79
|
/**
|
|
80
|
+
* A level's search identifiers, in the order its `?nodeSearch` values are
|
|
81
|
+
* written: configured associatedTreePrimaryKeyMap keys replace the catalog's
|
|
82
|
+
* identifiers entirely (processObjIndex :665-669).
|
|
83
|
+
*/
|
|
84
|
+
const getLevelSearchIdentifiers = (catalogObjects, { catalogReturnObject, associatedTreePrimaryKeyMap }) => associatedTreePrimaryKeyMap ? Object.keys(associatedTreePrimaryKeyMap) : getSearchIdentifiers(catalogObjects, catalogReturnObject);
|
|
85
|
+
/**
|
|
91
86
|
* Build the record-fetch filters for a node's data row — port of the
|
|
92
87
|
* catalogReturnObject block of processObjIndex (:657-706), quirks preserved:
|
|
93
88
|
* associatedTreePrimaryKeyMap keys replace catalog identifiers entirely; a falsy
|
|
@@ -100,9 +95,8 @@ const buildRuntimeSearchState = (node, obj, catalogObjects) => {
|
|
|
100
95
|
filterElements: [],
|
|
101
96
|
searchValue: ""
|
|
102
97
|
};
|
|
103
|
-
|
|
98
|
+
const searchIdentifiers = getLevelSearchIdentifiers(catalogObjects, node.properties);
|
|
104
99
|
const primaryKeyMap = node.properties.associatedTreePrimaryKeyMap;
|
|
105
|
-
if (primaryKeyMap) searchIdentifiers = Object.keys(primaryKeyMap);
|
|
106
100
|
const filterElements = [];
|
|
107
101
|
const searchValues = [];
|
|
108
102
|
const joiningKey = node.properties.joiningEntityCatalogObjectKey;
|
|
@@ -125,7 +119,18 @@ const buildRuntimeSearchState = (node, obj, catalogObjects) => {
|
|
|
125
119
|
searchValue: toWireString(searchValues)
|
|
126
120
|
};
|
|
127
121
|
};
|
|
122
|
+
/**
|
|
123
|
+
* A saved query's parameters filled from a record: each `params.*` name mapped
|
|
124
|
+
* to the record field that supplies it (legacy mapNodeObjValuesToSearchParameters,
|
|
125
|
+
* TreeUtilities.js:2790). An unmapped parameter keeps its empty mapping and a
|
|
126
|
+
* missing value queries as ''. Row aggregate chips and header alerts both read
|
|
127
|
+
* their counts through it, so the same mapping means the same number.
|
|
128
|
+
*/
|
|
129
|
+
const queryParamsFromRecord = (record, mappings) => {
|
|
130
|
+
if (!mappings || !record) return {};
|
|
131
|
+
return Object.fromEntries(Object.entries(mappings).map(([param, field]) => [param, field ? (record[field] ?? "") || "" : field]));
|
|
132
|
+
};
|
|
128
133
|
//#endregion
|
|
129
|
-
export { buildRuntimeSearchState, evaluateConditionalAdornmentParts, evaluateConditionalIconParts, getSearchIdentifiers, isNodeHidden, resolveDisplayDetails, resolveDisplayName
|
|
134
|
+
export { buildRuntimeSearchState, evaluateConditionalAdornmentParts, evaluateConditionalIconParts, getLevelSearchIdentifiers, getSearchIdentifiers, isNodeHidden, queryParamsFromRecord, resolveDisplayDetails, resolveDisplayName };
|
|
130
135
|
|
|
131
136
|
//# sourceMappingURL=runtime.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.mjs","names":["ConditionalIconRule","EntityNode","JsonLogic","TreeNode","isGroupNode","CatalogObject","formatTreeLabel","applyRule","mapRuleVariables","toWireString","toUpperFirstChar","RuntimeFilterElement","searchField","searchOperator","searchValue","resolveDisplayName","node","obj","Record","properties","displayName","resolveDisplayDetails","displayDetails","resolveHeaderTitle","headerName","EvaluatedIconRule","Pick","evaluateIconExpression","expression","wasLazyLoaded","result","joiningEntityCatalogObjectKey","ConditionalIconParts","name","colorHex","type","fluentName","toConditionalIconParts","evaluated","iconColor","hex","evaluateConditionalIconParts","conditionalNodeIconExpression","evaluateConditionalAdornmentParts","props","conditionalNodeAdornmentExpression","conditionalIconExpression","isNodeHidden","Object","keys","length","hiddenNode","enabled","rule","propertyMapping","jsonLogic","Boolean","getSearchIdentifiers","catalogObjects","catalogReturnObject","match","find","candidate","catalogObjectName","keyFieldNames","businessObjectKeyFieldNames","split","identifierProps","filter","property","extendedProperties","identifier","map","RuntimeSearchState","searchIdentifiers","filterElements","buildRuntimeSearchState","primaryKeyMap","associatedTreePrimaryKeyMap","searchValues","joiningKey","forEach","sourceKey","push"],"sources":["../../../src/domain/inquiryTree/runtime.ts"],"sourcesContent":["/**\n * Viewer runtime layer — the typed, pure replacement for the legacy renderer's\n * in-place node enrichment (TreeUtilities.processObjIndex :594-716 and the icon\n * derivation in InquiryTreeMenu.renderTree :337-375). Nothing here mutates the\n * canonical node — the §3 single-object rule.\n *\n * Everything here is a verbatim behavioral port; quirks are kept on purpose so\n * Inquiry renders identically after the migration (parity discipline, §4.8).\n */\nimport {\n ConditionalIconRule,\n EntityNode,\n JsonLogic,\n TreeNode,\n isGroupNode\n} from './types';\nimport { CatalogObject } from './legalChildren';\nimport { formatTreeLabel } from './view';\nimport { applyRule, mapRuleVariables } from './rules';\nimport { toWireString } from './wireString';\nimport {\n toUpperFirstChar\n} from '../../utilities/input/StringUtilities';\n\n/** One `=` filter for the node's record fetch — legacy properties.filterElements shape. */\nexport interface RuntimeFilterElement {\n searchField: string;\n searchOperator: '=';\n searchValue: unknown;\n}\n\n/* ------------------------------------------------------------------ labels */\n\n/*\n * `formatTreeLabel` is a verbatim legacy port that hands a missing template\n * back — `undefined` TYPED as string (view.ts:154). These resolvers are the\n * boundary where that lie would enter typed models (they crashed the viewer\n * once, via headerTitle.trim()), so each one coerces to '' here and nowhere\n * else. Callers all read labels with `||`, so '' and undefined pick the same\n * fallback.\n */\n\nexport const resolveDisplayName = (\n node: EntityNode,\n obj: Record<string, unknown>\n): string => formatTreeLabel(node.properties.displayName, obj) ?? '';\n\nexport const resolveDisplayDetails = (\n node: EntityNode,\n obj: Record<string, unknown>\n): string => formatTreeLabel(node.properties.displayDetails, obj) ?? '';\n\nexport const resolveHeaderTitle = (\n node: EntityNode,\n obj: Record<string, unknown>\n): string => formatTreeLabel(node.properties.headerName, obj) ?? '';\n\n/* ------------------------------------------------------------------- icons */\n\n/**\n * Result of evaluating a compiled conditional icon/adornment expression: the\n * matched rule payload ({name, iconColor, type}) or null/undefined on no match.\n */\ntype EvaluatedIconRule = Pick<\n ConditionalIconRule,\n 'name' | 'iconColor' | 'type' | 'fluentName'\n>;\n\nconst evaluateIconExpression = (\n expression: JsonLogic | null | undefined,\n node: EntityNode,\n obj: Record<string, unknown>,\n wasLazyLoaded: boolean\n): EvaluatedIconRule | null => {\n if (!expression) return null;\n const result = applyRule(\n expression,\n obj,\n node.properties.joiningEntityCatalogObjectKey,\n wasLazyLoaded\n );\n return result ? (result as EvaluatedIconRule) : null;\n};\n\n/**\n * Raw conditional icon/adornment parts as the legacy display producer stored\n * them on the display node (processObjIndex writes the three properties\n * separately and InquiryTreeMenu.renderTree merges at render time).\n */\nexport interface ConditionalIconParts {\n /** Matched rule's name, '' when no rule matched (or the match had no name). */\n name: string;\n /**\n * Matched rule's iconColor hex — undefined when the matched rule carries no\n * color (legacy stores the raw `iconColor?.hex`), '' when no rule matched.\n */\n colorHex: string | undefined;\n /** Matched rule's type ('' fallback), '' when no rule matched. */\n type: string;\n /** Matched rule's stencil registry name; '' when absent or no match. */\n fluentName: string;\n}\n\nconst toConditionalIconParts = (\n evaluated: EvaluatedIconRule | null\n): ConditionalIconParts =>\n evaluated\n ? {\n name: evaluated.name || '',\n colorHex: evaluated.iconColor?.hex,\n type: evaluated.type || '',\n fluentName: evaluated.fluentName || ''\n }\n : { name: '', colorHex: '', type: '', fluentName: '' };\n\n/**\n * Evaluate the node's conditional ICON expression into the separate legacy\n * display keys — exact port of processObjIndex (TreeUtilities.js:603-623).\n * Returns null when the node has no compiled expression (legacy writes\n * nothing); otherwise the parts to store as conditionalNodeIconName/Color/Type\n * ('' triple on no match — legacy resets explicitly), preserving the legacy\n * two-step contract for the display-tree layer.\n */\nexport const evaluateConditionalIconParts = (\n node: EntityNode,\n obj: Record<string, unknown>,\n wasLazyLoaded = false\n): ConditionalIconParts | null => {\n if (!node.properties.conditionalNodeIconExpression) return null;\n return toConditionalIconParts(\n evaluateIconExpression(\n node.properties.conditionalNodeIconExpression,\n node,\n obj,\n wasLazyLoaded\n )\n );\n};\n\n/**\n * Evaluate the node's conditional ADORNMENT expression into the separate\n * legacy display keys — exact port of processObjIndex\n * (TreeUtilities.js:625-657) including the deprecated\n * conditionalIconExpression fallback (original adornments were stored as\n * conditionalIcons). Returns null when the node has neither expression.\n */\nexport const evaluateConditionalAdornmentParts = (\n node: EntityNode,\n obj: Record<string, unknown>,\n wasLazyLoaded = false\n): ConditionalIconParts | null => {\n const props = node.properties;\n if (\n !props.conditionalNodeAdornmentExpression &&\n !props.conditionalIconExpression\n ) {\n return null;\n }\n // legacy ternary on truthiness (:629-642), not nullish coalescing\n const expression = props.conditionalNodeAdornmentExpression\n ? props.conditionalNodeAdornmentExpression\n : props.conditionalIconExpression;\n return toConditionalIconParts(\n evaluateIconExpression(expression, node, obj, wasLazyLoaded)\n );\n};\n\n/* ------------------------------------------------------------------ hidden */\n\n/**\n * Conditional node hiding — port of checkNodeIsHidden (TreeUtilities.js:2199-2229):\n * an empty/missing node is hidden; a group node is never rule-hidden (legacy TODO);\n * an entity node with hiddenNode.enabled hides when the variable-mapped rule\n * evaluates truthy against the data object.\n */\nexport const isNodeHidden = (\n node: TreeNode | null | undefined,\n obj: Record<string, unknown>,\n wasLazyLoaded = false\n): boolean => {\n if (!node || !Object.keys(node).length) return true;\n if (isGroupNode(node)) return false;\n const hiddenNode = node.properties.hiddenNode;\n if (!hiddenNode?.enabled) return false;\n const rule = mapRuleVariables(\n hiddenNode.propertyMapping as Record<string, string> | undefined,\n hiddenNode.jsonLogic\n );\n if (!rule) return false;\n return Boolean(\n applyRule(\n rule,\n obj,\n node.properties.joiningEntityCatalogObjectKey,\n wasLazyLoaded\n )\n );\n};\n\n/* ------------------------------------------------------- search identifiers */\n\n/**\n * Identifier property names for an entity. Port of\n * SearchUtilities.getSearchIdentifiers, colocated here because runtime filter\n * building depends on it. Catalogs from regenerated backends carry the primary\n * key field names at the object level (`businessObjectKeyFieldNames`), in the\n * same order as the values in BusinessObjectKey; older catalogs fall back to\n * identifier-flagged properties in catalog order (ambiguous for composite\n * keys).\n */\nexport const getSearchIdentifiers = (\n catalogObjects: CatalogObject[] | null | undefined,\n catalogReturnObject: string | null | undefined\n): string[] => {\n if (!catalogObjects || !catalogReturnObject) return [];\n const match = catalogObjects.find(\n (candidate) => candidate.catalogObjectName === catalogReturnObject\n );\n const keyFieldNames = match?.businessObjectKeyFieldNames;\n if (typeof keyFieldNames === 'string' && keyFieldNames) {\n return keyFieldNames.split(',');\n }\n const identifierProps = match?.properties?.filter(\n (property) =>\n (property?.extendedProperties as { identifier?: unknown } | null)\n ?.identifier\n );\n return (\n identifierProps?.map((property) => property.name as string) ?? []\n );\n};\n\nexport interface RuntimeSearchState {\n searchIdentifiers: string[];\n filterElements: RuntimeFilterElement[];\n searchValue: string;\n}\n\n/**\n * Build the record-fetch filters for a node's data row — port of the\n * catalogReturnObject block of processObjIndex (:657-706), quirks preserved:\n * associatedTreePrimaryKeyMap keys replace catalog identifiers entirely; a falsy\n * direct value falls through to the joining-entity object; missing values\n * serialize as ''.\n */\nexport const buildRuntimeSearchState = (\n node: EntityNode,\n obj: Record<string, unknown>,\n catalogObjects: CatalogObject[] | null | undefined\n): RuntimeSearchState => {\n if (!node.properties.catalogReturnObject) {\n return { searchIdentifiers: [], filterElements: [], searchValue: '' };\n }\n let searchIdentifiers = getSearchIdentifiers(\n catalogObjects,\n node.properties.catalogReturnObject\n );\n const primaryKeyMap = node.properties.associatedTreePrimaryKeyMap;\n if (primaryKeyMap) {\n searchIdentifiers = Object.keys(primaryKeyMap);\n }\n\n const filterElements: RuntimeFilterElement[] = [];\n const searchValues: unknown[] = [];\n const joiningKey = node.properties.joiningEntityCatalogObjectKey;\n searchIdentifiers.forEach((identifier) => {\n const searchField = identifier\n ? (toUpperFirstChar(identifier) as string)\n : '';\n const sourceKey = primaryKeyMap?.[identifier] ?? identifier;\n let searchValue: unknown = '';\n if (obj[sourceKey]) {\n searchValue = obj[sourceKey];\n } else if (joiningKey) {\n searchValue = obj[joiningKey]\n ? (obj[joiningKey] as Record<string, unknown>)[sourceKey]\n : '';\n }\n filterElements.push({\n searchField,\n searchOperator: '=',\n searchValue: searchValue ?? ''\n });\n searchValues.push(searchValue);\n });\n\n return {\n searchIdentifiers,\n filterElements,\n searchValue: toWireString(searchValues)\n };\n};\n\n"],"mappings":";;;;;;;;;;;;;;;AA0CA,MAAae,sBACXC,MACAC,QACWX,gBAAgBU,KAAKG,WAAWC,aAAaH,IAAI,IAAI;AAElE,MAAaI,yBACXL,MACAC,QACWX,gBAAgBU,KAAKG,WAAWG,gBAAgBL,IAAI,IAAI;AAErE,MAAaM,sBACXP,MACAC,QACWX,gBAAgBU,KAAK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asE,aAAY;EACvC"}
|
|
1
|
+
{"version":3,"file":"runtime.mjs","names":["ConditionalIconRule","EntityNodeProperties","JsonLogic","LevelConfig","CatalogObject","formatTreeLabel","applyRule","mapRuleVariables","toWireString","toUpperFirstChar","RuntimeFilterElement","searchField","searchOperator","searchValue","resolveDisplayName","node","obj","Record","properties","displayName","resolveDisplayDetails","displayDetails","EvaluatedIconRule","Pick","evaluateIconExpression","expression","result","ConditionalIconParts","name","colorHex","type","fluentName","toConditionalIconParts","evaluated","iconColor","hex","undefined","evaluateConditionalIconParts","conditionalNodeIconExpression","evaluateConditionalAdornmentParts","props","conditionalNodeAdornmentExpression","conditionalIconExpression","isNodeHidden","isGroupNode","Object","keys","length","hiddenNode","enabled","rule","propertyMapping","jsonLogic","Boolean","getSearchIdentifiers","catalogObjects","catalogReturnObject","match","find","candidate","catalogObjectName","keyFieldNames","businessObjectKeyFieldNames","split","identifierProps","filter","property","extendedProperties","identifier","map","getLevelSearchIdentifiers","associatedTreePrimaryKeyMap","RuntimeSearchState","searchIdentifiers","filterElements","buildRuntimeSearchState","primaryKeyMap","searchValues","joiningKey","joiningEntityCatalogObjectKey","forEach","sourceKey","push","queryParamsFromRecord","record","mappings","fromEntries","entries","param","field"],"sources":["../../../src/domain/inquiryTree/runtime.ts"],"sourcesContent":["/**\n * Viewer runtime layer — the typed, pure replacement for the legacy renderer's\n * in-place node enrichment (TreeUtilities.processObjIndex :594-716 and the icon\n * derivation in InquiryTreeMenu.renderTree :337-375). Nothing here mutates the\n * canonical node — the §3 single-object rule.\n *\n * Everything here is a verbatim behavioral port; quirks are kept on purpose so\n * Inquiry renders identically after the migration (parity discipline, §4.8).\n */\nimport {\n ConditionalIconRule,\n EntityNodeProperties,\n JsonLogic,\n LevelConfig\n} from './types';\nimport { CatalogObject } from './legalChildren';\nimport { formatTreeLabel } from './view';\nimport { applyRule, mapRuleVariables } from './rules';\nimport { toWireString } from './wireString';\nimport {\n toUpperFirstChar\n} from '../../utilities/input/StringUtilities';\n\n/** One `=` filter for the node's record fetch — legacy properties.filterElements shape. */\nexport interface RuntimeFilterElement {\n searchField: string;\n searchOperator: '=';\n searchValue: unknown;\n}\n\n/* ------------------------------------------------------------------ labels */\n\nexport const resolveDisplayName = (\n node: LevelConfig,\n obj: Record<string, unknown>\n): string => formatTreeLabel(node.properties.displayName, obj);\n\nexport const resolveDisplayDetails = (\n node: LevelConfig,\n obj: Record<string, unknown>\n): string => formatTreeLabel(node.properties.displayDetails, obj);\n\n/* ------------------------------------------------------------------- icons */\n\n/**\n * Result of evaluating a compiled conditional icon/adornment expression: the\n * matched rule payload ({name, iconColor, type}) or null/undefined on no match.\n */\ntype EvaluatedIconRule = Pick<\n ConditionalIconRule,\n 'name' | 'iconColor' | 'type' | 'fluentName'\n>;\n\nconst evaluateIconExpression = (\n expression: JsonLogic | null | undefined,\n obj: Record<string, unknown>\n): EvaluatedIconRule | null => {\n if (!expression) return null;\n const result = applyRule(expression, obj);\n return result ? (result as EvaluatedIconRule) : null;\n};\n\n/**\n * Raw conditional icon/adornment parts as the legacy display producer stored\n * them on the display node (processObjIndex writes the three properties\n * separately and InquiryTreeMenu.renderTree merges at render time).\n */\nexport interface ConditionalIconParts {\n /** Matched rule's name, '' when no rule matched (or the match had no name). */\n name: string;\n /**\n * Matched rule's iconColor hex — undefined when the matched rule carries no\n * color (legacy stores the raw `iconColor?.hex`), '' when no rule matched.\n */\n colorHex: string | undefined;\n /** Matched rule's type ('' fallback), '' when no rule matched. */\n type: string;\n /** Matched rule's stencil registry name; '' when absent or no match. */\n fluentName: string;\n}\n\nconst toConditionalIconParts = (\n evaluated: EvaluatedIconRule | null\n): ConditionalIconParts =>\n evaluated\n ? {\n name: evaluated.name || '',\n colorHex: evaluated.iconColor ? evaluated.iconColor.hex : undefined,\n type: evaluated.type || '',\n fluentName: evaluated.fluentName || ''\n }\n : { name: '', colorHex: '', type: '', fluentName: '' };\n\n/**\n * Evaluate the node's conditional ICON expression into the separate legacy\n * display keys — exact port of processObjIndex (TreeUtilities.js:603-623).\n * Returns null when the node has no compiled expression (legacy writes\n * nothing); otherwise the parts to store as conditionalNodeIconName/Color/Type\n * ('' triple on no match — legacy resets explicitly), preserving the legacy\n * two-step contract for the display-tree layer.\n */\nexport const evaluateConditionalIconParts = (\n node: LevelConfig,\n obj: Record<string, unknown>\n): ConditionalIconParts | null => {\n if (!node.properties.conditionalNodeIconExpression) return null;\n return toConditionalIconParts(\n evaluateIconExpression(node.properties.conditionalNodeIconExpression, obj)\n );\n};\n\n/**\n * Evaluate the node's conditional ADORNMENT expression into the separate\n * legacy display keys — exact port of processObjIndex\n * (TreeUtilities.js:625-657) including the deprecated\n * conditionalIconExpression fallback (original adornments were stored as\n * conditionalIcons). Returns null when the node has neither expression.\n */\nexport const evaluateConditionalAdornmentParts = (\n node: LevelConfig,\n obj: Record<string, unknown>\n): ConditionalIconParts | null => {\n const props = node.properties;\n if (\n !props.conditionalNodeAdornmentExpression &&\n !props.conditionalIconExpression\n ) {\n return null;\n }\n // legacy ternary on truthiness (:629-642), not nullish coalescing\n const expression = props.conditionalNodeAdornmentExpression\n ? props.conditionalNodeAdornmentExpression\n : props.conditionalIconExpression;\n return toConditionalIconParts(\n evaluateIconExpression(expression, obj)\n );\n};\n\n/* ------------------------------------------------------------------ hidden */\n\n/**\n * Conditional node hiding — port of checkNodeIsHidden (TreeUtilities.js:2199-2229):\n * an empty/missing node is hidden; a group node is never rule-hidden (legacy TODO);\n * an entity node with hiddenNode.enabled hides when the variable-mapped rule\n * evaluates truthy against the data object.\n */\nexport const isNodeHidden = (\n node: (LevelConfig & { isGroupNode?: boolean }) | null | undefined,\n obj: Record<string, unknown>\n): boolean => {\n if (!node || !Object.keys(node).length) return true;\n if (node.isGroupNode) return false;\n const hiddenNode = node.properties.hiddenNode;\n if (!hiddenNode?.enabled) return false;\n const rule = mapRuleVariables(\n hiddenNode.propertyMapping as Record<string, string> | undefined,\n hiddenNode.jsonLogic\n );\n if (!rule) return false;\n return Boolean(applyRule(rule, obj));\n};\n\n/* ------------------------------------------------------- search identifiers */\n\n/**\n * Identifier property names for an entity. Port of\n * SearchUtilities.getSearchIdentifiers, colocated here because runtime filter\n * building depends on it. Catalogs from regenerated backends carry the primary\n * key field names at the object level (`businessObjectKeyFieldNames`), in the\n * same order as the values in BusinessObjectKey; older catalogs fall back to\n * identifier-flagged properties in catalog order (ambiguous for composite\n * keys).\n */\nexport const getSearchIdentifiers = (\n catalogObjects: CatalogObject[] | null | undefined,\n catalogReturnObject: string | null | undefined\n): string[] => {\n if (!catalogObjects || !catalogReturnObject) return [];\n const match = catalogObjects.find(\n (candidate) => candidate.catalogObjectName === catalogReturnObject\n );\n const keyFieldNames = match?.businessObjectKeyFieldNames;\n if (typeof keyFieldNames === 'string' && keyFieldNames) {\n return keyFieldNames.split(',');\n }\n const identifierProps = match?.properties?.filter(\n (property) =>\n (property?.extendedProperties as { identifier?: unknown } | null)\n ?.identifier\n );\n return (\n identifierProps?.map((property) => property.name as string) ?? []\n );\n};\n\n/**\n * A level's search identifiers, in the order its `?nodeSearch` values are\n * written: configured associatedTreePrimaryKeyMap keys replace the catalog's\n * identifiers entirely (processObjIndex :665-669).\n */\nexport const getLevelSearchIdentifiers = (\n catalogObjects: CatalogObject[] | null | undefined,\n {\n catalogReturnObject,\n associatedTreePrimaryKeyMap\n }: Pick<EntityNodeProperties, 'catalogReturnObject' | 'associatedTreePrimaryKeyMap'>\n): string[] =>\n associatedTreePrimaryKeyMap\n ? Object.keys(associatedTreePrimaryKeyMap)\n : getSearchIdentifiers(catalogObjects, catalogReturnObject);\n\nexport interface RuntimeSearchState {\n searchIdentifiers: string[];\n filterElements: RuntimeFilterElement[];\n searchValue: string;\n}\n\n/**\n * Build the record-fetch filters for a node's data row — port of the\n * catalogReturnObject block of processObjIndex (:657-706), quirks preserved:\n * associatedTreePrimaryKeyMap keys replace catalog identifiers entirely; a falsy\n * direct value falls through to the joining-entity object; missing values\n * serialize as ''.\n */\nexport const buildRuntimeSearchState = (\n node: LevelConfig,\n obj: Record<string, unknown>,\n catalogObjects: CatalogObject[] | null | undefined\n): RuntimeSearchState => {\n if (!node.properties.catalogReturnObject) {\n return { searchIdentifiers: [], filterElements: [], searchValue: '' };\n }\n const searchIdentifiers = getLevelSearchIdentifiers(catalogObjects, node.properties);\n const primaryKeyMap = node.properties.associatedTreePrimaryKeyMap;\n\n const filterElements: RuntimeFilterElement[] = [];\n const searchValues: unknown[] = [];\n const joiningKey = node.properties.joiningEntityCatalogObjectKey;\n searchIdentifiers.forEach((identifier) => {\n const searchField = identifier\n ? (toUpperFirstChar(identifier) as string)\n : '';\n const sourceKey = primaryKeyMap?.[identifier] ?? identifier;\n let searchValue: unknown = '';\n if (obj[sourceKey]) {\n searchValue = obj[sourceKey];\n } else if (joiningKey) {\n searchValue = obj[joiningKey]\n ? (obj[joiningKey] as Record<string, unknown>)[sourceKey]\n : '';\n }\n filterElements.push({\n searchField,\n searchOperator: '=',\n searchValue: searchValue ?? ''\n });\n searchValues.push(searchValue);\n });\n\n return {\n searchIdentifiers,\n filterElements,\n searchValue: toWireString(searchValues)\n };\n};\n\n/**\n * A saved query's parameters filled from a record: each `params.*` name mapped\n * to the record field that supplies it (legacy mapNodeObjValuesToSearchParameters,\n * TreeUtilities.js:2790). An unmapped parameter keeps its empty mapping and a\n * missing value queries as ''. Row aggregate chips and header alerts both read\n * their counts through it, so the same mapping means the same number.\n */\nexport const queryParamsFromRecord = (\n record: Record<string, unknown> | null | undefined,\n mappings: Record<string, string> | null | undefined\n): Record<string, unknown> => {\n if (!mappings || !record) return {};\n return Object.fromEntries(\n Object.entries(mappings).map(([param, field]) => [\n param,\n field ? (record[field] ?? '') || '' : field\n ])\n );\n};\n"],"mappings":";;;;;AAgCA,MAAac,sBACXC,MACAC,QACWX,gBAAgBU,KAAKG,WAAWC,aAAaH,IAAI;AAE9D,MAAaI,yBACXL,MACAC,QACWX,gBAAgBU,KAAKG,WAAWG,gBAAgBL,IAAI;AAajE,MAAMQ,0BACJC,Y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D,OAAQ,QAAO,EAAE;AACnC,QAAOvC,OAAOyC,YACZzC,OAAO0C,QAAQF,SAAS,CAAChB,KAAK,CAACmB,OAAOC,WAAW,CAC/CD,OACAC,SAASL,OAAOK,UAAU,OAAO,KAAKA,MACvC,CACH,CAAC"}
|
|
@@ -2,49 +2,40 @@
|
|
|
2
2
|
* Tolerant reader (wire → typed) and strict writer (typed → wire).
|
|
3
3
|
* The ONLY place in the codebase that reshapes tree data (foundation principle 1).
|
|
4
4
|
*
|
|
5
|
-
* Reader guarantees: no data loss
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* - root parentId: '' ⇄ null
|
|
5
|
+
* Reader guarantees: no data loss and no reshaping — every value keeps its
|
|
6
|
+
* wire form (icon colours, the root's '' parentId). Unknown keys ride through
|
|
7
|
+
* unknownProperties / unknownNodeKeys and are re-emitted on write. Old trees
|
|
8
|
+
* round-trip byte-safely except what the detailed read stamps on
|
|
9
|
+
* (searchFilterElements, searchTableColumns, associatedInquiryTree): read-time
|
|
10
|
+
* derivations, dropped on read (v2 derives them or reads the linked tree).
|
|
12
11
|
*
|
|
13
|
-
* `toWire` is the READ shape — joins (panels, nodeActions,
|
|
14
|
-
*
|
|
15
|
-
* the tree PUT: the same minus the joins, which have their own endpoints.
|
|
12
|
+
* `toWire` is the READ shape — joins (panels, nodeActions) included, so a
|
|
13
|
+
* working tree renders exactly as a saved one — and the save's body.
|
|
16
14
|
*/
|
|
17
|
-
import {
|
|
15
|
+
import { InquiryTree, InquiryTreeWire } from './types';
|
|
18
16
|
import { validateTree } from './validate';
|
|
19
|
-
/** '' | '#hex' | react-color object | {hex} | null/undefined → IconColor | null. */
|
|
20
|
-
export declare const readIconColor: (raw: unknown) => IconColor;
|
|
21
|
-
/** Domain color → legacy wire convention: no color = '', color = { hex }. */
|
|
22
|
-
export declare const writeIconColor: (color: IconColor) => unknown;
|
|
23
17
|
/**
|
|
24
|
-
* Tolerant reader:
|
|
18
|
+
* Tolerant reader: GET inquiryTree/{id} → InquiryTree.
|
|
25
19
|
* Accepts every known legacy quirk without data loss; never throws on shape surprises.
|
|
26
20
|
*/
|
|
27
|
-
export declare const fromWire: (wire:
|
|
21
|
+
export declare const fromWire: (wire: InquiryTreeWire) => InquiryTree;
|
|
28
22
|
export declare class TreeSerializationError extends Error {
|
|
29
23
|
issues: ReturnType<typeof validateTree>;
|
|
30
|
-
|
|
24
|
+
/** `tree` names each issue's level (issueText). */
|
|
25
|
+
constructor(issues: ReturnType<typeof validateTree>, tree?: InquiryTree);
|
|
31
26
|
}
|
|
32
27
|
export interface ToWireOptions {
|
|
33
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Skip the strict-validation gate: a tree handed on as read (the explore
|
|
30
|
+
* page's widgets) or written with only its status changed (archive) must
|
|
31
|
+
* not throw on issues it would not save with.
|
|
32
|
+
*/
|
|
34
33
|
skipValidation?: boolean;
|
|
35
34
|
}
|
|
36
35
|
/**
|
|
37
|
-
* Strict writer: InquiryTree → the
|
|
36
|
+
* Strict writer: InquiryTree → the GET shape the save takes back
|
|
38
37
|
* (whole wrapper spread + flat `treeStructure` node array — never stringified).
|
|
39
38
|
* Refuses to serialize a tree with validation errors.
|
|
40
39
|
*/
|
|
41
|
-
export declare const toWire: (tree: InquiryTree, options?: ToWireOptions) =>
|
|
42
|
-
/**
|
|
43
|
-
* The tree PUT body. The backend stores `treeStructure` verbatim, and the joins
|
|
44
|
-
* are rows in their own tables written through their own endpoints — so the
|
|
45
|
-
* JSON carries `panels: []` / `nodeActions: []` (the backend's own convention
|
|
46
|
-
* when it duplicates a tree) and no associated tree. Same validation as
|
|
47
|
-
* `toWire`.
|
|
48
|
-
*/
|
|
49
|
-
export declare const toPutBody: (tree: InquiryTree, options?: ToWireOptions) => Record<string, unknown>;
|
|
40
|
+
export declare const toWire: (tree: InquiryTree, options?: ToWireOptions) => InquiryTreeWire;
|
|
50
41
|
//# sourceMappingURL=serialize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/serialize.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/serialize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAIL,WAAW,EACX,eAAe,EAGhB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AA4K1C;;;GAGG;AACH,eAAO,MAAM,QAAQ,wCAQpB,CAAC;AAEF,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,MAAM,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;IAExC,mDAAmD;IACnD,YAAY,MAAM,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,EAAE,IAAI,CAAC,EAAE,WAAW,EAStE;CACF;AAED,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;GAIG;AACH,eAAO,MAAM,MAAM,iEAgBlB,CAAC"}
|