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
|
@@ -34,8 +34,8 @@ const withNodes = (tree, nodes) => ({
|
|
|
34
34
|
/** Append a new entity node (legacy appends — never disturbs existing index joins). */
|
|
35
35
|
const addNode = (tree, args) => {
|
|
36
36
|
if (tree.nodes.some((node) => node.id === args.id)) throw new TreeOperationError("duplicate-node-id", `Node id ${args.id} already exists.`, args.id);
|
|
37
|
-
if (args.parentId
|
|
38
|
-
if (tree.nodes.some((node) => node.parentId
|
|
37
|
+
if (!args.parentId) {
|
|
38
|
+
if (tree.nodes.some((node) => !node.parentId && !node.isDeleted)) throw new TreeOperationError("multiple-roots", "The tree already has a root node; new nodes need a parent.");
|
|
39
39
|
} else requireNode(tree, args.parentId);
|
|
40
40
|
const node = {
|
|
41
41
|
id: args.id,
|
|
@@ -62,14 +62,18 @@ const updateNodeProperties = (tree, nodeId, patch) => {
|
|
|
62
62
|
warnings: []
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
|
-
/**
|
|
65
|
+
/**
|
|
66
|
+
* Replace a node's properties wholesale (node-config save path). A deleted
|
|
67
|
+
* node comes back (a placeholder re-linked); a live one gains no `isDeleted`
|
|
68
|
+
* key, so editing it and changing it back reads as no change.
|
|
69
|
+
*/
|
|
66
70
|
const replaceNodeProperties = (tree, nodeId, properties) => {
|
|
67
71
|
if (!isEntityNode(requireNode(tree, nodeId))) throw new TreeOperationError("not-entity-node", `Node ${nodeId} is a group node.`, nodeId);
|
|
68
72
|
return {
|
|
69
73
|
tree: withNodes(tree, tree.nodes.map((candidate) => candidate.id === nodeId ? {
|
|
70
74
|
...candidate,
|
|
71
75
|
properties,
|
|
72
|
-
isDeleted: false
|
|
76
|
+
...candidate.isDeleted ? { isDeleted: false } : {}
|
|
73
77
|
} : candidate)),
|
|
74
78
|
warnings: []
|
|
75
79
|
};
|
|
@@ -77,15 +81,14 @@ const replaceNodeProperties = (tree, nodeId, properties) => {
|
|
|
77
81
|
/** Re-parent a node. Refuses cycles and root demotion/promotion that breaks the single root. */
|
|
78
82
|
const moveNode = (tree, nodeId, newParentId) => {
|
|
79
83
|
requireNode(tree, nodeId);
|
|
80
|
-
if (newParentId
|
|
81
|
-
requireNode(tree, newParentId);
|
|
84
|
+
if (newParentId) {
|
|
82
85
|
if (newParentId === nodeId) throw new TreeOperationError("cycle", "A node cannot be its own parent.", nodeId);
|
|
83
86
|
let cursor = requireNode(tree, newParentId);
|
|
84
87
|
while (cursor) {
|
|
85
88
|
if (cursor.id === nodeId) throw new TreeOperationError("cycle", "Cannot move a node under one of its own descendants.", nodeId);
|
|
86
|
-
cursor = cursor.parentId
|
|
89
|
+
cursor = cursor.parentId ? tree.nodes.find((n) => n.id === cursor.parentId) : void 0;
|
|
87
90
|
}
|
|
88
|
-
} else if (tree.nodes.some((n) => n.parentId
|
|
91
|
+
} else if (tree.nodes.some((n) => !n.parentId && !n.isDeleted && n.id !== nodeId)) throw new TreeOperationError("multiple-roots", "The tree already has a root; a second root is not allowed.", nodeId);
|
|
89
92
|
return {
|
|
90
93
|
tree: withNodes(tree, tree.nodes.map((candidate) => candidate.id === nodeId ? {
|
|
91
94
|
...candidate,
|
|
@@ -127,7 +130,7 @@ const reorderNode = (tree, nodeId, toIndex) => {
|
|
|
127
130
|
const removeNode = (tree, nodeId) => {
|
|
128
131
|
const node = requireNode(tree, nodeId);
|
|
129
132
|
const children = childrenOf(tree, nodeId);
|
|
130
|
-
const isRoot = node.parentId
|
|
133
|
+
const isRoot = !node.parentId;
|
|
131
134
|
if (isRoot && children.length > 1) throw new TreeOperationError("multi-child-root-delete", "Deleting the root would orphan its children; delete or move them first, or use \"Delete Node and Children\".", nodeId);
|
|
132
135
|
if (isRoot && children[0]?.isDeleted) throw new TreeOperationError("placeholder-child-root-delete", "Deleting the root would make its deleted placeholder the root; re-link or delete the placeholder first, or use \"Delete Node and Children\".", nodeId);
|
|
133
136
|
if (children.length === 0 || isRoot) {
|
|
@@ -135,7 +138,7 @@ const removeNode = (tree, nodeId) => {
|
|
|
135
138
|
return {
|
|
136
139
|
tree: withNodes(tree, isRoot ? nodes.map((candidate) => candidate.parentId === nodeId ? {
|
|
137
140
|
...candidate,
|
|
138
|
-
parentId:
|
|
141
|
+
parentId: ""
|
|
139
142
|
} : candidate) : nodes),
|
|
140
143
|
warnings: []
|
|
141
144
|
};
|
|
@@ -156,7 +159,7 @@ const removeNodeAndChildren = (tree, nodeId) => {
|
|
|
156
159
|
let grew = true;
|
|
157
160
|
while (grew) {
|
|
158
161
|
grew = false;
|
|
159
|
-
for (const node of tree.nodes) if (
|
|
162
|
+
for (const node of tree.nodes) if (toDelete.has(node.parentId) && !toDelete.has(node.id)) {
|
|
160
163
|
toDelete.add(node.id);
|
|
161
164
|
grew = true;
|
|
162
165
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.mjs","names":["EntityNode","EntityNodeProperties","InquiryTree","TreeNode","ValidationIssue","isEntityNode","OperationResult","tree","warnings","TreeOperationError","Error","code","nodeId","constructor","message","name","requireNode","node","nodes","find","candidate","id","childrenOf","filter","parentId","withNodes","AddNodeArgs","properties","addNode","args","some","hasRoot","isDeleted","updateNodeProperties","patch","Partial","key","value","Object","entries","undefined","Record","map","replaceNodeProperties","moveNode","newParentId","cursor","n","reorderNode","toIndex","fromIndex","findIndex","bounded","Math","max","min","length","moved","splice","removeNode","children","isRoot","reparented","removeNodeAndChildren","toDelete","Set","grew","has","add"],"sources":["../../../src/domain/inquiryTree/operations.ts"],"sourcesContent":["/**\n * Pure tree operations: (tree, args) => { tree, warnings }. No React, no HTTP,\n * no in-place mutation — every mutation in the app goes through here\n * (foundation principle 1). Node array order is load-bearing (§2): the saved\n * joins (panels / drop actions) key on the index, and the save re-targets them\n * from the final order — a node's joins travel with it on the node itself.\n */\nimport {\n EntityNode,\n EntityNodeProperties,\n InquiryTree,\n TreeNode,\n ValidationIssue,\n isEntityNode\n} from './types';\n\nexport interface OperationResult {\n tree: InquiryTree;\n warnings: ValidationIssue[];\n}\n\n/** Illegal operation request (unknown node, would break the single-root invariant, …). */\nexport class TreeOperationError extends Error {\n code: string;\n nodeId?: string;\n\n constructor(code: string, message: string, nodeId?: string) {\n super(message);\n this.name = 'TreeOperationError';\n this.code = code;\n this.nodeId = nodeId;\n }\n}\n\nconst requireNode = (tree: InquiryTree, nodeId: string): TreeNode => {\n const node = tree.nodes.find((candidate) => candidate.id === nodeId);\n if (!node)\n throw new TreeOperationError(\n 'unknown-node',\n `No node with id ${nodeId}.`,\n nodeId\n );\n return node;\n};\n\n/**\n * Every child, soft-deleted placeholders included: a placeholder still hangs\n * off its parent and can be re-linked, so it counts as a child for any\n * operation that would otherwise leave it pointing at a missing node.\n */\nconst childrenOf = (tree: InquiryTree, nodeId: string): TreeNode[] =>\n tree.nodes.filter((node) => node.parentId === nodeId);\n\nconst withNodes = (tree: InquiryTree, nodes: TreeNode[]): InquiryTree => ({\n ...tree,\n nodes\n});\n\n\nexport interface AddNodeArgs {\n /** Caller supplies the id (app layer: uuid(); tests: fixed ids) — keeps ops deterministic. */\n id: string;\n parentId: string | null;\n properties: EntityNodeProperties;\n}\n\n/** Append a new entity node (legacy appends — never disturbs existing index joins). */\nexport const addNode = (\n tree: InquiryTree,\n args: AddNodeArgs\n): OperationResult => {\n if (tree.nodes.some((node) => node.id === args.id)) {\n throw new TreeOperationError(\n 'duplicate-node-id',\n `Node id ${args.id} already exists.`,\n args.id\n );\n }\n if (args.parentId === null) {\n const hasRoot = tree.nodes.some(\n (node) => node.parentId === null && !node.isDeleted\n );\n if (hasRoot) {\n throw new TreeOperationError(\n 'multiple-roots',\n 'The tree already has a root node; new nodes need a parent.'\n );\n }\n } else {\n requireNode(tree, args.parentId);\n }\n const node: EntityNode = {\n id: args.id,\n parentId: args.parentId,\n properties: args.properties\n };\n return { tree: withNodes(tree, [...tree.nodes, node]), warnings: [] };\n};\n\n/** Merge a partial patch into a node's properties (undefined values remove the key). */\nexport const updateNodeProperties = (\n tree: InquiryTree,\n nodeId: string,\n patch: Partial<EntityNodeProperties>\n): OperationResult => {\n const node = requireNode(tree, nodeId);\n if (!isEntityNode(node)) {\n throw new TreeOperationError(\n 'not-entity-node',\n `Node ${nodeId} is a group node.`,\n nodeId\n );\n }\n const properties: EntityNodeProperties = { ...node.properties };\n for (const [key, value] of Object.entries(patch)) {\n if (value === undefined) {\n delete (properties as Record<string, unknown>)[key];\n } else {\n (properties as Record<string, unknown>)[key] = value;\n }\n }\n const nodes = tree.nodes.map((candidate) =>\n candidate.id === nodeId\n ? ({ ...candidate, properties } as TreeNode)\n : candidate\n );\n return { tree: withNodes(tree, nodes), warnings: [] };\n};\n\n/** Replace a node's properties wholesale (node-config save path). */\nexport const replaceNodeProperties = (\n tree: InquiryTree,\n nodeId: string,\n properties: EntityNodeProperties\n): OperationResult => {\n const node = requireNode(tree, nodeId);\n if (!isEntityNode(node)) {\n throw new TreeOperationError(\n 'not-entity-node',\n `Node ${nodeId} is a group node.`,\n nodeId\n );\n }\n const nodes = tree.nodes.map((candidate) =>\n candidate.id === nodeId\n ? ({ ...candidate, properties, isDeleted: false } as TreeNode)\n : candidate\n );\n return { tree: withNodes(tree, nodes), warnings: [] };\n};\n\n/** Re-parent a node. Refuses cycles and root demotion/promotion that breaks the single root. */\nexport const moveNode = (\n tree: InquiryTree,\n nodeId: string,\n newParentId: string | null\n): OperationResult => {\n const node = requireNode(tree, nodeId);\n if (newParentId !== null) {\n requireNode(tree, newParentId);\n if (newParentId === nodeId) {\n throw new TreeOperationError(\n 'cycle',\n 'A node cannot be its own parent.',\n nodeId\n );\n }\n let cursor: TreeNode | undefined = requireNode(tree, newParentId);\n while (cursor) {\n if (cursor.id === nodeId) {\n throw new TreeOperationError(\n 'cycle',\n 'Cannot move a node under one of its own descendants.',\n nodeId\n );\n }\n cursor =\n cursor.parentId !== null\n ? tree.nodes.find((n) => n.id === cursor!.parentId)\n : undefined;\n }\n } else if (\n tree.nodes.some(\n (n) => n.parentId === null && !n.isDeleted && n.id !== nodeId\n )\n ) {\n throw new TreeOperationError(\n 'multiple-roots',\n 'The tree already has a root; a second root is not allowed.',\n nodeId\n );\n }\n const nodes = tree.nodes.map((candidate) =>\n candidate.id === nodeId\n ? ({ ...candidate, parentId: newParentId } as TreeNode)\n : candidate\n );\n return { tree: withNodes(tree, nodes), warnings: [] };\n};\n\n/** Move a node to a new position in the flat array. */\nexport const reorderNode = (\n tree: InquiryTree,\n nodeId: string,\n toIndex: number\n): OperationResult => {\n const fromIndex = tree.nodes.findIndex((node) => node.id === nodeId);\n if (fromIndex === -1)\n throw new TreeOperationError(\n 'unknown-node',\n `No node with id ${nodeId}.`,\n nodeId\n );\n const bounded = Math.max(0, Math.min(tree.nodes.length - 1, toIndex));\n if (bounded === fromIndex) return { tree, warnings: [] };\n const nodes = [...tree.nodes];\n const [moved] = nodes.splice(fromIndex, 1);\n nodes.splice(bounded, 0, moved);\n return {\n tree: withNodes(tree, nodes),\n warnings: []\n };\n};\n\n/**\n * Delete a single node — legacy semantics (TreeUtils.js:307-333) with the\n * TB-0160 multi-child-root fix:\n * - leaf: removed from the array\n * - root with one child: removed; the child becomes root\n * - root with multiple children: refused (would orphan siblings / break single-root)\n * - root whose only child is a soft-deleted placeholder: refused (the\n * placeholder would become the root)\n * - mid-tree with children: soft-deleted (isDeleted: true, properties: {}) —\n * the persisted shape downstream consumers already understand\n * Children include soft-deleted placeholders, so a level whose only children\n * are placeholders soft-deletes rather than leaving them on a missing parent.\n */\nexport const removeNode = (\n tree: InquiryTree,\n nodeId: string\n): OperationResult => {\n const node = requireNode(tree, nodeId);\n const children = childrenOf(tree, nodeId);\n const isRoot = node.parentId === null;\n\n if (isRoot && children.length > 1) {\n throw new TreeOperationError(\n 'multi-child-root-delete',\n 'Deleting the root would orphan its children; delete or move them first, or use \"Delete Node and Children\".',\n nodeId\n );\n }\n\n if (isRoot && children[0]?.isDeleted) {\n throw new TreeOperationError(\n 'placeholder-child-root-delete',\n 'Deleting the root would make its deleted placeholder the root; re-link or delete the placeholder first, or use \"Delete Node and Children\".',\n nodeId\n );\n }\n\n if (children.length === 0 || isRoot) {\n const nodes = tree.nodes.filter((candidate) => candidate.id !== nodeId);\n const reparented = isRoot\n ? nodes.map((candidate) =>\n candidate.parentId === nodeId\n ? ({ ...candidate, parentId: null } as TreeNode)\n : candidate\n )\n : nodes;\n return {\n tree: withNodes(tree, reparented),\n warnings: []\n };\n }\n\n const nodes = tree.nodes.map((candidate) =>\n candidate.id === nodeId\n ? ({ ...candidate, isDeleted: true, properties: {} } as TreeNode)\n : candidate\n );\n return { tree: withNodes(tree, nodes), warnings: [] };\n};\n\n/** Delete a node and all its descendants (legacy hard delete). Warns on index shifts. */\nexport const removeNodeAndChildren = (\n tree: InquiryTree,\n nodeId: string\n): OperationResult => {\n requireNode(tree, nodeId);\n const toDelete = new Set<string>([nodeId]);\n let grew = true;\n while (grew) {\n grew = false;\n for (const node of tree.nodes) {\n if (\n node.parentId !== null &&\n toDelete.has(node.parentId) &&\n !toDelete.has(node.id)\n ) {\n toDelete.add(node.id);\n grew = true;\n }\n }\n }\n const nodes = tree.nodes.filter((node) => !toDelete.has(node.id));\n return {\n tree: withNodes(tree, nodes),\n warnings: []\n };\n};\n"],"mappings":";;;;;;;;;;AAsBA,IAAaS,qBAAb,cAAwCC,MAAM;CAI5CG,YAAYF,MAAcG,SAAiBF,QAAiB;AAC1D,QAAME,QAAQ;AACd,OAAKC,OAAO;AACZ,OAAKJ,OAAOA;AACZ,OAAKC,SAASA;;;AAIlB,MAAMI,eAAeT,MAAmBK,WAA6B;CACnE,MAAMK,OAAOV,KAAKW,MAAMC,MAAMC,cAAcA,UAAUC,OAAOT,OAAO;AACp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tB,cAC5BA,UAAUC,OAAOT,SACZ;GAAE,GAAGQ;GAAWY,WAAW;GAAML,YAAY,EAAC;GAAG,GAClDP,UACL,CACoC;EAAEZ,UAAU,EAAA;EAAI;;;AAIvD,MAAauD,yBACXxD,MACAK,WACoB;AACpBI,aAAYT,MAAMK,OAAO;CACzB,MAAMoD,WAAW,IAAIC,IAAY,CAACrD,OAAO,CAAC;CAC1C,IAAIsD,OAAO;AACX,QAAOA,MAAM;AACXA,SAAO;AACP,OAAK,MAAMjD,QAAQV,KAAKW,MACtB,KACED,KAAKO,aAAa,QAClBwC,SAASG,IAAIlD,KAAKO,SAAS,IAC3B,CAACwC,SAASG,IAAIlD,KAAKI,GAAG,EACtB;AACA2C,YAASI,IAAInD,KAAKI,GAAG;AACrB6C,UAAO;;;AAKb,QAAO;EACL3D,MAAMkB,UAAUlB,MAFJA,KAAKW,MAAMK,QAAQN,SAAS,CAAC+C,SAASG,IAAIlD,KAAKI,GAAG,CAAC,CAEnC;EAC5Bb,UAAU,EAAA;EACX"}
|
|
1
|
+
{"version":3,"file":"operations.mjs","names":["EntityNode","EntityNodeProperties","InquiryTree","TreeNode","ValidationIssue","isEntityNode","OperationResult","tree","warnings","TreeOperationError","Error","code","nodeId","constructor","message","name","requireNode","node","nodes","find","candidate","id","childrenOf","filter","parentId","withNodes","AddNodeArgs","properties","addNode","args","some","hasRoot","isDeleted","updateNodeProperties","patch","Partial","key","value","Object","entries","undefined","Record","map","replaceNodeProperties","moveNode","newParentId","cursor","n","reorderNode","toIndex","fromIndex","findIndex","bounded","Math","max","min","length","moved","splice","removeNode","children","isRoot","reparented","removeNodeAndChildren","toDelete","Set","grew","has","add"],"sources":["../../../src/domain/inquiryTree/operations.ts"],"sourcesContent":["/**\n * Pure tree operations: (tree, args) => { tree, warnings }. No React, no HTTP,\n * no in-place mutation — every mutation in the app goes through here\n * (foundation principle 1). Node array order is load-bearing (§2): the saved\n * joins (panels / drop actions) key on the index, and the save re-targets them\n * from the final order — a node's joins travel with it on the node itself.\n */\nimport {\n EntityNode,\n EntityNodeProperties,\n InquiryTree,\n TreeNode,\n ValidationIssue,\n isEntityNode\n} from './types';\n\nexport interface OperationResult {\n tree: InquiryTree;\n warnings: ValidationIssue[];\n}\n\n/** Illegal operation request (unknown node, would break the single-root invariant, …). */\nexport class TreeOperationError extends Error {\n code: string;\n nodeId?: string;\n\n constructor(code: string, message: string, nodeId?: string) {\n super(message);\n this.name = 'TreeOperationError';\n this.code = code;\n this.nodeId = nodeId;\n }\n}\n\nconst requireNode = (tree: InquiryTree, nodeId: string): TreeNode => {\n const node = tree.nodes.find((candidate) => candidate.id === nodeId);\n if (!node)\n throw new TreeOperationError(\n 'unknown-node',\n `No node with id ${nodeId}.`,\n nodeId\n );\n return node;\n};\n\n/**\n * Every child, soft-deleted placeholders included: a placeholder still hangs\n * off its parent and can be re-linked, so it counts as a child for any\n * operation that would otherwise leave it pointing at a missing node.\n */\nconst childrenOf = (tree: InquiryTree, nodeId: string): TreeNode[] =>\n tree.nodes.filter((node) => node.parentId === nodeId);\n\nconst withNodes = (tree: InquiryTree, nodes: TreeNode[]): InquiryTree => ({\n ...tree,\n nodes\n});\n\n\nexport interface AddNodeArgs {\n /** Caller supplies the id (app layer: uuid(); tests: fixed ids) — keeps ops deterministic. */\n id: string;\n parentId: string;\n properties: EntityNodeProperties;\n}\n\n/** Append a new entity node (legacy appends — never disturbs existing index joins). */\nexport const addNode = (\n tree: InquiryTree,\n args: AddNodeArgs\n): OperationResult => {\n if (tree.nodes.some((node) => node.id === args.id)) {\n throw new TreeOperationError(\n 'duplicate-node-id',\n `Node id ${args.id} already exists.`,\n args.id\n );\n }\n if (!args.parentId) {\n const hasRoot = tree.nodes.some(\n (node) => !node.parentId && !node.isDeleted\n );\n if (hasRoot) {\n throw new TreeOperationError(\n 'multiple-roots',\n 'The tree already has a root node; new nodes need a parent.'\n );\n }\n } else {\n requireNode(tree, args.parentId);\n }\n const node: EntityNode = {\n id: args.id,\n parentId: args.parentId,\n properties: args.properties\n };\n return { tree: withNodes(tree, [...tree.nodes, node]), warnings: [] };\n};\n\n/** Merge a partial patch into a node's properties (undefined values remove the key). */\nexport const updateNodeProperties = (\n tree: InquiryTree,\n nodeId: string,\n patch: Partial<EntityNodeProperties>\n): OperationResult => {\n const node = requireNode(tree, nodeId);\n if (!isEntityNode(node)) {\n throw new TreeOperationError(\n 'not-entity-node',\n `Node ${nodeId} is a group node.`,\n nodeId\n );\n }\n const properties: EntityNodeProperties = { ...node.properties };\n for (const [key, value] of Object.entries(patch)) {\n if (value === undefined) {\n delete (properties as Record<string, unknown>)[key];\n } else {\n (properties as Record<string, unknown>)[key] = value;\n }\n }\n const nodes = tree.nodes.map((candidate) =>\n candidate.id === nodeId\n ? ({ ...candidate, properties } as TreeNode)\n : candidate\n );\n return { tree: withNodes(tree, nodes), warnings: [] };\n};\n\n/**\n * Replace a node's properties wholesale (node-config save path). A deleted\n * node comes back (a placeholder re-linked); a live one gains no `isDeleted`\n * key, so editing it and changing it back reads as no change.\n */\nexport const replaceNodeProperties = (\n tree: InquiryTree,\n nodeId: string,\n properties: EntityNodeProperties\n): OperationResult => {\n const node = requireNode(tree, nodeId);\n if (!isEntityNode(node)) {\n throw new TreeOperationError(\n 'not-entity-node',\n `Node ${nodeId} is a group node.`,\n nodeId\n );\n }\n const nodes = tree.nodes.map((candidate) =>\n candidate.id === nodeId\n ? ({\n ...candidate,\n properties,\n ...(candidate.isDeleted ? { isDeleted: false } : {})\n } as TreeNode)\n : candidate\n );\n return { tree: withNodes(tree, nodes), warnings: [] };\n};\n\n/** Re-parent a node. Refuses cycles and root demotion/promotion that breaks the single root. */\nexport const moveNode = (\n tree: InquiryTree,\n nodeId: string,\n newParentId: string\n): OperationResult => {\n requireNode(tree, nodeId);\n if (newParentId) {\n if (newParentId === nodeId) {\n throw new TreeOperationError(\n 'cycle',\n 'A node cannot be its own parent.',\n nodeId\n );\n }\n let cursor: TreeNode | undefined = requireNode(tree, newParentId);\n while (cursor) {\n if (cursor.id === nodeId) {\n throw new TreeOperationError(\n 'cycle',\n 'Cannot move a node under one of its own descendants.',\n nodeId\n );\n }\n cursor = cursor.parentId\n ? tree.nodes.find((n) => n.id === cursor!.parentId)\n : undefined;\n }\n } else if (\n tree.nodes.some((n) => !n.parentId && !n.isDeleted && n.id !== nodeId)\n ) {\n throw new TreeOperationError(\n 'multiple-roots',\n 'The tree already has a root; a second root is not allowed.',\n nodeId\n );\n }\n const nodes = tree.nodes.map((candidate) =>\n candidate.id === nodeId\n ? ({ ...candidate, parentId: newParentId } as TreeNode)\n : candidate\n );\n return { tree: withNodes(tree, nodes), warnings: [] };\n};\n\n/** Move a node to a new position in the flat array. */\nexport const reorderNode = (\n tree: InquiryTree,\n nodeId: string,\n toIndex: number\n): OperationResult => {\n const fromIndex = tree.nodes.findIndex((node) => node.id === nodeId);\n if (fromIndex === -1)\n throw new TreeOperationError(\n 'unknown-node',\n `No node with id ${nodeId}.`,\n nodeId\n );\n const bounded = Math.max(0, Math.min(tree.nodes.length - 1, toIndex));\n if (bounded === fromIndex) return { tree, warnings: [] };\n const nodes = [...tree.nodes];\n const [moved] = nodes.splice(fromIndex, 1);\n nodes.splice(bounded, 0, moved);\n return {\n tree: withNodes(tree, nodes),\n warnings: []\n };\n};\n\n/**\n * Delete a single node — legacy semantics (TreeUtils.js:307-333) with the\n * TB-0160 multi-child-root fix:\n * - leaf: removed from the array\n * - root with one child: removed; the child becomes root\n * - root with multiple children: refused (would orphan siblings / break single-root)\n * - root whose only child is a soft-deleted placeholder: refused (the\n * placeholder would become the root)\n * - mid-tree with children: soft-deleted (isDeleted: true, properties: {}) —\n * the persisted shape downstream consumers already understand\n * Children include soft-deleted placeholders, so a level whose only children\n * are placeholders soft-deletes rather than leaving them on a missing parent.\n */\nexport const removeNode = (\n tree: InquiryTree,\n nodeId: string\n): OperationResult => {\n const node = requireNode(tree, nodeId);\n const children = childrenOf(tree, nodeId);\n const isRoot = !node.parentId;\n\n if (isRoot && children.length > 1) {\n throw new TreeOperationError(\n 'multi-child-root-delete',\n 'Deleting the root would orphan its children; delete or move them first, or use \"Delete Node and Children\".',\n nodeId\n );\n }\n\n if (isRoot && children[0]?.isDeleted) {\n throw new TreeOperationError(\n 'placeholder-child-root-delete',\n 'Deleting the root would make its deleted placeholder the root; re-link or delete the placeholder first, or use \"Delete Node and Children\".',\n nodeId\n );\n }\n\n if (children.length === 0 || isRoot) {\n const nodes = tree.nodes.filter((candidate) => candidate.id !== nodeId);\n const reparented = isRoot\n ? nodes.map((candidate) =>\n candidate.parentId === nodeId\n ? ({ ...candidate, parentId: '' } as TreeNode)\n : candidate\n )\n : nodes;\n return {\n tree: withNodes(tree, reparented),\n warnings: []\n };\n }\n\n const nodes = tree.nodes.map((candidate) =>\n candidate.id === nodeId\n ? ({ ...candidate, isDeleted: true, properties: {} } as TreeNode)\n : candidate\n );\n return { tree: withNodes(tree, nodes), warnings: [] };\n};\n\n/** Delete a node and all its descendants (legacy hard delete). Warns on index shifts. */\nexport const removeNodeAndChildren = (\n tree: InquiryTree,\n nodeId: string\n): OperationResult => {\n requireNode(tree, nodeId);\n const toDelete = new Set<string>([nodeId]);\n let grew = true;\n while (grew) {\n grew = false;\n for (const node of tree.nodes) {\n if (\n toDelete.has(node.parentId) &&\n !toDelete.has(node.id)\n ) {\n toDelete.add(node.id);\n grew = true;\n }\n }\n }\n const nodes = tree.nodes.filter((node) => !toDelete.has(node.id));\n return {\n tree: withNodes(tree, nodes),\n warnings: []\n };\n};\n"],"mappings":";;;;;;;;;;AAsBA,IAAaS,qBAAb,cAAwCC,MAAM;CAI5CG,YAAYF,MAAcG,SAAiBF,QAAiB;AAC1D,QAAME,QAAQ;AACd,OAAKC,OAAO;AACZ,OAAKJ,OAAOA;AACZ,OAAKC,SAASA;;;AAIlB,MAAMI,eAAeT,MAAmBK,WAA6B;CACnE,MAAMK,OAAOV,KAAKW,MAAMC,MAAMC,cAAcA,UAAUC,OAAOT,OAAO;AACpE,KAAI,CAACK,KACH,OA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ACZ;GAAE,GAAGQ;GAAWY,WAAW;GAAML,YAAY,EAAC;GAAG,GAClDP,UACL,CACoC;EAAEZ,UAAU,EAAA;EAAI;;;AAIvD,MAAauD,yBACXxD,MACAK,WACoB;AACpBI,aAAYT,MAAMK,OAAO;CACzB,MAAMoD,WAAW,IAAIC,IAAY,CAACrD,OAAO,CAAC;CAC1C,IAAIsD,OAAO;AACX,QAAOA,MAAM;AACXA,SAAO;AACP,OAAK,MAAMjD,QAAQV,KAAKW,MACtB,KACE8C,SAASG,IAAIlD,KAAKO,SAAS,IAC3B,CAACwC,SAASG,IAAIlD,KAAKI,GAAG,EACtB;AACA2C,YAASI,IAAInD,KAAKI,GAAG;AACrB6C,UAAO;;;AAKb,QAAO;EACL3D,MAAMkB,UAAUlB,MAFJA,KAAKW,MAAMK,QAAQN,SAAS,CAAC+C,SAASG,IAAIlD,KAAKI,GAAG,CAAC,CAEnC;EAC5Bb,UAAU,EAAA;EACX"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { JsonLogic } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Evaluate a rule against a data object. Port of evaluateRule
|
|
4
|
-
* (RuleUtilities.js:91-99)
|
|
5
|
-
*
|
|
6
|
-
* `users.firstName` resolve — unless the row already carries that key.
|
|
4
|
+
* (RuleUtilities.js:91-99) minus its joining-entity wrap: v2 rows are always
|
|
5
|
+
* the flat child-entity row, so rules evaluate against the row as-is.
|
|
7
6
|
*/
|
|
8
|
-
export declare const applyRule: (rule: JsonLogic, data: Record<string, unknown
|
|
7
|
+
export declare const applyRule: (rule: JsonLogic, data: Record<string, unknown>) => unknown;
|
|
9
8
|
/**
|
|
10
9
|
* Rewrite rule variable aliases to mapped data keys. Port of mapRule
|
|
11
10
|
* (RuleUtilities.js:66-81): string-level `{"var":"a"}` → `{"var":"customerID"}`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/rules.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC
|
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/rules.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;GAIG;AACH,eAAO,MAAM,SAAS,6DAGmB,CAAC;AAE1C;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,iEAgB5B,CAAC"}
|
|
@@ -8,20 +8,10 @@
|
|
|
8
8
|
import jsonLogic from 'json-logic-js';
|
|
9
9
|
/**
|
|
10
10
|
* Evaluate a rule against a data object. Port of evaluateRule
|
|
11
|
-
* (RuleUtilities.js:91-99)
|
|
12
|
-
*
|
|
13
|
-
* `users.firstName` resolve — unless the row already carries that key.
|
|
11
|
+
* (RuleUtilities.js:91-99) minus its joining-entity wrap: v2 rows are always
|
|
12
|
+
* the flat child-entity row, so rules evaluate against the row as-is.
|
|
14
13
|
*/
|
|
15
|
-
export const applyRule = (rule, data
|
|
16
|
-
let formattedData = {};
|
|
17
|
-
if (objectKey && dataLazyLoaded) {
|
|
18
|
-
formattedData[objectKey] = data[objectKey] ? data[objectKey] : data;
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
formattedData = data;
|
|
22
|
-
}
|
|
23
|
-
return jsonLogic.apply(rule, formattedData);
|
|
24
|
-
};
|
|
14
|
+
export const applyRule = (rule, data) => jsonLogic.apply(rule, data);
|
|
25
15
|
/**
|
|
26
16
|
* Rewrite rule variable aliases to mapped data keys. Port of mapRule
|
|
27
17
|
* (RuleUtilities.js:66-81): string-level `{"var":"a"}` → `{"var":"customerID"}`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../src/domain/inquiryTree/rules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,SAAS,MAAM,eAAe,CAAC;AAGtC
|
|
1
|
+
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../src/domain/inquiryTree/rules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,SAAS,MAAM,eAAe,CAAC;AAGtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,IAAe,EACf,IAA6B,EACpB,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,OAAkD,EAClD,IAAkC,EACvB,EAAE,CAAC;IACd,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC,CAAC;IACxC,IAAI,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC;IACzC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC;QACpB,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;QAC5C,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,EAAG,OAAkC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACtF,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAAA,CACnD,CAAC,CAAC;IACH,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAc,CAAC;IAC1C,CAAC;eAAO,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AAAA,CACF,CAAC"}
|
|
@@ -9,16 +9,10 @@ import jsonLogic from "json-logic-js";
|
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
11
|
* Evaluate a rule against a data object. Port of evaluateRule
|
|
12
|
-
* (RuleUtilities.js:91-99)
|
|
13
|
-
*
|
|
14
|
-
* `users.firstName` resolve — unless the row already carries that key.
|
|
12
|
+
* (RuleUtilities.js:91-99) minus its joining-entity wrap: v2 rows are always
|
|
13
|
+
* the flat child-entity row, so rules evaluate against the row as-is.
|
|
15
14
|
*/
|
|
16
|
-
const applyRule = (rule, data
|
|
17
|
-
let formattedData = {};
|
|
18
|
-
if (objectKey && dataLazyLoaded) formattedData[objectKey] = data[objectKey] ? data[objectKey] : data;
|
|
19
|
-
else formattedData = data;
|
|
20
|
-
return jsonLogic.apply(rule, formattedData);
|
|
21
|
-
};
|
|
15
|
+
const applyRule = (rule, data) => jsonLogic.apply(rule, data);
|
|
22
16
|
/**
|
|
23
17
|
* Rewrite rule variable aliases to mapped data keys. Port of mapRule
|
|
24
18
|
* (RuleUtilities.js:66-81): string-level `{"var":"a"}` → `{"var":"customerID"}`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.mjs","names":["jsonLogic","JsonLogic","applyRule","rule","data","Record","
|
|
1
|
+
{"version":3,"file":"rules.mjs","names":["jsonLogic","JsonLogic","applyRule","rule","data","Record","apply","mapRuleVariables","mapping","keys","Object","updated","JSON","stringify","forEach","key","substr","var","replacement","split","join","parse"],"sources":["../../../src/domain/inquiryTree/rules.ts"],"sourcesContent":["/**\n * JsonLogic rule evaluation — exact ports of the legacy RuleUtilities pair\n * (evaluateRule / mapRule, utilities/rules/RuleUtilities.js:66-99). The jsonLogic\n * `expression` is the evaluation source of truth and its semantics are a\n * byte-identical contract with legacy saved rules (decisions log, decision 18) —\n * quirks are preserved on purpose.\n */\nimport jsonLogic from 'json-logic-js';\nimport { JsonLogic } from './types';\n\n/**\n * Evaluate a rule against a data object. Port of evaluateRule\n * (RuleUtilities.js:91-99) minus its joining-entity wrap: v2 rows are always\n * the flat child-entity row, so rules evaluate against the row as-is.\n */\nexport const applyRule = (\n rule: JsonLogic,\n data: Record<string, unknown>\n): unknown => jsonLogic.apply(rule, data);\n\n/**\n * Rewrite rule variable aliases to mapped data keys. Port of mapRule\n * (RuleUtilities.js:66-81): string-level `{\"var\":\"a\"}` → `{\"var\":\"customerID\"}`\n * replacement (replaceAll on the serialized rule — the legacy contract).\n * Returns {} when the rewritten rule fails to parse (legacy behavior).\n */\nexport const mapRuleVariables = (\n mapping: Record<string, string> | null | undefined,\n rule: JsonLogic | null | undefined\n): JsonLogic => {\n const keys = Object.keys(mapping ?? {});\n let updated = JSON.stringify(rule ?? '');\n keys.forEach((key) => {\n const substr = JSON.stringify({ var: key });\n const replacement = JSON.stringify({ var: (mapping as Record<string, string>)[key] });\n updated = updated.split(substr).join(replacement);\n });\n try {\n return JSON.parse(updated) as JsonLogic;\n } catch {\n return {};\n }\n};\n"],"mappings":";;;;;;;;;;;;;;AAeA,MAAaE,aACXC,MACAC,SACYJ,UAAUM,MAAMH,MAAMC,KAAK;;;;;;;AAQzC,MAAaG,oBACXC,SACAL,SACc;CACd,MAAMM,OAAOC,OAAOD,KAAKD,WAAW,EAAE,CAAC;CACvC,IAAIG,UAAUC,KAAKC,UAAUV,QAAQ,GAAG;AACxCM,MAAKK,SAASC,QAAQ;EACpB,MAAMC,SAASJ,KAAKC,UAAU,EAAEI,KAAKF,KAAK,CAAC;EAC3C,MAAMG,cAAcN,KAAKC,UAAU,EAAEI,KAAMT,QAAmCO,MAAM,CAAC;AACrFJ,YAAUA,QAAQQ,MAAMH,OAAO,CAACI,KAAKF,YAAY;GACjD;AACF,KAAI;AACF,SAAON,KAAKS,MAAMV,QAAQ;SACpB;AACN,SAAO,EAAE"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Everything here is a verbatim behavioral port; quirks are kept on purpose so
|
|
8
8
|
* Inquiry renders identically after the migration (parity discipline, §4.8).
|
|
9
9
|
*/
|
|
10
|
-
import {
|
|
10
|
+
import { EntityNodeProperties, LevelConfig } from './types';
|
|
11
11
|
import { CatalogObject } from './legalChildren';
|
|
12
12
|
/** One `=` filter for the node's record fetch — legacy properties.filterElements shape. */
|
|
13
13
|
export interface RuntimeFilterElement {
|
|
@@ -16,17 +16,8 @@ export interface RuntimeFilterElement {
|
|
|
16
16
|
searchValue: unknown;
|
|
17
17
|
}
|
|
18
18
|
/* ------------------------------------------------------------------ labels */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* back — `undefined` TYPED as string (view.ts:154). These resolvers are the
|
|
22
|
-
* boundary where that lie would enter typed models (they crashed the viewer
|
|
23
|
-
* once, via headerTitle.trim()), so each one coerces to '' here and nowhere
|
|
24
|
-
* else. Callers all read labels with `||`, so '' and undefined pick the same
|
|
25
|
-
* fallback.
|
|
26
|
-
*/
|
|
27
|
-
export declare const resolveDisplayName: (node: EntityNode, obj: Record<string, unknown>) => string;
|
|
28
|
-
export declare const resolveDisplayDetails: (node: EntityNode, obj: Record<string, unknown>) => string;
|
|
29
|
-
export declare const resolveHeaderTitle: (node: EntityNode, obj: Record<string, unknown>) => string;
|
|
19
|
+
export declare const resolveDisplayName: (node: LevelConfig, obj: Record<string, unknown>) => string;
|
|
20
|
+
export declare const resolveDisplayDetails: (node: LevelConfig, obj: Record<string, unknown>) => string;
|
|
30
21
|
/**
|
|
31
22
|
* Raw conditional icon/adornment parts as the legacy display producer stored
|
|
32
23
|
* them on the display node (processObjIndex writes the three properties
|
|
@@ -53,7 +44,7 @@ export interface ConditionalIconParts {
|
|
|
53
44
|
* ('' triple on no match — legacy resets explicitly), preserving the legacy
|
|
54
45
|
* two-step contract for the display-tree layer.
|
|
55
46
|
*/
|
|
56
|
-
export declare const evaluateConditionalIconParts: (node:
|
|
47
|
+
export declare const evaluateConditionalIconParts: (node: LevelConfig, obj: Record<string, unknown>) => ConditionalIconParts;
|
|
57
48
|
/**
|
|
58
49
|
* Evaluate the node's conditional ADORNMENT expression into the separate
|
|
59
50
|
* legacy display keys — exact port of processObjIndex
|
|
@@ -61,7 +52,7 @@ export declare const evaluateConditionalIconParts: (node: EntityNode, obj: Recor
|
|
|
61
52
|
* conditionalIconExpression fallback (original adornments were stored as
|
|
62
53
|
* conditionalIcons). Returns null when the node has neither expression.
|
|
63
54
|
*/
|
|
64
|
-
export declare const evaluateConditionalAdornmentParts: (node:
|
|
55
|
+
export declare const evaluateConditionalAdornmentParts: (node: LevelConfig, obj: Record<string, unknown>) => ConditionalIconParts;
|
|
65
56
|
/* ------------------------------------------------------------------ hidden */
|
|
66
57
|
/**
|
|
67
58
|
* Conditional node hiding — port of checkNodeIsHidden (TreeUtilities.js:2199-2229):
|
|
@@ -69,7 +60,9 @@ export declare const evaluateConditionalAdornmentParts: (node: EntityNode, obj:
|
|
|
69
60
|
* an entity node with hiddenNode.enabled hides when the variable-mapped rule
|
|
70
61
|
* evaluates truthy against the data object.
|
|
71
62
|
*/
|
|
72
|
-
export declare const isNodeHidden: (node:
|
|
63
|
+
export declare const isNodeHidden: (node: LevelConfig & {
|
|
64
|
+
isGroupNode?: boolean;
|
|
65
|
+
}, obj: Record<string, unknown>) => boolean;
|
|
73
66
|
/* ------------------------------------------------------- search identifiers */
|
|
74
67
|
/**
|
|
75
68
|
* Identifier property names for an entity. Port of
|
|
@@ -81,6 +74,12 @@ export declare const isNodeHidden: (node: TreeNode, obj: Record<string, unknown>
|
|
|
81
74
|
* keys).
|
|
82
75
|
*/
|
|
83
76
|
export declare const getSearchIdentifiers: (catalogObjects: CatalogObject[], catalogReturnObject: string) => string[];
|
|
77
|
+
/**
|
|
78
|
+
* A level's search identifiers, in the order its `?nodeSearch` values are
|
|
79
|
+
* written: configured associatedTreePrimaryKeyMap keys replace the catalog's
|
|
80
|
+
* identifiers entirely (processObjIndex :665-669).
|
|
81
|
+
*/
|
|
82
|
+
export declare const getLevelSearchIdentifiers: (catalogObjects: CatalogObject[], { catalogReturnObject, associatedTreePrimaryKeyMap }: Pick<EntityNodeProperties, "associatedTreePrimaryKeyMap" | "catalogReturnObject">) => string[];
|
|
84
83
|
export interface RuntimeSearchState {
|
|
85
84
|
searchIdentifiers: string[];
|
|
86
85
|
filterElements: RuntimeFilterElement[];
|
|
@@ -93,5 +92,13 @@ export interface RuntimeSearchState {
|
|
|
93
92
|
* direct value falls through to the joining-entity object; missing values
|
|
94
93
|
* serialize as ''.
|
|
95
94
|
*/
|
|
96
|
-
export declare const buildRuntimeSearchState: (node:
|
|
95
|
+
export declare const buildRuntimeSearchState: (node: LevelConfig, obj: Record<string, unknown>, catalogObjects: CatalogObject[]) => RuntimeSearchState;
|
|
96
|
+
/**
|
|
97
|
+
* A saved query's parameters filled from a record: each `params.*` name mapped
|
|
98
|
+
* to the record field that supplies it (legacy mapNodeObjValuesToSearchParameters,
|
|
99
|
+
* TreeUtilities.js:2790). An unmapped parameter keeps its empty mapping and a
|
|
100
|
+
* missing value queries as ''. Row aggregate chips and header alerts both read
|
|
101
|
+
* their counts through it, so the same mapping means the same number.
|
|
102
|
+
*/
|
|
103
|
+
export declare const queryParamsFromRecord: (record: Record<string, unknown>, mappings: Record<string, string>) => Record<string, unknown>;
|
|
97
104
|
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAEL,
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAEL,oBAAoB,EAEpB,WAAW,EACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQhD,6FAA2F;AAC3F,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,GAAG,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,+EAA+E;AAE/E,eAAO,MAAM,kBAAkB,6DAG+B,CAAC;AAE/D,eAAO,MAAM,qBAAqB,6DAG+B,CAAC;AAsBlE;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,UAAU,EAAE,MAAM,CAAC;CACpB;AAcD;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,2EAQxC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,2EAkB7C,CAAC;AAEF,+EAA+E;AAE/E;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;2CAcxB,CAAC;AAEF,gFAAgF;AAEhF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,4EAoBhC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,wLASyB,CAAC;AAEhE,MAAM,WAAW,kBAAkB;IACjC,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,cAAc,EAAE,oBAAoB,EAAE,CAAC;IACvC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,0GAwCnC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,gGAWjC,CAAC"}
|
|
@@ -1,55 +1,24 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Viewer runtime layer — the typed, pure replacement for the legacy renderer's
|
|
3
|
-
* in-place node enrichment (TreeUtilities.processObjIndex :594-716 and the icon
|
|
4
|
-
* derivation in InquiryTreeMenu.renderTree :337-375). Nothing here mutates the
|
|
5
|
-
* canonical node — the §3 single-object rule.
|
|
6
|
-
*
|
|
7
|
-
* Everything here is a verbatim behavioral port; quirks are kept on purpose so
|
|
8
|
-
* Inquiry renders identically after the migration (parity discipline, §4.8).
|
|
9
|
-
*/
|
|
10
|
-
import { isGroupNode } from './types';
|
|
11
1
|
import { formatTreeLabel } from './view';
|
|
12
2
|
import { applyRule, mapRuleVariables } from './rules';
|
|
13
3
|
import { toWireString } from './wireString';
|
|
14
4
|
import { toUpperFirstChar } from '../../utilities/input/StringUtilities';
|
|
15
5
|
/* ------------------------------------------------------------------ labels */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
* boundary where that lie would enter typed models (they crashed the viewer
|
|
20
|
-
* once, via headerTitle.trim()), so each one coerces to '' here and nowhere
|
|
21
|
-
* else. Callers all read labels with `||`, so '' and undefined pick the same
|
|
22
|
-
* fallback.
|
|
23
|
-
*/
|
|
24
|
-
export const resolveDisplayName = (node, obj) => {
|
|
25
|
-
var _a;
|
|
26
|
-
return (_a = formatTreeLabel(node.properties.displayName, obj)) !== null && _a !== void 0 ? _a : '';
|
|
27
|
-
};
|
|
28
|
-
export const resolveDisplayDetails = (node, obj) => {
|
|
29
|
-
var _a;
|
|
30
|
-
return (_a = formatTreeLabel(node.properties.displayDetails, obj)) !== null && _a !== void 0 ? _a : '';
|
|
31
|
-
};
|
|
32
|
-
export const resolveHeaderTitle = (node, obj) => {
|
|
33
|
-
var _a;
|
|
34
|
-
return (_a = formatTreeLabel(node.properties.headerName, obj)) !== null && _a !== void 0 ? _a : '';
|
|
35
|
-
};
|
|
36
|
-
const evaluateIconExpression = (expression, node, obj, wasLazyLoaded) => {
|
|
6
|
+
export const resolveDisplayName = (node, obj) => formatTreeLabel(node.properties.displayName, obj);
|
|
7
|
+
export const resolveDisplayDetails = (node, obj) => formatTreeLabel(node.properties.displayDetails, obj);
|
|
8
|
+
const evaluateIconExpression = (expression, obj) => {
|
|
37
9
|
if (!expression)
|
|
38
10
|
return null;
|
|
39
|
-
const result = applyRule(expression, obj
|
|
11
|
+
const result = applyRule(expression, obj);
|
|
40
12
|
return result ? result : null;
|
|
41
13
|
};
|
|
42
|
-
const toConditionalIconParts = (evaluated) =>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
?
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
: { name: '', colorHex: '', type: '', fluentName: '' };
|
|
52
|
-
};
|
|
14
|
+
const toConditionalIconParts = (evaluated) => evaluated
|
|
15
|
+
? {
|
|
16
|
+
name: evaluated.name || '',
|
|
17
|
+
colorHex: evaluated.iconColor ? evaluated.iconColor.hex : undefined,
|
|
18
|
+
type: evaluated.type || '',
|
|
19
|
+
fluentName: evaluated.fluentName || ''
|
|
20
|
+
}
|
|
21
|
+
: { name: '', colorHex: '', type: '', fluentName: '' };
|
|
53
22
|
/**
|
|
54
23
|
* Evaluate the node's conditional ICON expression into the separate legacy
|
|
55
24
|
* display keys — exact port of processObjIndex (TreeUtilities.js:603-623).
|
|
@@ -58,10 +27,10 @@ const toConditionalIconParts = (evaluated) => {
|
|
|
58
27
|
* ('' triple on no match — legacy resets explicitly), preserving the legacy
|
|
59
28
|
* two-step contract for the display-tree layer.
|
|
60
29
|
*/
|
|
61
|
-
export const evaluateConditionalIconParts = (node, obj
|
|
30
|
+
export const evaluateConditionalIconParts = (node, obj) => {
|
|
62
31
|
if (!node.properties.conditionalNodeIconExpression)
|
|
63
32
|
return null;
|
|
64
|
-
return toConditionalIconParts(evaluateIconExpression(node.properties.conditionalNodeIconExpression,
|
|
33
|
+
return toConditionalIconParts(evaluateIconExpression(node.properties.conditionalNodeIconExpression, obj));
|
|
65
34
|
};
|
|
66
35
|
/**
|
|
67
36
|
* Evaluate the node's conditional ADORNMENT expression into the separate
|
|
@@ -70,7 +39,7 @@ export const evaluateConditionalIconParts = (node, obj, wasLazyLoaded = false) =
|
|
|
70
39
|
* conditionalIconExpression fallback (original adornments were stored as
|
|
71
40
|
* conditionalIcons). Returns null when the node has neither expression.
|
|
72
41
|
*/
|
|
73
|
-
export const evaluateConditionalAdornmentParts = (node, obj
|
|
42
|
+
export const evaluateConditionalAdornmentParts = (node, obj) => {
|
|
74
43
|
const props = node.properties;
|
|
75
44
|
if (!props.conditionalNodeAdornmentExpression &&
|
|
76
45
|
!props.conditionalIconExpression) {
|
|
@@ -80,7 +49,7 @@ export const evaluateConditionalAdornmentParts = (node, obj, wasLazyLoaded = fal
|
|
|
80
49
|
const expression = props.conditionalNodeAdornmentExpression
|
|
81
50
|
? props.conditionalNodeAdornmentExpression
|
|
82
51
|
: props.conditionalIconExpression;
|
|
83
|
-
return toConditionalIconParts(evaluateIconExpression(expression,
|
|
52
|
+
return toConditionalIconParts(evaluateIconExpression(expression, obj));
|
|
84
53
|
};
|
|
85
54
|
/* ------------------------------------------------------------------ hidden */
|
|
86
55
|
/**
|
|
@@ -89,10 +58,10 @@ export const evaluateConditionalAdornmentParts = (node, obj, wasLazyLoaded = fal
|
|
|
89
58
|
* an entity node with hiddenNode.enabled hides when the variable-mapped rule
|
|
90
59
|
* evaluates truthy against the data object.
|
|
91
60
|
*/
|
|
92
|
-
export const isNodeHidden = (node, obj
|
|
61
|
+
export const isNodeHidden = (node, obj) => {
|
|
93
62
|
if (!node || !Object.keys(node).length)
|
|
94
63
|
return true;
|
|
95
|
-
if (isGroupNode
|
|
64
|
+
if (node.isGroupNode)
|
|
96
65
|
return false;
|
|
97
66
|
const hiddenNode = node.properties.hiddenNode;
|
|
98
67
|
if (!(hiddenNode === null || hiddenNode === void 0 ? void 0 : hiddenNode.enabled))
|
|
@@ -100,7 +69,7 @@ export const isNodeHidden = (node, obj, wasLazyLoaded = false) => {
|
|
|
100
69
|
const rule = mapRuleVariables(hiddenNode.propertyMapping, hiddenNode.jsonLogic);
|
|
101
70
|
if (!rule)
|
|
102
71
|
return false;
|
|
103
|
-
return Boolean(applyRule(rule, obj
|
|
72
|
+
return Boolean(applyRule(rule, obj));
|
|
104
73
|
};
|
|
105
74
|
/* ------------------------------------------------------- search identifiers */
|
|
106
75
|
/**
|
|
@@ -128,6 +97,14 @@ export const getSearchIdentifiers = (catalogObjects, catalogReturnObject) => {
|
|
|
128
97
|
});
|
|
129
98
|
return ((_b = identifierProps === null || identifierProps === void 0 ? void 0 : identifierProps.map((property) => property.name)) !== null && _b !== void 0 ? _b : []);
|
|
130
99
|
};
|
|
100
|
+
/**
|
|
101
|
+
* A level's search identifiers, in the order its `?nodeSearch` values are
|
|
102
|
+
* written: configured associatedTreePrimaryKeyMap keys replace the catalog's
|
|
103
|
+
* identifiers entirely (processObjIndex :665-669).
|
|
104
|
+
*/
|
|
105
|
+
export const getLevelSearchIdentifiers = (catalogObjects, { catalogReturnObject, associatedTreePrimaryKeyMap }) => associatedTreePrimaryKeyMap
|
|
106
|
+
? Object.keys(associatedTreePrimaryKeyMap)
|
|
107
|
+
: getSearchIdentifiers(catalogObjects, catalogReturnObject);
|
|
131
108
|
/**
|
|
132
109
|
* Build the record-fetch filters for a node's data row — port of the
|
|
133
110
|
* catalogReturnObject block of processObjIndex (:657-706), quirks preserved:
|
|
@@ -139,11 +116,8 @@ export const buildRuntimeSearchState = (node, obj, catalogObjects) => {
|
|
|
139
116
|
if (!node.properties.catalogReturnObject) {
|
|
140
117
|
return { searchIdentifiers: [], filterElements: [], searchValue: '' };
|
|
141
118
|
}
|
|
142
|
-
|
|
119
|
+
const searchIdentifiers = getLevelSearchIdentifiers(catalogObjects, node.properties);
|
|
143
120
|
const primaryKeyMap = node.properties.associatedTreePrimaryKeyMap;
|
|
144
|
-
if (primaryKeyMap) {
|
|
145
|
-
searchIdentifiers = Object.keys(primaryKeyMap);
|
|
146
|
-
}
|
|
147
121
|
const filterElements = [];
|
|
148
122
|
const searchValues = [];
|
|
149
123
|
const joiningKey = node.properties.joiningEntityCatalogObjectKey;
|
|
@@ -175,4 +149,22 @@ export const buildRuntimeSearchState = (node, obj, catalogObjects) => {
|
|
|
175
149
|
searchValue: toWireString(searchValues)
|
|
176
150
|
};
|
|
177
151
|
};
|
|
152
|
+
/**
|
|
153
|
+
* A saved query's parameters filled from a record: each `params.*` name mapped
|
|
154
|
+
* to the record field that supplies it (legacy mapNodeObjValuesToSearchParameters,
|
|
155
|
+
* TreeUtilities.js:2790). An unmapped parameter keeps its empty mapping and a
|
|
156
|
+
* missing value queries as ''. Row aggregate chips and header alerts both read
|
|
157
|
+
* their counts through it, so the same mapping means the same number.
|
|
158
|
+
*/
|
|
159
|
+
export const queryParamsFromRecord = (record, mappings) => {
|
|
160
|
+
if (!mappings || !record)
|
|
161
|
+
return {};
|
|
162
|
+
return Object.fromEntries(Object.entries(mappings).map(([param, field]) => {
|
|
163
|
+
var _a;
|
|
164
|
+
return [
|
|
165
|
+
param,
|
|
166
|
+
field ? ((_a = record[field]) !== null && _a !== void 0 ? _a : '') || '' : field
|
|
167
|
+
];
|
|
168
|
+
}));
|
|
169
|
+
};
|
|
178
170
|
//# sourceMappingURL=runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/domain/inquiryTree/runtime.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/domain/inquiryTree/runtime.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EACL,gBAAgB,EACjB,MAAM,uCAAuC,CAAC;AAS/C,+EAA+E;AAE/E,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,IAAiB,EACjB,GAA4B,EACpB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;AAE/D,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,IAAiB,EACjB,GAA4B,EACpB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC;AAalE,MAAM,sBAAsB,GAAG,CAC7B,UAAwC,EACxC,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