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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Refreshing ONE branch of the tree — what a mutation on a record owes the
|
|
3
|
+
* rows around it.
|
|
4
|
+
*
|
|
5
|
+
* A create, update or delete run from a record can change anything under that
|
|
6
|
+
* record's root: a new child row, a removed one, a changed label. No query owns
|
|
7
|
+
* those rows — eager levels were grafted by the wave loader, lazy ones paged in
|
|
8
|
+
* by an expand — so invalidating the cache alone changes nothing on screen
|
|
9
|
+
* (a root-page rebuild only fires when the ROOT page answers differently). v1
|
|
10
|
+
* re-fetched the selected root record and recomposed it; v2 does the same, and
|
|
11
|
+
* then brings the fresh branch back to where the user had the old one BEFORE it
|
|
12
|
+
* is swapped in: every row they had opened is open again, and every lazy level
|
|
13
|
+
* they had loaded is re-fetched to the same page. The swap is one state change,
|
|
14
|
+
* so the selection can be re-found by record key on the finished branch.
|
|
15
|
+
*
|
|
16
|
+
* Rows are matched across the two branches by their stable key (record →
|
|
17
|
+
* businessObjectKey, group heading → label), never by display id — the fresh
|
|
18
|
+
* branch mints new ids.
|
|
19
|
+
*/
|
|
20
|
+
import { type DisplayNode } from '../../../domain/inquiryTree/displayTree';
|
|
21
|
+
import type { LazyChildrenResult } from './waveLoader';
|
|
22
|
+
export type LoadChildren = (args: {
|
|
23
|
+
node: DisplayNode;
|
|
24
|
+
pageNumber: number;
|
|
25
|
+
}) => Promise<LazyChildrenResult>;
|
|
26
|
+
/**
|
|
27
|
+
* Re-open `fresh` (a private, just-composed branch) the way `old` was open,
|
|
28
|
+
* re-fetching each lazy level `old` had loaded through `loadChildren` — page 1
|
|
29
|
+
* to the page `old` had reached. Mutates `fresh` in place.
|
|
30
|
+
*/
|
|
31
|
+
export declare const reloadBranch: (fresh: DisplayNode, old: DisplayNode, loadChildren: LoadChildren) => Promise<void>;
|
|
32
|
+
//# sourceMappingURL=branchRefreshModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branchRefreshModel.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/branchRefreshModel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,yCAAyC,CAAC;AAGjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAElC;;;;GAIG;AACH,eAAO,MAAM,YAAY,qFA0CxB,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Refreshing ONE branch of the tree — what a mutation on a record owes the
|
|
3
|
+
* rows around it.
|
|
4
|
+
*
|
|
5
|
+
* A create, update or delete run from a record can change anything under that
|
|
6
|
+
* record's root: a new child row, a removed one, a changed label. No query owns
|
|
7
|
+
* those rows — eager levels were grafted by the wave loader, lazy ones paged in
|
|
8
|
+
* by an expand — so invalidating the cache alone changes nothing on screen
|
|
9
|
+
* (a root-page rebuild only fires when the ROOT page answers differently). v1
|
|
10
|
+
* re-fetched the selected root record and recomposed it; v2 does the same, and
|
|
11
|
+
* then brings the fresh branch back to where the user had the old one BEFORE it
|
|
12
|
+
* is swapped in: every row they had opened is open again, and every lazy level
|
|
13
|
+
* they had loaded is re-fetched to the same page. The swap is one state change,
|
|
14
|
+
* so the selection can be re-found by record key on the finished branch.
|
|
15
|
+
*
|
|
16
|
+
* Rows are matched across the two branches by their stable key (record →
|
|
17
|
+
* businessObjectKey, group heading → label), never by display id — the fresh
|
|
18
|
+
* branch mints new ids.
|
|
19
|
+
*/
|
|
20
|
+
import { hasUnloadedChildren, rowChildState } from '../../../domain/inquiryTree/displayTree';
|
|
21
|
+
import { stableKeyOf } from './menuRebuildModel';
|
|
22
|
+
import { mergePagedChildren } from './pagedChildrenModel';
|
|
23
|
+
/**
|
|
24
|
+
* Re-open `fresh` (a private, just-composed branch) the way `old` was open,
|
|
25
|
+
* re-fetching each lazy level `old` had loaded through `loadChildren` — page 1
|
|
26
|
+
* to the page `old` had reached. Mutates `fresh` in place.
|
|
27
|
+
*/
|
|
28
|
+
export const reloadBranch = async (fresh, old, loadChildren) => {
|
|
29
|
+
var _a;
|
|
30
|
+
var _b, _c, _d, _e;
|
|
31
|
+
fresh.isExpanded = old.isExpanded;
|
|
32
|
+
if (rowChildState(old) === 'loaded' &&
|
|
33
|
+
hasUnloadedChildren(fresh) &&
|
|
34
|
+
((_a = fresh.lazyLoadChildrenArr) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
35
|
+
const pages = Number(old['currentChildPage']) || 1;
|
|
36
|
+
let pageNumber = 0;
|
|
37
|
+
let hasMore = true;
|
|
38
|
+
let error = null;
|
|
39
|
+
while (hasMore && pageNumber < pages) {
|
|
40
|
+
pageNumber += 1;
|
|
41
|
+
const page = await loadChildren({ node: fresh, pageNumber });
|
|
42
|
+
fresh.children = mergePagedChildren((_b = fresh.children) !== null && _b !== void 0 ? _b : [], page.children);
|
|
43
|
+
hasMore = page.hasMoreChildren;
|
|
44
|
+
if (typeof page.errorRetrievingChildren === 'string') {
|
|
45
|
+
error = page.errorRetrievingChildren;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
fresh.errorRetrievingChildren = error;
|
|
49
|
+
// As on expand: a level that failed and brought nothing was never loaded,
|
|
50
|
+
// so the next expand asks again.
|
|
51
|
+
fresh.childState =
|
|
52
|
+
error && !((_c = fresh.children) !== null && _c !== void 0 ? _c : []).length ? 'error' : 'loaded';
|
|
53
|
+
fresh['currentChildPage'] = pageNumber;
|
|
54
|
+
fresh['hasMoreChildren'] = hasMore;
|
|
55
|
+
}
|
|
56
|
+
const oldByKey = new Map(((_d = old.children) !== null && _d !== void 0 ? _d : []).map((child) => [stableKeyOf(child), child]));
|
|
57
|
+
await Promise.all(((_e = fresh.children) !== null && _e !== void 0 ? _e : []).map((child) => {
|
|
58
|
+
const prior = oldByKey.get(stableKeyOf(child));
|
|
59
|
+
return prior ? reloadBranch(child, prior, loadChildren) : undefined;
|
|
60
|
+
}));
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=branchRefreshModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branchRefreshModel.js","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/branchRefreshModel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EACL,mBAAmB,EACnB,aAAa,EAEd,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ1D;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAC/B,KAAkB,EAClB,GAAgB,EAChB,YAA0B,EACX,EAAE,CAAC;;;IAClB,KAAK,CAAC,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC;IAClC,IACE,aAAa,CAAC,GAAG,CAAC,KAAK,QAAQ;QAC/B,mBAAmB,CAAC,KAAK,CAAC;SAC1B,MAAA,KAAK,CAAC,mBAAmB,0CAAE,MAAM,CAAA,EACjC,CAAC;QACD,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,UAAU,GAAG,CAAC,CAAC;QACnB,IAAI,OAAO,GA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AAC,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;QAC/C,OAAO,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAAA,CACrE,CAAC,CACH,CAAC;AAAA,CACH,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { hasUnloadedChildren, rowChildState } from "../../../domain/inquiryTree/displayTree.mjs";
|
|
2
|
+
import { mergePagedChildren } from "./pagedChildrenModel.mjs";
|
|
3
|
+
import { stableKeyOf } from "./menuRebuildModel.mjs";
|
|
4
|
+
//#region src/inquiry/v2/tree/branchRefreshModel.ts
|
|
5
|
+
/**
|
|
6
|
+
* Refreshing ONE branch of the tree — what a mutation on a record owes the
|
|
7
|
+
* rows around it.
|
|
8
|
+
*
|
|
9
|
+
* A create, update or delete run from a record can change anything under that
|
|
10
|
+
* record's root: a new child row, a removed one, a changed label. No query owns
|
|
11
|
+
* those rows — eager levels were grafted by the wave loader, lazy ones paged in
|
|
12
|
+
* by an expand — so invalidating the cache alone changes nothing on screen
|
|
13
|
+
* (a root-page rebuild only fires when the ROOT page answers differently). v1
|
|
14
|
+
* re-fetched the selected root record and recomposed it; v2 does the same, and
|
|
15
|
+
* then brings the fresh branch back to where the user had the old one BEFORE it
|
|
16
|
+
* is swapped in: every row they had opened is open again, and every lazy level
|
|
17
|
+
* they had loaded is re-fetched to the same page. The swap is one state change,
|
|
18
|
+
* so the selection can be re-found by record key on the finished branch.
|
|
19
|
+
*
|
|
20
|
+
* Rows are matched across the two branches by their stable key (record →
|
|
21
|
+
* businessObjectKey, group heading → label), never by display id — the fresh
|
|
22
|
+
* branch mints new ids.
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Re-open `fresh` (a private, just-composed branch) the way `old` was open,
|
|
26
|
+
* re-fetching each lazy level `old` had loaded through `loadChildren` — page 1
|
|
27
|
+
* to the page `old` had reached. Mutates `fresh` in place.
|
|
28
|
+
*/
|
|
29
|
+
const reloadBranch = async (fresh, old, loadChildren) => {
|
|
30
|
+
fresh.isExpanded = old.isExpanded;
|
|
31
|
+
if (rowChildState(old) === "loaded" && hasUnloadedChildren(fresh) && fresh.lazyLoadChildrenArr?.length) {
|
|
32
|
+
const pages = Number(old["currentChildPage"]) || 1;
|
|
33
|
+
let pageNumber = 0;
|
|
34
|
+
let hasMore = true;
|
|
35
|
+
let error = null;
|
|
36
|
+
while (hasMore && pageNumber < pages) {
|
|
37
|
+
pageNumber += 1;
|
|
38
|
+
const page = await loadChildren({
|
|
39
|
+
node: fresh,
|
|
40
|
+
pageNumber
|
|
41
|
+
});
|
|
42
|
+
fresh.children = mergePagedChildren(fresh.children ?? [], page.children);
|
|
43
|
+
hasMore = page.hasMoreChildren;
|
|
44
|
+
if (typeof page.errorRetrievingChildren === "string") error = page.errorRetrievingChildren;
|
|
45
|
+
}
|
|
46
|
+
fresh.errorRetrievingChildren = error;
|
|
47
|
+
fresh.childState = error && !(fresh.children ?? []).length ? "error" : "loaded";
|
|
48
|
+
fresh["currentChildPage"] = pageNumber;
|
|
49
|
+
fresh["hasMoreChildren"] = hasMore;
|
|
50
|
+
}
|
|
51
|
+
const oldByKey = new Map((old.children ?? []).map((child) => [stableKeyOf(child), child]));
|
|
52
|
+
await Promise.all((fresh.children ?? []).map((child) => {
|
|
53
|
+
const prior = oldByKey.get(stableKeyOf(child));
|
|
54
|
+
return prior ? reloadBranch(child, prior, loadChildren) : void 0;
|
|
55
|
+
}));
|
|
56
|
+
};
|
|
57
|
+
//#endregion
|
|
58
|
+
export { reloadBranch };
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=branchRefreshModel.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branchRefreshModel.mjs","names":["hasUnloadedChildren","rowChildState","DisplayNode","stableKeyOf","mergePagedChildren","LazyChildrenResult","LoadChildren","args","node","pageNumber","Promise","reloadBranch","fresh","old","loadChildren","isExpanded","lazyLoadChildrenArr","length","pages","Number","hasMore","error","page","children","hasMoreChildren","errorRetrievingChildren","childState","oldByKey","Map","map","child","all","prior","get","undefined"],"sources":["../../../../src/inquiry/v2/tree/branchRefreshModel.ts"],"sourcesContent":["/**\n * Refreshing ONE branch of the tree — what a mutation on a record owes the\n * rows around it.\n *\n * A create, update or delete run from a record can change anything under that\n * record's root: a new child row, a removed one, a changed label. No query owns\n * those rows — eager levels were grafted by the wave loader, lazy ones paged in\n * by an expand — so invalidating the cache alone changes nothing on screen\n * (a root-page rebuild only fires when the ROOT page answers differently). v1\n * re-fetched the selected root record and recomposed it; v2 does the same, and\n * then brings the fresh branch back to where the user had the old one BEFORE it\n * is swapped in: every row they had opened is open again, and every lazy level\n * they had loaded is re-fetched to the same page. The swap is one state change,\n * so the selection can be re-found by record key on the finished branch.\n *\n * Rows are matched across the two branches by their stable key (record →\n * businessObjectKey, group heading → label), never by display id — the fresh\n * branch mints new ids.\n */\nimport {\n hasUnloadedChildren,\n rowChildState,\n type DisplayNode\n} from '../../../domain/inquiryTree/displayTree';\nimport { stableKeyOf } from './menuRebuildModel';\nimport { mergePagedChildren } from './pagedChildrenModel';\nimport type { LazyChildrenResult } from './waveLoader';\n\nexport type LoadChildren = (args: {\n node: DisplayNode;\n pageNumber: number;\n}) => Promise<LazyChildrenResult>;\n\n/**\n * Re-open `fresh` (a private, just-composed branch) the way `old` was open,\n * re-fetching each lazy level `old` had loaded through `loadChildren` — page 1\n * to the page `old` had reached. Mutates `fresh` in place.\n */\nexport const reloadBranch = async (\n fresh: DisplayNode,\n old: DisplayNode,\n loadChildren: LoadChildren\n): Promise<void> => {\n fresh.isExpanded = old.isExpanded;\n if (\n rowChildState(old) === 'loaded' &&\n hasUnloadedChildren(fresh) &&\n fresh.lazyLoadChildrenArr?.length\n ) {\n const pages = Number(old['currentChildPage']) || 1;\n let pageNumber = 0;\n let hasMore = true;\n let error: string | null = null;\n while (hasMore && pageNumber < pages) {\n pageNumber += 1;\n const page = await loadChildren({ node: fresh, pageNumber });\n fresh.children = mergePagedChildren(fresh.children ?? [], page.children);\n hasMore = page.hasMoreChildren;\n if (typeof page.errorRetrievingChildren === 'string') {\n error = page.errorRetrievingChildren;\n }\n }\n fresh.errorRetrievingChildren = error;\n // As on expand: a level that failed and brought nothing was never loaded,\n // so the next expand asks again.\n fresh.childState =\n error && !(fresh.children ?? []).length ? 'error' : 'loaded';\n fresh['currentChildPage'] = pageNumber;\n fresh['hasMoreChildren'] = hasMore;\n }\n\n const oldByKey = new Map(\n (old.children ?? []).map((child) => [stableKeyOf(child), child])\n );\n await Promise.all(\n (fresh.children ?? []).map((child) => {\n const prior = oldByKey.get(stableKeyOf(child));\n return prior ? reloadBranch(child, prior, loadChildren) : undefined;\n })\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,MAAaW,eAAe,OAC1BC,OACAC,KACAC,iBACkB;AAClBF,OAAMG,aAAaF,IAAIE;AACvB,KACEd,cAAcY,IAAI,KAAK,YACvBb,oBAAoBY,MAAM,IAC1BA,MAAMI,qBAAqBC,QAC3B;EACA,MAAMC,QAAQC,OAAON,IAAI,oBAAoB,IAAI;EACjD,IAAIJ,aAAa;EACjB,IAAIW,UAAU;EACd,IAAIC,QAAuB;AAC3B,SAAOD,WAAWX,aAAaS,OAAO;AACpCT,iBAAc;GACd,MAAMa,OAAO,MAAMR,aAAa;IAAEN,MAAMI;IAAOH;IAAY,CAAC;AAC5DG,SAAMW,WAAWnB,mBAAmBQ,MAAMW,YAAY,EAAE,EAAED,KAAKC,SAAS;AACxEH,aAAUE,KAAKE;AACf,OAAI,OAAOF,KAAKG,4BAA4B,SAC1CJ,SAAQC,KAAKG;;AAGjBb,QAAMa,0BAA0BJ;AAGhCT,QAAMc,aACJL,SAAS,EAAET,MAAMW,YAAY,EAAE,EAAEN,SAAS,UAAU;AACtDL,QAAM,sBAAsBH;AAC5BG,QAAM,qBAAqBQ;;CAG7B,MAAMO,WAAW,IAAIC,KAClBf,IAAIU,YAAY,EAAE,EAAEM,KAAKC,UAAU,CAAC3B,YAAY2B,MAAM,EAAEA,MAAM,CACjE,CAAC;AACD,OAAMpB,QAAQqB,KACXnB,MAAMW,YAAY,EAAE,EAAEM,KAAKC,UAAU;EACpC,MAAME,QAAQL,SAASM,IAAI9B,YAAY2B,MAAM,CAAC;AAC9C,SAAOE,QAAQrB,aAAamB,OAAOE,OAAOlB,aAAa,GAAGoB,KAAAA;GAE9D,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type DisplayNode } from '../../../domain/inquiryTree/displayTree';
|
|
2
2
|
/** A root built by a page drop (never a record the tree loaded). */
|
|
3
3
|
export declare const isDroppedPageNode: (node: DisplayNode) => boolean;
|
|
4
4
|
/**
|
|
@@ -8,4 +8,26 @@ export declare const isDroppedPageNode: (node: DisplayNode) => boolean;
|
|
|
8
8
|
* - onto any other row: a new root.
|
|
9
9
|
*/
|
|
10
10
|
export declare const dropPageNode: (target: DisplayNode, source: DisplayNode, makeId: () => string) => DisplayNode;
|
|
11
|
+
/**
|
|
12
|
+
* What a dropped page is MADE FROM: the record it was first dropped onto (by
|
|
13
|
+
* its config level) and every record dropped since, in order. The menu keeps
|
|
14
|
+
* this, not the built node, so a config change — the Tree Builder preview
|
|
15
|
+
* editing the target level's drop actions — rebuilds the page against the new
|
|
16
|
+
* config instead of carrying a stale one.
|
|
17
|
+
*/
|
|
18
|
+
export interface DroppedPageSource {
|
|
19
|
+
id: string;
|
|
20
|
+
targetLevelId: string;
|
|
21
|
+
targetRecord: Record<string, unknown> | undefined;
|
|
22
|
+
/** Each dropped record, as the entity and record a drop needs. */
|
|
23
|
+
drops: DisplayNode[];
|
|
24
|
+
}
|
|
25
|
+
/** The part of a dragged row a drop reads: its entity and its record. */
|
|
26
|
+
export declare const asDrop: (source: DisplayNode) => DisplayNode;
|
|
27
|
+
/**
|
|
28
|
+
* Replay a page's drops against the CURRENT config level of its target. Null
|
|
29
|
+
* when that level is gone or no longer configures a page for the first drop.
|
|
30
|
+
* The root keeps its id, so the selection and the tabs survive the rebuild.
|
|
31
|
+
*/
|
|
32
|
+
export declare const rebuildDroppedPage: (source: DroppedPageSource, findLevel: (id: string) => DisplayNode) => DisplayNode;
|
|
11
33
|
//# sourceMappingURL=droppedPageModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"droppedPageModel.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/droppedPageModel.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"droppedPageModel.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/droppedPageModel.ts"],"names":[],"mappings":"AAkBA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,yCAAyC,CAAC;AAOjD,oEAAoE;AACpE,eAAO,MAAM,iBAAiB,gCAEkB,CAAC;AAiCjD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,iFAuExB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IAClD,kEAAkE;IAClE,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB;AAED,yEAAyE;AACzE,eAAO,MAAM,MAAM,sCAIjB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,oFAiB9B,CAAC"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* Pure so the first-drop and repeat-drop rules are testable without a tree.
|
|
14
14
|
*/
|
|
15
15
|
import { NodeActionEnums, NodeActionTriggerEnums } from '../../../enums/unitySystemEnums';
|
|
16
|
+
import { isDragEntity, nodeEntityName } from '../../../domain/inquiryTree/displayTree';
|
|
16
17
|
import { getSanitizedName } from '../../../domain/inquiryTree/legalChildren';
|
|
17
18
|
import { pluralize } from '../../../utilities/input/StringUtilities';
|
|
18
19
|
const DROPPED_FLAG = 'isDroppedLoadedPageNode';
|
|
@@ -21,32 +22,31 @@ export const isDroppedPageNode = (node) => {
|
|
|
21
22
|
var _a;
|
|
22
23
|
return !!((_a = node === null || node === void 0 ? void 0 : node.properties) === null || _a === void 0 ? void 0 : _a[DROPPED_FLAG]);
|
|
23
24
|
};
|
|
24
|
-
const entityOf = (node) => {
|
|
25
|
-
var _a;
|
|
26
|
-
const entity = (_a = node.properties) === null || _a === void 0 ? void 0 : _a['catalogReturnObject'];
|
|
27
|
-
return typeof entity === 'string' ? entity : '';
|
|
28
|
-
};
|
|
29
25
|
const loadPageActions = (node) => {
|
|
30
26
|
var _a;
|
|
31
27
|
var _b;
|
|
32
28
|
return ((_b = (_a = node.properties) === null || _a === void 0 ? void 0 : _a['nodeActions']) !== null && _b !== void 0 ? _b : []).filter((action) => (action === null || action === void 0 ? void 0 : action.triggerType) === NodeActionTriggerEnums.On_Node_Drop &&
|
|
33
29
|
(action === null || action === void 0 ? void 0 : action.actionTypeId) === NodeActionEnums.Load_Inquiry_Page);
|
|
34
30
|
};
|
|
35
|
-
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
/**
|
|
32
|
+
* v1's tab object, in the shape the node view reads (`sequenceNo` orders it).
|
|
33
|
+
* A tab's id is its root's id plus its position, so rebuilding the same drops
|
|
34
|
+
* gives the same tabs — the record pane keeps the tab the user had open.
|
|
35
|
+
*/
|
|
36
|
+
const tabsFor = (actions, sourceEntity, rootId, existingTabs) => actions
|
|
37
|
+
.filter((action) => isDragEntity(action.dragEntityName, sourceEntity))
|
|
38
|
+
.map((action, index) => {
|
|
39
39
|
var _a;
|
|
40
40
|
var _b;
|
|
41
41
|
return ({
|
|
42
|
-
id:
|
|
42
|
+
id: `${rootId}:tab-${existingTabs + index}`,
|
|
43
43
|
page: (_b = action.page) !== null && _b !== void 0 ? _b : null,
|
|
44
|
-
inquiryTreeRuleId: action.inquiryTreeRuleId
|
|
45
|
-
jsonLogic: action.jsonLogic
|
|
46
|
-
propertyIsCustomMapping: action.propertyIsCustomMapping
|
|
47
|
-
propertyMapping: action.propertyMapping
|
|
48
|
-
sequenceNo: action.sequence ||
|
|
49
|
-
requiredFieldMapping: (
|
|
44
|
+
inquiryTreeRuleId: action.inquiryTreeRuleId,
|
|
45
|
+
jsonLogic: action.jsonLogic,
|
|
46
|
+
propertyIsCustomMapping: action.propertyIsCustomMapping,
|
|
47
|
+
propertyMapping: action.propertyMapping,
|
|
48
|
+
sequenceNo: String(action.sequence || 1),
|
|
49
|
+
requiredFieldMapping: (_a = action.parameters) === null || _a === void 0 ? void 0 : _a.requiredFieldMapping
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
52
|
/**
|
|
@@ -56,34 +56,36 @@ const tabsFor = (actions, sourceEntity, makeId) => actions
|
|
|
56
56
|
* - onto any other row: a new root.
|
|
57
57
|
*/
|
|
58
58
|
export const dropPageNode = (target, source, makeId) => {
|
|
59
|
-
var _a, _b, _c;
|
|
60
|
-
const sourceEntity =
|
|
59
|
+
var _a, _b, _c, _d, _e;
|
|
60
|
+
const sourceEntity = (_a = nodeEntityName(source)) !== null && _a !== void 0 ? _a : '';
|
|
61
61
|
const actions = loadPageActions(target);
|
|
62
|
-
if (!actions.some((action) => action.dragEntityName
|
|
62
|
+
if (!actions.some((action) => isDragEntity(action.dragEntityName, sourceEntity))) {
|
|
63
63
|
return null;
|
|
64
64
|
}
|
|
65
65
|
if (isDroppedPageNode(target)) {
|
|
66
66
|
const properties = target.properties;
|
|
67
|
-
const seen = (
|
|
67
|
+
const seen = (_b = properties['existingPageLoadEntities']) !== null && _b !== void 0 ? _b : [];
|
|
68
68
|
const isNewEntity = !seen.includes(sourceEntity);
|
|
69
|
+
const tabs = (_c = properties['tabs']) !== null && _c !== void 0 ? _c : [];
|
|
69
70
|
const label = typeof properties['nodeLabel'] === 'string' ? properties['nodeLabel'] : '';
|
|
70
71
|
const sourceName = getSanitizedName(sourceEntity);
|
|
71
72
|
return Object.assign(Object.assign({}, target), { inquiryParams: [
|
|
72
|
-
...((
|
|
73
|
+
...((_d = target['inquiryParams']) !== null && _d !== void 0 ? _d : []),
|
|
73
74
|
source.nodeObj
|
|
74
75
|
], properties: Object.assign(Object.assign(Object.assign({}, properties), { nodeLabel: label.includes(sourceName) ? label : `${label}/${sourceName}` }), (isNewEntity
|
|
75
76
|
? {
|
|
76
77
|
existingPageLoadEntities: [...seen, sourceEntity],
|
|
77
78
|
tabs: [
|
|
78
|
-
...
|
|
79
|
-
...tabsFor(actions, sourceEntity,
|
|
79
|
+
...tabs,
|
|
80
|
+
...tabsFor(actions, sourceEntity, String(target.id), tabs.length)
|
|
80
81
|
]
|
|
81
82
|
}
|
|
82
83
|
: null)) });
|
|
83
84
|
}
|
|
84
|
-
const targetEntity =
|
|
85
|
+
const targetEntity = (_e = nodeEntityName(target)) !== null && _e !== void 0 ? _e : '';
|
|
86
|
+
const id = makeId();
|
|
85
87
|
return {
|
|
86
|
-
id
|
|
88
|
+
id,
|
|
87
89
|
parentId: null,
|
|
88
90
|
isExpanded: true,
|
|
89
91
|
children: [],
|
|
@@ -93,7 +95,7 @@ export const dropPageNode = (target, source, makeId) => {
|
|
|
93
95
|
nodeLabel: targetEntity === sourceEntity
|
|
94
96
|
? pluralize(getSanitizedName(targetEntity))
|
|
95
97
|
: `${getSanitizedName(targetEntity)}/${getSanitizedName(sourceEntity)}`,
|
|
96
|
-
tabs: tabsFor(actions, sourceEntity,
|
|
98
|
+
tabs: tabsFor(actions, sourceEntity, id, 0),
|
|
97
99
|
searchValue: '',
|
|
98
100
|
nodeSubLabel: null,
|
|
99
101
|
defaultPageHeaderExpanded: 'hidden',
|
|
@@ -110,4 +112,29 @@ export const dropPageNode = (target, source, makeId) => {
|
|
|
110
112
|
}
|
|
111
113
|
};
|
|
112
114
|
};
|
|
115
|
+
/** The part of a dragged row a drop reads: its entity and its record. */
|
|
116
|
+
export const asDrop = (source) => ({
|
|
117
|
+
id: source.id,
|
|
118
|
+
nodeObj: source.nodeObj,
|
|
119
|
+
properties: { catalogReturnObject: nodeEntityName(source) }
|
|
120
|
+
});
|
|
121
|
+
/**
|
|
122
|
+
* Replay a page's drops against the CURRENT config level of its target. Null
|
|
123
|
+
* when that level is gone or no longer configures a page for the first drop.
|
|
124
|
+
* The root keeps its id, so the selection and the tabs survive the rebuild.
|
|
125
|
+
*/
|
|
126
|
+
export const rebuildDroppedPage = (source, findLevel) => {
|
|
127
|
+
var _a;
|
|
128
|
+
const level = findLevel(source.targetLevelId);
|
|
129
|
+
const [first, ...rest] = source.drops;
|
|
130
|
+
if (!level || !first)
|
|
131
|
+
return null;
|
|
132
|
+
let page = dropPageNode(Object.assign(Object.assign({}, level), { nodeObj: source.targetRecord }), first, () => source.id);
|
|
133
|
+
for (const drop of rest) {
|
|
134
|
+
if (!page)
|
|
135
|
+
break;
|
|
136
|
+
page = (_a = dropPageNode(page, drop, () => source.id)) !== null && _a !== void 0 ? _a : page;
|
|
137
|
+
}
|
|
138
|
+
return page;
|
|
139
|
+
};
|
|
113
140
|
//# sourceMappingURL=droppedPageModel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"droppedPageModel.js","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/droppedPageModel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EACL,eAAe,EACf,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"droppedPageModel.js","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/droppedPageModel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EACL,eAAe,EACf,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,YAAY,EACZ,cAAc,EAEf,MAAM,yCAAyC,CAAC;AACjD,OAAO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gBAAgB;aAC7B;YACD,WAAW,EAAE,OAAO;YACpB,CAAC,YAAY,CAAC,EAAE,IAAI;YACpB,wBAAwB,EAAE,CAAC,YAAY,CAAC;SACzC;KACF,CAAC;AAAA,CACH,CAAC;AAiBF,yEAAyE;AACzE,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,MAAmB,EAAe,EAAE,CAAC,CAAC;IAC3D,EAAE,EAAE,MAAM,CAAC,EAAE;IACb,OAAO,EAAE,MAAM,CAAC,OAAO;IACvB,UAAU,EAAE,EAAE,mBAAmB,EAAE,cAAc,CAAC,MAAM,CAAC,EAAE;CAC5D,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,MAAyB,EACzB,SAA6C,EACzB,EAAE,CAAC;;IACvB,MAAM,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAC9C,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC;IACtC,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IAClC,IAAI,IAAI,GAAG,YAAY,iCAChB,KAAK,KAAE,OAAO,EAAE,MAAM,CAAC,YAAY,KACxC,KAAK,EACL,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,CAChB,CAAC;IACF,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE,CAAC;QACxB,IAAI,CAAC,IAAI;YAAE,MAAM;QACjB,IAAI,SAAG,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,mCAAI,IAAI,CAAC;IAC3D,CAAC;IACD,OAAO,IAAI,CAAC;AAAA,CACb,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { NodeActionEnums, NodeActionTriggerEnums } from "../../../enums/unitySystemEnums.mjs";
|
|
2
2
|
import { pluralize } from "../../../utilities/input/StringUtilities.mjs";
|
|
3
3
|
import { getSanitizedName } from "../../../domain/inquiryTree/legalChildren.mjs";
|
|
4
|
+
import { isDragEntity, nodeEntityName } from "../../../domain/inquiryTree/displayTree.mjs";
|
|
4
5
|
//#region src/inquiry/v2/tree/droppedPageModel.ts
|
|
5
6
|
/**
|
|
6
7
|
* Load_Inquiry_Page drops — v1's dropped-page menu root
|
|
@@ -19,21 +20,21 @@ import { getSanitizedName } from "../../../domain/inquiryTree/legalChildren.mjs"
|
|
|
19
20
|
const DROPPED_FLAG = "isDroppedLoadedPageNode";
|
|
20
21
|
/** A root built by a page drop (never a record the tree loaded). */
|
|
21
22
|
const isDroppedPageNode = (node) => !!node?.properties?.[DROPPED_FLAG];
|
|
22
|
-
const entityOf = (node) => {
|
|
23
|
-
const entity = node.properties?.["catalogReturnObject"];
|
|
24
|
-
return typeof entity === "string" ? entity : "";
|
|
25
|
-
};
|
|
26
23
|
const loadPageActions = (node) => (node.properties?.["nodeActions"] ?? []).filter((action) => action?.triggerType === NodeActionTriggerEnums.On_Node_Drop && action?.actionTypeId === NodeActionEnums.Load_Inquiry_Page);
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
/**
|
|
25
|
+
* v1's tab object, in the shape the node view reads (`sequenceNo` orders it).
|
|
26
|
+
* A tab's id is its root's id plus its position, so rebuilding the same drops
|
|
27
|
+
* gives the same tabs — the record pane keeps the tab the user had open.
|
|
28
|
+
*/
|
|
29
|
+
const tabsFor = (actions, sourceEntity, rootId, existingTabs) => actions.filter((action) => isDragEntity(action.dragEntityName, sourceEntity)).map((action, index) => ({
|
|
30
|
+
id: `${rootId}:tab-${existingTabs + index}`,
|
|
30
31
|
page: action.page ?? null,
|
|
31
|
-
inquiryTreeRuleId: action.inquiryTreeRuleId
|
|
32
|
-
jsonLogic: action.jsonLogic
|
|
33
|
-
propertyIsCustomMapping: action.propertyIsCustomMapping
|
|
34
|
-
propertyMapping: action.propertyMapping
|
|
35
|
-
sequenceNo: action.sequence ||
|
|
36
|
-
requiredFieldMapping: action.parameters?.requiredFieldMapping
|
|
32
|
+
inquiryTreeRuleId: action.inquiryTreeRuleId,
|
|
33
|
+
jsonLogic: action.jsonLogic,
|
|
34
|
+
propertyIsCustomMapping: action.propertyIsCustomMapping,
|
|
35
|
+
propertyMapping: action.propertyMapping,
|
|
36
|
+
sequenceNo: String(action.sequence || 1),
|
|
37
|
+
requiredFieldMapping: action.parameters?.requiredFieldMapping
|
|
37
38
|
}));
|
|
38
39
|
/**
|
|
39
40
|
* What a drop of `source` onto `target` loads as a page root, or null when the
|
|
@@ -42,13 +43,14 @@ const tabsFor = (actions, sourceEntity, makeId) => actions.filter((action) => ac
|
|
|
42
43
|
* - onto any other row: a new root.
|
|
43
44
|
*/
|
|
44
45
|
const dropPageNode = (target, source, makeId) => {
|
|
45
|
-
const sourceEntity =
|
|
46
|
+
const sourceEntity = nodeEntityName(source) ?? "";
|
|
46
47
|
const actions = loadPageActions(target);
|
|
47
|
-
if (!actions.some((action) => action.dragEntityName
|
|
48
|
+
if (!actions.some((action) => isDragEntity(action.dragEntityName, sourceEntity))) return null;
|
|
48
49
|
if (isDroppedPageNode(target)) {
|
|
49
50
|
const properties = target.properties;
|
|
50
51
|
const seen = properties["existingPageLoadEntities"] ?? [];
|
|
51
52
|
const isNewEntity = !seen.includes(sourceEntity);
|
|
53
|
+
const tabs = properties["tabs"] ?? [];
|
|
52
54
|
const label = typeof properties["nodeLabel"] === "string" ? properties["nodeLabel"] : "";
|
|
53
55
|
const sourceName = getSanitizedName(sourceEntity);
|
|
54
56
|
return {
|
|
@@ -59,14 +61,15 @@ const dropPageNode = (target, source, makeId) => {
|
|
|
59
61
|
nodeLabel: label.includes(sourceName) ? label : `${label}/${sourceName}`,
|
|
60
62
|
...isNewEntity ? {
|
|
61
63
|
existingPageLoadEntities: [...seen, sourceEntity],
|
|
62
|
-
tabs: [...
|
|
64
|
+
tabs: [...tabs, ...tabsFor(actions, sourceEntity, String(target.id), tabs.length)]
|
|
63
65
|
} : null
|
|
64
66
|
}
|
|
65
67
|
};
|
|
66
68
|
}
|
|
67
|
-
const targetEntity =
|
|
69
|
+
const targetEntity = nodeEntityName(target) ?? "";
|
|
70
|
+
const id = makeId();
|
|
68
71
|
return {
|
|
69
|
-
id
|
|
72
|
+
id,
|
|
70
73
|
parentId: null,
|
|
71
74
|
isExpanded: true,
|
|
72
75
|
children: [],
|
|
@@ -74,7 +77,7 @@ const dropPageNode = (target, source, makeId) => {
|
|
|
74
77
|
inquiryParams: [target.nodeObj, source.nodeObj],
|
|
75
78
|
properties: {
|
|
76
79
|
nodeLabel: targetEntity === sourceEntity ? pluralize(getSanitizedName(targetEntity)) : `${getSanitizedName(targetEntity)}/${getSanitizedName(sourceEntity)}`,
|
|
77
|
-
tabs: tabsFor(actions, sourceEntity,
|
|
80
|
+
tabs: tabsFor(actions, sourceEntity, id, 0),
|
|
78
81
|
searchValue: "",
|
|
79
82
|
nodeSubLabel: null,
|
|
80
83
|
defaultPageHeaderExpanded: "hidden",
|
|
@@ -91,7 +94,32 @@ const dropPageNode = (target, source, makeId) => {
|
|
|
91
94
|
}
|
|
92
95
|
};
|
|
93
96
|
};
|
|
97
|
+
/** The part of a dragged row a drop reads: its entity and its record. */
|
|
98
|
+
const asDrop = (source) => ({
|
|
99
|
+
id: source.id,
|
|
100
|
+
nodeObj: source.nodeObj,
|
|
101
|
+
properties: { catalogReturnObject: nodeEntityName(source) }
|
|
102
|
+
});
|
|
103
|
+
/**
|
|
104
|
+
* Replay a page's drops against the CURRENT config level of its target. Null
|
|
105
|
+
* when that level is gone or no longer configures a page for the first drop.
|
|
106
|
+
* The root keeps its id, so the selection and the tabs survive the rebuild.
|
|
107
|
+
*/
|
|
108
|
+
const rebuildDroppedPage = (source, findLevel) => {
|
|
109
|
+
const level = findLevel(source.targetLevelId);
|
|
110
|
+
const [first, ...rest] = source.drops;
|
|
111
|
+
if (!level || !first) return null;
|
|
112
|
+
let page = dropPageNode({
|
|
113
|
+
...level,
|
|
114
|
+
nodeObj: source.targetRecord
|
|
115
|
+
}, first, () => source.id);
|
|
116
|
+
for (const drop of rest) {
|
|
117
|
+
if (!page) break;
|
|
118
|
+
page = dropPageNode(page, drop, () => source.id) ?? page;
|
|
119
|
+
}
|
|
120
|
+
return page;
|
|
121
|
+
};
|
|
94
122
|
//#endregion
|
|
95
|
-
export { dropPageNode, isDroppedPageNode };
|
|
123
|
+
export { asDrop, dropPageNode, isDroppedPageNode, rebuildDroppedPage };
|
|
96
124
|
|
|
97
125
|
//# sourceMappingURL=droppedPageModel.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"droppedPageModel.mjs","names":["NodeActionEnums","NodeActionTriggerEnums","DisplayNode","getSanitizedName","pluralize","LoadPageAction","triggerType","actionTypeId","dragEntityName","page","pageId","name","sequence","inquiryTreeRuleId","jsonLogic","propertyIsCustomMapping","propertyMapping","parameters","requiredFieldMapping","Record","DROPPED_FLAG","isDroppedPageNode","node","properties","entityOf","entity","loadPageActions","filter","action","On_Node_Drop","Load_Inquiry_Page","tabsFor","actions","sourceEntity","makeId","map","id","sequenceNo","dropPageNode","target","source","some","seen","isNewEntity","includes","label","sourceName","inquiryParams","nodeObj","nodeLabel","existingPageLoadEntities","tabs","targetEntity","parentId","isExpanded","children","searchValue","nodeSubLabel","defaultPageHeaderExpanded","defaultNodeHeaderExpanded","defaultIcon","color","type","fluentName","nodeActions"],"sources":["../../../../src/inquiry/v2/tree/droppedPageModel.ts"],"sourcesContent":["/**\n * Load_Inquiry_Page drops — v1's dropped-page menu root\n * (InquiryContainer.jsx constructMenuItemForDroppedNode + loadPageForDroppedNode).\n *\n * Dropping a record onto a row whose level configures an On_Node_Drop\n * Load_Inquiry_Page action for the dragged entity builds a CLIENT-SIDE root:\n * no query behind it, one tab per matching action's page, and the pair it was\n * made from riding along as `inquiryParams` ([target, …sources]) for those\n * pages to bind to. Dropping another record onto that root adds it: its record\n * joins `inquiryParams`, and an entity the root has not seen yet adds its tabs\n * and its name to the label.\n *\n * Pure so the first-drop and repeat-drop rules are testable without a tree.\n */\nimport {\n NodeActionEnums,\n NodeActionTriggerEnums\n} from '../../../enums/unitySystemEnums';\nimport type { DisplayNode } from '../../../domain/inquiryTree/displayTree';\nimport { getSanitizedName } from '../../../domain/inquiryTree/legalChildren';\nimport { pluralize } from '../../../utilities/input/StringUtilities';\n\n/** A drop action as it rides `properties.nodeActions` on the wire. */\ninterface LoadPageAction {\n triggerType?: NodeActionTriggerEnums;\n actionTypeId?: NodeActionEnums;\n dragEntityName?: string;\n page?: { pageId?: string | null; name?: string | null } | null;\n sequence?: number | string | null;\n inquiryTreeRuleId?: string | null;\n jsonLogic?: unknown;\n propertyIsCustomMapping?: unknown;\n propertyMapping?: unknown;\n parameters?: { requiredFieldMapping?: Record<string, unknown> | null } | null;\n}\n\nconst DROPPED_FLAG = 'isDroppedLoadedPageNode';\n\n/** A root built by a page drop (never a record the tree loaded). */\nexport const isDroppedPageNode = (\n node: DisplayNode | null | undefined\n): boolean => !!node?.properties?.[DROPPED_FLAG];\n\nconst entityOf = (node: DisplayNode): string => {\n const entity = node.properties?.['catalogReturnObject'];\n return typeof entity === 'string' ? entity : '';\n};\n\nconst loadPageActions = (node: DisplayNode): LoadPageAction[] =>\n ((node.properties?.['nodeActions'] as LoadPageAction[] | undefined) ?? []).filter(\n (action) =>\n action?.triggerType === NodeActionTriggerEnums.On_Node_Drop &&\n action?.actionTypeId === NodeActionEnums.Load_Inquiry_Page\n );\n\n/** v1's tab object, in the shape the node view reads (`sequenceNo` orders it). */\nconst tabsFor = (\n actions: LoadPageAction[],\n sourceEntity: string,\n makeId: () => string\n): Record<string, unknown>[] =>\n actions\n .filter((action) => action.dragEntityName === sourceEntity)\n .map((action) => ({\n id: makeId(),\n page: action.page ?? null,\n inquiryTreeRuleId: action.inquiryTreeRuleId || '',\n jsonLogic: action.jsonLogic || null,\n propertyIsCustomMapping: action.propertyIsCustomMapping || '',\n propertyMapping: action.propertyMapping || '',\n sequenceNo: action.sequence || '1',\n requiredFieldMapping: action.parameters?.requiredFieldMapping || null\n }));\n\n/**\n * What a drop of `source` onto `target` loads as a page root, or null when the\n * target configures no page for the dragged entity.\n * - onto a dropped-page root: that root, extended (same id);\n * - onto any other row: a new root.\n */\nexport const dropPageNode = (\n target: DisplayNode,\n source: DisplayNode,\n makeId: () => string\n): DisplayNode | null => {\n const sourceEntity = entityOf(source);\n const actions = loadPageActions(target);\n if (!actions.some((action) => action.dragEntityName === sourceEntity)) {\n return null;\n }\n\n if (isDroppedPageNode(target)) {\n const properties = target.properties;\n const seen = (properties['existingPageLoadEntities'] as string[]) ?? [];\n const isNewEntity = !seen.includes(sourceEntity);\n const label =\n typeof properties['nodeLabel'] === 'string' ? properties['nodeLabel'] : '';\n const sourceName = getSanitizedName(sourceEntity);\n return {\n ...target,\n inquiryParams: [\n ...((target['inquiryParams'] as unknown[]) ?? []),\n source.nodeObj\n ],\n properties: {\n ...properties,\n nodeLabel: label.includes(sourceName) ? label : `${label}/${sourceName}`,\n ...(isNewEntity\n ? {\n existingPageLoadEntities: [...seen, sourceEntity],\n tabs: [\n ...((properties['tabs'] as unknown[]) ?? []),\n ...tabsFor(actions, sourceEntity, makeId)\n ]\n }\n : null)\n }\n };\n }\n\n const targetEntity = entityOf(target);\n return {\n id: makeId(),\n parentId: null,\n isExpanded: true,\n children: [],\n nodeObj: target.nodeObj,\n inquiryParams: [target.nodeObj, source.nodeObj],\n properties: {\n nodeLabel:\n targetEntity === sourceEntity\n ? pluralize(getSanitizedName(targetEntity))\n : `${getSanitizedName(targetEntity)}/${getSanitizedName(sourceEntity)}`,\n tabs: tabsFor(actions, sourceEntity, makeId),\n searchValue: '',\n nodeSubLabel: null,\n defaultPageHeaderExpanded: 'hidden',\n defaultNodeHeaderExpanded: 'hidden',\n defaultIcon: {\n color: null,\n name: 'BranchCompareIcon',\n type: null,\n fluentName: 'branch-compare'\n },\n nodeActions: actions,\n [DROPPED_FLAG]: true,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ACjD,SAAO;GACL,GAAGM;GACHQ,eAAe,CACb,GAAKR,OAAO,oBAAkC,EAAE,EAChDC,OAAOQ,QACR;GACDzB,YAAY;IACV,GAAGA;IACH0B,WAAWJ,MAAMD,SAASE,WAAW,GAAGD,QAAQ,GAAGA,MAAK,GAAIC;IAC5D,GAAIH,cACA;KACEO,0BAA0B,CAAC,GAAGR,MAAMT,aAAa;KACjDkB,MAAM,CACJ,GAAK5B,WAAW,WAAyB,EAAE,EAC3C,GAAGQ,QAAQC,SAASC,cAAcC,OAAO,CAAA;KAE5C,GACD;IACN;GACD;;CAGH,MAAMkB,eAAe5B,SAASe,OAAO;AACrC,QAAO;EACLH,IAAIF,QAAQ;EACZmB,UAAU;EACVC,YAAY;EACZC,UAAU,EAAE;EACZP,SAAST,OAAOS;EAChBD,eAAe,CAACR,OAAOS,SAASR,OAAOQ,QAAQ;EAC/CzB,YAAY;GACV0B,WACEG,iBAAiBnB,eACb7B,UAAUD,iBAAiBiD,aAAa,CAAC,GACzC,GAAGjD,iBAAiBiD,aAAa,CAAA,GAAIjD,iBAAiB8B,aAAa;GACzEkB,MAAMpB,QAAQC,SAASC,cAAcC,OAAO;GAC5CsB,aAAa;GACbC,cAAc;GACdC,2BAA2B;GAC3BC,2BAA2B;GAC3BC,aAAa;IACXC,OAAO;IACPlD,MAAM;IACNmD,MAAM;IACNC,YAAY;IACb;GACDC,aAAahC;IACZZ,eAAe;GAChB8B,0BAA0B,CAACjB,aAAY;GACzC;EACD"}
|
|
1
|
+
{"version":3,"file":"droppedPageModel.mjs","names":["NodeActionEnums","NodeActionTriggerEnums","isDragEntity","nodeEntityName","DisplayNode","getSanitizedName","NodeAction","NodeTab","pluralize","DROPPED_FLAG","isDroppedPageNode","node","properties","loadPageActions","filter","action","triggerType","On_Node_Drop","actionTypeId","Load_Inquiry_Page","tabsFor","actions","sourceEntity","rootId","existingTabs","dragEntityName","map","index","id","page","inquiryTreeRuleId","jsonLogic","propertyIsCustomMapping","propertyMapping","sequenceNo","String","sequence","requiredFieldMapping","parameters","dropPageNode","target","source","makeId","some","seen","isNewEntity","includes","tabs","label","sourceName","inquiryParams","nodeObj","nodeLabel","existingPageLoadEntities","length","targetEntity","parentId","isExpanded","children","searchValue","nodeSubLabel","defaultPageHeaderExpanded","defaultNodeHeaderExpanded","defaultIcon","color","name","type","fluentName","nodeActions","DroppedPageSource","targetLevelId","targetRecord","Record","drops","asDrop","catalogReturnObject","rebuildDroppedPage","findLevel","level","first","rest","drop"],"sources":["../../../../src/inquiry/v2/tree/droppedPageModel.ts"],"sourcesContent":["/**\n * Load_Inquiry_Page drops — v1's dropped-page menu root\n * (InquiryContainer.jsx constructMenuItemForDroppedNode + loadPageForDroppedNode).\n *\n * Dropping a record onto a row whose level configures an On_Node_Drop\n * Load_Inquiry_Page action for the dragged entity builds a CLIENT-SIDE root:\n * no query behind it, one tab per matching action's page, and the pair it was\n * made from riding along as `inquiryParams` ([target, …sources]) for those\n * pages to bind to. Dropping another record onto that root adds it: its record\n * joins `inquiryParams`, and an entity the root has not seen yet adds its tabs\n * and its name to the label.\n *\n * Pure so the first-drop and repeat-drop rules are testable without a tree.\n */\nimport {\n NodeActionEnums,\n NodeActionTriggerEnums\n} from '../../../enums/unitySystemEnums';\nimport {\n isDragEntity,\n nodeEntityName,\n type DisplayNode\n} from '../../../domain/inquiryTree/displayTree';\nimport { getSanitizedName } from '../../../domain/inquiryTree/legalChildren';\nimport type { NodeAction, NodeTab } from '../../../domain/inquiryTree/types';\nimport { pluralize } from '../../../utilities/input/StringUtilities';\n\nconst DROPPED_FLAG = 'isDroppedLoadedPageNode';\n\n/** A root built by a page drop (never a record the tree loaded). */\nexport const isDroppedPageNode = (\n node: DisplayNode | null | undefined\n): boolean => !!node?.properties?.[DROPPED_FLAG];\n\nconst loadPageActions = (node: DisplayNode): NodeAction[] =>\n ((node.properties?.['nodeActions'] as NodeAction[] | undefined) ?? []).filter(\n (action) =>\n action?.triggerType === NodeActionTriggerEnums.On_Node_Drop &&\n action?.actionTypeId === NodeActionEnums.Load_Inquiry_Page\n );\n\n/**\n * v1's tab object, in the shape the node view reads (`sequenceNo` orders it).\n * A tab's id is its root's id plus its position, so rebuilding the same drops\n * gives the same tabs — the record pane keeps the tab the user had open.\n */\nconst tabsFor = (\n actions: NodeAction[],\n sourceEntity: string,\n rootId: string,\n existingTabs: number\n): NodeTab[] =>\n actions\n .filter((action) => isDragEntity(action.dragEntityName, sourceEntity))\n .map((action, index) => ({\n id: `${rootId}:tab-${existingTabs + index}`,\n page: action.page ?? null,\n inquiryTreeRuleId: action.inquiryTreeRuleId,\n jsonLogic: action.jsonLogic,\n propertyIsCustomMapping: action.propertyIsCustomMapping,\n propertyMapping: action.propertyMapping,\n sequenceNo: String(action.sequence || 1),\n requiredFieldMapping: action.parameters?.requiredFieldMapping\n }));\n\n/**\n * What a drop of `source` onto `target` loads as a page root, or null when the\n * target configures no page for the dragged entity.\n * - onto a dropped-page root: that root, extended (same id);\n * - onto any other row: a new root.\n */\nexport const dropPageNode = (\n target: DisplayNode,\n source: DisplayNode,\n makeId: () => string\n): DisplayNode | null => {\n const sourceEntity = nodeEntityName(source) ?? '';\n const actions = loadPageActions(target);\n if (!actions.some((action) => isDragEntity(action.dragEntityName, sourceEntity))) {\n return null;\n }\n\n if (isDroppedPageNode(target)) {\n const properties = target.properties;\n const seen = (properties['existingPageLoadEntities'] as string[]) ?? [];\n const isNewEntity = !seen.includes(sourceEntity);\n const tabs = (properties['tabs'] as unknown[]) ?? [];\n const label =\n typeof properties['nodeLabel'] === 'string' ? properties['nodeLabel'] : '';\n const sourceName = getSanitizedName(sourceEntity);\n return {\n ...target,\n inquiryParams: [\n ...((target['inquiryParams'] as unknown[]) ?? []),\n source.nodeObj\n ],\n properties: {\n ...properties,\n nodeLabel: label.includes(sourceName) ? label : `${label}/${sourceName}`,\n ...(isNewEntity\n ? {\n existingPageLoadEntities: [...seen, sourceEntity],\n tabs: [\n ...tabs,\n ...tabsFor(actions, sourceEntity, String(target.id), tabs.length)\n ]\n }\n : null)\n }\n };\n }\n\n const targetEntity = nodeEntityName(target) ?? '';\n const id = makeId();\n return {\n id,\n parentId: null,\n isExpanded: true,\n children: [],\n nodeObj: target.nodeObj,\n inquiryParams: [target.nodeObj, source.nodeObj],\n properties: {\n nodeLabel:\n targetEntity === sourceEntity\n ? pluralize(getSanitizedName(targetEntity))\n : `${getSanitizedName(targetEntity)}/${getSanitizedName(sourceEntity)}`,\n tabs: tabsFor(actions, sourceEntity, id, 0),\n searchValue: '',\n nodeSubLabel: null,\n defaultPageHeaderExpanded: 'hidden',\n defaultNodeHeaderExpanded: 'hidden',\n defaultIcon: {\n color: null,\n name: 'BranchCompareIcon',\n type: null,\n fluentName: 'branch-compare'\n },\n nodeActions: actions,\n [DROPPED_FLAG]: true,\n existingPageLoadEntities: [sourceEntity]\n }\n };\n};\n\n/**\n * What a dropped page is MADE FROM: the record it was first dropped onto (by\n * its config level) and every record dropped since, in order. The menu keeps\n * this, not the built node, so a config change — the Tree Builder preview\n * editing the target level's drop actions — rebuilds the page against the new\n * config instead of carrying a stale one.\n */\nexport interface DroppedPageSource {\n id: string;\n targetLevelId: string;\n targetRecord: Record<string, unknown> | undefined;\n /** Each dropped record, as the entity and record a drop needs. */\n drops: DisplayNode[];\n}\n\n/** The part of a dragged row a drop reads: its entity and its record. */\nexport const asDrop = (source: DisplayNode): DisplayNode => ({\n id: source.id,\n nodeObj: source.nodeObj,\n properties: { catalogReturnObject: nodeEntityName(source) }\n});\n\n/**\n * Replay a page's drops against the CURRENT config level of its target. Null\n * when that level is gone or no longer configures a page for the first drop.\n * The root keeps its id, so the selection and the tabs survive the rebuild.\n */\nexport const rebuildDroppedPage = (\n source: DroppedPageSource,\n findLevel: (id: string) => DisplayNode | null\n): DisplayNode | null => {\n const level = findLevel(source.targetLevelId);\n const [first, ...rest] = source.drops;\n if (!level || !first) return null;\n let page = dropPageNode(\n { ...level, nodeObj: source.targetRecord },\n first,\n () => source.id\n );\n for (const drop of rest) {\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C,OAAOgC;AAChC,KAAI,CAACK,SAAS,CAACC,MAAO,QAAO;CAC7B,IAAIlD,OAAOU,aACT;EAAE,GAAGuC;EAAO3B,SAASV,OAAO8B;EAAc,EAC1CQ,aACMtC,OAAOb,GACd;AACD,MAAK,MAAMqD,QAAQD,MAAM;AACvB,MAAI,CAACnD,KAAM;AACXA,SAAOU,aAAaV,MAAMoD,YAAYxC,OAAOb,GAAG,IAAIC;;AAEtD,QAAOA"}
|
|
@@ -30,27 +30,22 @@ export declare const resolveTreeItemIcon: (node: any) => {
|
|
|
30
30
|
color: any;
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
|
-
* The row's icon
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* folder/document fallback), so rows are never blank, and the glyph keeps
|
|
37
|
-
* its exact configured hex color.
|
|
33
|
+
* The row's icon for UdpTree's `itemIcon`: the plain glyph, in its exact
|
|
34
|
+
* configured hex color. Every row gets one (typed folder/document fallback), so
|
|
35
|
+
* rows are never blank.
|
|
38
36
|
*
|
|
39
37
|
* The caller picks the glyph size — 'xs' (16px) for the compact view, 'sm'
|
|
40
|
-
* (20px) for the classic view
|
|
41
|
-
* 28px respectively).
|
|
38
|
+
* (20px) for the classic view.
|
|
42
39
|
*/
|
|
43
|
-
export declare const
|
|
40
|
+
export declare const resolveTreeRowIcon: (node: any, size?: string) => {
|
|
44
41
|
name: string;
|
|
45
42
|
color: any;
|
|
46
|
-
chip: boolean;
|
|
47
43
|
size: string;
|
|
48
44
|
};
|
|
49
45
|
/**
|
|
50
46
|
* Conditional adornment as a badge descriptor (icon-only ghost badge) for
|
|
51
|
-
* UdpTree's `itemBadge
|
|
52
|
-
*
|
|
53
|
-
* approximated — acceptable under the fluent-only icon decision.
|
|
47
|
+
* UdpTree's `itemBadge`, in the palette colour nearest the configured hex
|
|
48
|
+
* (badgeColorForHex) — legacy rendered the exact hex.
|
|
54
49
|
*/
|
|
55
50
|
export declare const resolveTreeItemAdornmentBadge: (node: any) => {
|
|
56
51
|
appearance: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeMenuVisuals.d.ts","sourceRoot":"","sources":["../../../../../src/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"treeMenuVisuals.d.ts","sourceRoot":"","sources":["../../../../../src/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAGpE,4DAA4D;AAC5D,OAAO,EAAE,eAAe,IAAI,eAAe,EAAE,CAAC;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,sCAI5B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;CA8B/B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB;;;;CAO9B,CAAC;AA6BF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;;;;CAczC,CAAC"}
|