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
|
@@ -44,63 +44,20 @@ const businessObjectKeysIn = (list) => {
|
|
|
44
44
|
* Carry the user's workspace onto a fresh build of the seeded page.
|
|
45
45
|
*
|
|
46
46
|
* `loadedRoots` are the roots the user brought in themselves (+ Load, a deep
|
|
47
|
-
* link, a widget's loadInquiryNode)
|
|
48
|
-
*
|
|
49
|
-
*
|
|
47
|
+
* link, a widget's loadInquiryNode), already recomposed against the current
|
|
48
|
+
* config by the caller — the refetched page has no reason to contain them, so
|
|
49
|
+
* they are re-appended, in load order, minus any the page now carries on its
|
|
50
|
+
* own. A SEEDED root that vanished from the refetch is not
|
|
50
51
|
* re-added: it is gone because the record is gone, and that is the refresh
|
|
51
52
|
* working.
|
|
52
53
|
*
|
|
53
|
-
* `droppedPages` are the page roots Load_Inquiry_Page drops built
|
|
54
|
-
* (droppedPageModel) — no query owns them
|
|
55
|
-
* own menu at the top, where the drop put it.
|
|
54
|
+
* `droppedPages` are the page roots Load_Inquiry_Page drops built, rebuilt
|
|
55
|
+
* from their drops (droppedPageModel.rebuildDroppedPage) — no query owns them
|
|
56
|
+
* either, so each comes back as its own menu at the top, where the drop put it.
|
|
56
57
|
*
|
|
57
58
|
* Expansion is replayed last so the carried-over roots — which already hold
|
|
58
59
|
* their own state — and the rebuilt rows settle from one snapshot.
|
|
59
60
|
*/
|
|
60
|
-
/**
|
|
61
|
-
* Swap the RECORD behind rows the menu already holds — the half of a refresh a
|
|
62
|
-
* rebuild cannot reach.
|
|
63
|
-
*
|
|
64
|
-
* A lazily expanded level's rows are grafted into menu STATE. No query observes
|
|
65
|
-
* them, so invalidating the child-batch cache refetches nothing and the row goes
|
|
66
|
-
* on showing the record it was built from: its label, its icon, the header stat
|
|
67
|
-
* beside it and the form it seeds all keep the value the user just changed. This
|
|
68
|
-
* walks the live menus and, for every record row a fresh row names by
|
|
69
|
-
* businessObjectKey, re-derives everything the RECORD determines — `enrich` runs
|
|
70
|
-
* the same composer the row was built with — while keeping everything the tree
|
|
71
|
-
* put around it: the display id the selection is held by, its children, its
|
|
72
|
-
* expansion and its paging.
|
|
73
|
-
*
|
|
74
|
-
* `list` comes back by reference when nothing matched, so a refresh over records
|
|
75
|
-
* this menu doesn't hold costs no re-render.
|
|
76
|
-
*/
|
|
77
|
-
const restampMenuRecords = (list, rows, enrich) => {
|
|
78
|
-
const rowsByKey = /* @__PURE__ */ new Map();
|
|
79
|
-
for (const row of rows) if (row?.businessObjectKey != null) rowsByKey.set(row.businessObjectKey, row);
|
|
80
|
-
if (!rowsByKey.size) return list;
|
|
81
|
-
let changed = false;
|
|
82
|
-
const restamp = (node) => {
|
|
83
|
-
const row = node.isGroupNode ? void 0 : rowsByKey.get(node.nodeObj?.businessObjectKey);
|
|
84
|
-
const children = node.children?.map(restamp);
|
|
85
|
-
const childrenChanged = !!children?.some((child, index) => child !== node.children?.[index]);
|
|
86
|
-
const fresh = row ? enrich(node, row) : null;
|
|
87
|
-
if (!fresh && !childrenChanged) return node;
|
|
88
|
-
changed = true;
|
|
89
|
-
return {
|
|
90
|
-
...node,
|
|
91
|
-
...childrenChanged ? { children } : null,
|
|
92
|
-
...fresh ? {
|
|
93
|
-
nodeObj: fresh.nodeObj,
|
|
94
|
-
properties: {
|
|
95
|
-
...node.properties,
|
|
96
|
-
...fresh.properties
|
|
97
|
-
}
|
|
98
|
-
} : null
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
const next = list.map((menu) => menu.map(restamp));
|
|
102
|
-
return changed ? next : list;
|
|
103
|
-
};
|
|
104
61
|
const preserveMenuWorkspace = ({ fresh, previous, loadedRoots, droppedPages = [] }) => {
|
|
105
62
|
const present = businessObjectKeysIn(fresh);
|
|
106
63
|
const carried = loadedRoots.filter((root) => {
|
|
@@ -114,6 +71,6 @@ const preserveMenuWorkspace = ({ fresh, previous, loadedRoots, droppedPages = []
|
|
|
114
71
|
return next;
|
|
115
72
|
};
|
|
116
73
|
//#endregion
|
|
117
|
-
export { preserveMenuWorkspace,
|
|
74
|
+
export { preserveMenuWorkspace, stableKeyOf };
|
|
118
75
|
|
|
119
76
|
//# sourceMappingURL=menuRebuildModel.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menuRebuildModel.mjs","names":["DisplayNode","MenuRoots","asKeyText","value","String","stableKeyOf","node","isGroupNode","properties","nodeObj","businessObjectKey","walkPaths","list","visit","path","descend","parentPath","children","forEach","child","menu","root","collectExpansion","Map","snapshot","set","isExpanded","applyExpansion","was","get","undefined","businessObjectKeysIn","Set","keys","add","restampMenuRecords","rows","Array","Record","enrich","row","rowsByKey","size","changed","restamp","map","childrenChanged","some","index","fresh","next","preserveMenuWorkspace","previous","loadedRoots","droppedPages","present","carried","filter","key","has","length","slice","page"],"sources":["../../../../src/inquiry/v2/tree/menuRebuildModel.ts"],"sourcesContent":["/**\n * What survives a MENU REBUILD — the pure half of the tree pane's refresh.\n *\n * The menu is rebuilt from the seed whenever the root-record page is refetched\n * (toolbar Refresh, a mutation's invalidation) or the catalog lands. A rebuild\n * mints fresh display ids for every row, so anything the user did to the tree\n * that isn't in the query's answer is lost unless it is carried across: the\n * records they loaded in on top of the page, and how far they had opened it.\n * v1 carried expansion the same way (expandedStateRef + restoreExpandedState);\n * this is that discipline, with the two v1 gaps closed.\n *\n * Lazy CHILDREN are deliberately not carried. A row that comes back expanded\n * and unloaded is auto-fetched by the tree menu itself\n * (InquiryFluentTreeMenu's collectPreExpandedLazyRows pass), so preserving\n * expansion reloads the branch with FRESH rows — which is the whole point of a\n * refresh. Grafting the old children over would have re-shown exactly the\n * stale data the user asked to replace.\n *\n * A rebuild only happens when the root page ANSWERS DIFFERENTLY, though, and a\n * mutation on a child record leaves the root rows byte-identical. `restampMenuRecords`\n * is the other half: it re-reads one record into the rows that already show it,\n * without disturbing anything around them.\n */\nimport type { DisplayNode } from '../../../domain/inquiryTree/displayTree';\n\n/** One menu = the roots it renders as depth-0 siblings. */\nexport type MenuRoots = DisplayNode[];\n\n/**\n * A row's identity ACROSS rebuilds — v1's getStableKey (record → its business\n * object key, group → its label), qualified by the path to it. v1 keyed flat,\n * so every parent's \"Assignments\" group shared one expansion bit and opening\n * one opened them all after a refresh; the path prefix is what separates them.\n */\nconst asKeyText = (value: unknown): string =>\n typeof value === 'string' || typeof value === 'number' ? String(value) : '';\n\nconst stableKeyOf = (node: DisplayNode): string =>\n node.isGroupNode\n ? `g:${asKeyText(node.properties?.['label'])}`\n : `k:${asKeyText(node.nodeObj?.businessObjectKey)}`;\n\nconst walkPaths = (\n list: MenuRoots[],\n visit: (node: DisplayNode, path: string) => void\n): void => {\n const descend = (node: DisplayNode, parentPath: string): void => {\n const path = `${parentPath}/${stableKeyOf(node)}`;\n visit(node, path);\n (node.children ?? []).forEach((child) => descend(child, path));\n };\n list.forEach((menu) => menu.forEach((root) => descend(root, '')));\n};\n\n/** Every row's `isExpanded`, keyed by its stable path. */\nexport const collectExpansion = (list: MenuRoots[]): Map<string, boolean> => {\n const snapshot = new Map<string, boolean>();\n walkPaths(list, (node, path) => snapshot.set(path, !!node.isExpanded));\n return snapshot;\n};\n\n/**\n * Replay a snapshot onto a freshly built list, in place. `isExpanded` is the\n * seed the tree menu reads, so this is the same lever expand-all and the\n * filter's expansion pull. Rows the snapshot doesn't know (records the refetch\n * added) keep their configured default.\n */\nexport const applyExpansion = (\n list: MenuRoots[],\n snapshot: Map<string, boolean>\n): void => {\n walkPaths(list, (node, path) => {\n const was = snapshot.get(path);\n if (was !== undefined) node.isExpanded = was;\n });\n};\n\nconst businessObjectKeysIn = (list: MenuRoots[]): Set<unknown> => {\n const keys = new Set<unknown>();\n walkPaths(list, (node) => {\n if (!node.isGroupNode && node.nodeObj?.businessObjectKey != null) {\n keys.add(node.nodeObj.businessObjectKey);\n }\n });\n return keys;\n};\n\n/**\n * Carry the user's workspace onto a fresh build of the seeded page.\n *\n * `loadedRoots` are the roots the user brought in themselves (+ Load, a deep\n * link, a widget's loadInquiryNode) — the refetched page has no reason to\n * contain them, so they are re-appended, in load order, minus any the page now\n * carries on its own. A SEEDED root that vanished from the refetch is not\n * re-added: it is gone because the record is gone, and that is the refresh\n * working.\n *\n * `droppedPages` are the page roots Load_Inquiry_Page drops built\n * (droppedPageModel) — no query owns them either, so each comes back as its\n * own menu at the top, where the drop put it.\n *\n * Expansion is replayed last so the carried-over roots — which already hold\n * their own state — and the rebuilt rows settle from one snapshot.\n */\n/**\n * Swap the RECORD behind rows the menu already holds — the half of a refresh a\n * rebuild cannot reach.\n *\n * A lazily expanded level's rows are grafted into menu STATE. No query observes\n * them, so invalidating the child-batch cache refetches nothing and the row goes\n * on showing the record it was built from: its label, its icon, the header stat\n * beside it and the form it seeds all keep the value the user just changed. This\n * walks the live menus and, for every record row a fresh row names by\n * businessObjectKey, re-derives everything the RECORD determines — `enrich` runs\n * the same composer the row was built with — while keeping everything the tree\n * put around it: the display id the selection is held by, its children, its\n * expansion and its paging.\n *\n * `list` comes back by reference when nothing matched, so a refresh over records\n * this menu doesn't hold costs no re-render.\n */\nexport const restampMenuRecords = (\n list: MenuRoots[],\n rows: Array<Record<string, unknown>>,\n enrich: (\n node: DisplayNode,\n row: Record<string, unknown>\n ) => DisplayNode | null\n): MenuRoots[] => {\n const rowsByKey = new Map<unknown, Record<string, unknown>>();\n for (const row of rows) {\n if (row?.businessObjectKey != null) {\n rowsByKey.set(row.businessObjectKey, row);\n }\n }\n if (!rowsByKey.size) return list;\n\n let changed = false;\n const restamp = (node: DisplayNode): DisplayNode => {\n const row = node.isGroupNode\n ? undefined\n : rowsByKey.get(node.nodeObj?.businessObjectKey);\n const children = node.children?.map(restamp);\n const childrenChanged = !!children?.some(\n (child, index) => child !== node.children?.[index]\n );\n const fresh = row ? enrich(node, row) : null;\n if (!fresh && !childrenChanged) return node;\n changed = true;\n return {\n ...node,\n ...(childrenChanged ? { children } : null),\n // The record's own derivations replace the row's: label, sub-label,\n // header title, conditional icon/adornment and search state are all\n // stamped from the row, and a partial swap would leave the row reading\n // half-old.\n ...(fresh\n ? {\n nodeObj: fresh.nodeObj,\n properties: { ...node.properties, ...fresh.properties }\n }\n : null)\n };\n };\n\n const next = list.map((menu) => menu.map(restamp));\n return changed ? next : list;\n};\n\nexport const preserveMenuWorkspace = ({\n fresh,\n previous,\n loadedRoots,\n droppedPages = []\n}: {\n fresh: MenuRoots[];\n previous: MenuRoots[];\n loadedRoots: MenuRoots;\n droppedPages?: MenuRoots;\n}): MenuRoots[] => {\n const present = businessObjectKeysIn(fresh);\n const carried = loadedRoots.filter((root) => {\n const key = root.nodeObj?.businessObjectKey;\n return key == null || !present.has(key);\n });\n\n let next = fresh;\n if (carried.length) {\n next = fresh.length\n ? [[...fresh[0], ...carried], ...fresh.slice(1)]\n : [carried];\n }\n if (droppedPages.length) {\n next = [...droppedPages.map((page) => [page]), ...next];\n }\n applyExpansion(next, collectExpansion(previous));\n return next;\n};\n"],"mappings":";;;;;;;AAkCA,MAAME,aAAaC,UACjB,OAAOA,UAAU,YAAY,OAAOA,UAAU,WAAWC,OAAOD,MAAM,GAAG;AAE3E,MAAME,eAAeC,SACnBA,KAAKC,cACD,KAAKL,UAAUI,KAAKE,aAAa,SAAS,KAC1C,KAAKN,UAAUI,KAAKG,SAASC,kBAAkB;AAErD,MAAMC,aACJC,MACAC,UACS;CACT,MAAME,WAAWT,MAAmBU,eAA6B;EAC/D,MAAMF,OAAO,GAAGE,WAAU,GAAIX,YAAYC,KAAK;AAC/CO,QAAMP,MAAMQ,KAAK;AACjB,GAACR,KAAKW,YAAY,EAAE,EAAEC,SAASC,UAAUJ,QAAQI,OAAOL,KAAK,CAAC;;AAEhEF,MAAKM,SAASE,SAAS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C,MAAI,CAACS,SAAS,CAACH,gBAAiB,QAAOxC;AACvCqC,YAAU;AACV,SAAO;GACL,GAAGrC;GACH,GAAIwC,kBAAkB,EAAE7B,UAAU,GAAG;GAKrC,GAAIgC,QACA;IACExC,SAASwC,MAAMxC;IACfD,YAAY;KAAE,GAAGF,KAAKE;KAAY,GAAGyC,MAAMzC;KAAW;IACvD,GACD;GACL;;CAGH,MAAM0C,OAAOtC,KAAKiC,KAAKzB,SAASA,KAAKyB,IAAID,QAAQ,CAAC;AAClD,QAAOD,UAAUO,OAAOtC;;AAG1B,MAAauC,yBAAyB,EACpCF,OACAG,UACAC,aACAC,eAAe,EAAA,OAME;CACjB,MAAMC,UAAUxB,qBAAqBkB,MAAM;CAC3C,MAAMO,UAAUH,YAAYI,QAAQpC,SAAS;EAC3C,MAAMqC,MAAMrC,KAAKZ,SAASC;AAC1B,SAAOgD,OAAO,QAAQ,CAACH,QAAQI,IAAID,IAAI;GACvC;CAEF,IAAIR,OAAOD;AACX,KAAIO,QAAQI,OACVV,QAAOD,MAAMW,SACT,CAAC,CAAC,GAAGX,MAAM,IAAI,GAAGO,QAAQ,EAAE,GAAGP,MAAMY,MAAM,EAAE,CAAC,GAC9C,CAACL,QAAQ;AAEf,KAAIF,aAAaM,OACfV,QAAO,CAAC,GAAGI,aAAaT,KAAKiB,SAAS,CAACA,KAAK,CAAC,EAAE,GAAGZ,KAAK;AAEzDvB,gBAAeuB,MAAM5B,iBAAiB8B,SAAS,CAAC;AAChD,QAAOF"}
|
|
1
|
+
{"version":3,"file":"menuRebuildModel.mjs","names":["DisplayNode","MenuRoots","asKeyText","value","String","stableKeyOf","node","isGroupNode","properties","nodeObj","businessObjectKey","walkPaths","list","visit","path","descend","parentPath","children","forEach","child","menu","root","collectExpansion","Map","snapshot","set","isExpanded","applyExpansion","was","get","undefined","businessObjectKeysIn","Set","keys","add","preserveMenuWorkspace","fresh","previous","loadedRoots","droppedPages","present","carried","filter","key","has","next","length","slice","map","page"],"sources":["../../../../src/inquiry/v2/tree/menuRebuildModel.ts"],"sourcesContent":["/**\n * What survives a MENU REBUILD — the pure half of the tree pane's refresh.\n *\n * The menu is rebuilt from the seed whenever the root-record page is refetched\n * (toolbar Refresh, a mutation's invalidation) or the catalog lands. A rebuild\n * mints fresh display ids for every row, so anything the user did to the tree\n * that isn't in the query's answer is lost unless it is carried across: the\n * records they loaded in on top of the page, and how far they had opened it.\n * v1 carried expansion the same way (expandedStateRef + restoreExpandedState);\n * this is that discipline, with the two v1 gaps closed.\n *\n * Lazy CHILDREN are deliberately not carried. A row that comes back expanded\n * and unloaded is auto-fetched by the tree menu itself\n * (InquiryFluentTreeMenu's collectPreExpandedLazyRows pass), so preserving\n * expansion reloads the branch with FRESH rows — which is the whole point of a\n * refresh. Grafting the old children over would have re-shown exactly the\n * stale data the user asked to replace.\n *\n * A rebuild only happens when the root page ANSWERS DIFFERENTLY, though, and a\n * mutation on a child record leaves the root rows byte-identical. Refreshing\n * the branch that mutation touched is branchRefreshModel's job.\n */\nimport type { DisplayNode } from '../../../domain/inquiryTree/displayTree';\n\n/** One menu = the roots it renders as depth-0 siblings. */\nexport type MenuRoots = DisplayNode[];\n\n/**\n * A row's identity ACROSS rebuilds — v1's getStableKey (record → its business\n * object key, group → its label), qualified by the path to it. v1 keyed flat,\n * so every parent's \"Assignments\" group shared one expansion bit and opening\n * one opened them all after a refresh; the path prefix is what separates them.\n */\nconst asKeyText = (value: unknown): string =>\n typeof value === 'string' || typeof value === 'number' ? String(value) : '';\n\nexport const stableKeyOf = (node: DisplayNode): string =>\n node.isGroupNode\n ? `g:${asKeyText(node.properties?.['label'])}`\n : `k:${asKeyText(node.nodeObj?.businessObjectKey)}`;\n\nconst walkPaths = (\n list: MenuRoots[],\n visit: (node: DisplayNode, path: string) => void\n): void => {\n const descend = (node: DisplayNode, parentPath: string): void => {\n const path = `${parentPath}/${stableKeyOf(node)}`;\n visit(node, path);\n (node.children ?? []).forEach((child) => descend(child, path));\n };\n list.forEach((menu) => menu.forEach((root) => descend(root, '')));\n};\n\n/** Every row's `isExpanded`, keyed by its stable path. */\nexport const collectExpansion = (list: MenuRoots[]): Map<string, boolean> => {\n const snapshot = new Map<string, boolean>();\n walkPaths(list, (node, path) => snapshot.set(path, !!node.isExpanded));\n return snapshot;\n};\n\n/**\n * Replay a snapshot onto a freshly built list, in place. `isExpanded` is the\n * seed the tree menu reads, so this is the same lever expand-all and the\n * filter's expansion pull. Rows the snapshot doesn't know (records the refetch\n * added) keep their configured default.\n */\nexport const applyExpansion = (\n list: MenuRoots[],\n snapshot: Map<string, boolean>\n): void => {\n walkPaths(list, (node, path) => {\n const was = snapshot.get(path);\n if (was !== undefined) node.isExpanded = was;\n });\n};\n\nconst businessObjectKeysIn = (list: MenuRoots[]): Set<unknown> => {\n const keys = new Set<unknown>();\n walkPaths(list, (node) => {\n if (!node.isGroupNode && node.nodeObj?.businessObjectKey != null) {\n keys.add(node.nodeObj.businessObjectKey);\n }\n });\n return keys;\n};\n\n/**\n * Carry the user's workspace onto a fresh build of the seeded page.\n *\n * `loadedRoots` are the roots the user brought in themselves (+ Load, a deep\n * link, a widget's loadInquiryNode), already recomposed against the current\n * config by the caller — the refetched page has no reason to contain them, so\n * they are re-appended, in load order, minus any the page now carries on its\n * own. A SEEDED root that vanished from the refetch is not\n * re-added: it is gone because the record is gone, and that is the refresh\n * working.\n *\n * `droppedPages` are the page roots Load_Inquiry_Page drops built, rebuilt\n * from their drops (droppedPageModel.rebuildDroppedPage) — no query owns them\n * either, so each comes back as its own menu at the top, where the drop put it.\n *\n * Expansion is replayed last so the carried-over roots — which already hold\n * their own state — and the rebuilt rows settle from one snapshot.\n */\nexport const preserveMenuWorkspace = ({\n fresh,\n previous,\n loadedRoots,\n droppedPages = []\n}: {\n fresh: MenuRoots[];\n previous: MenuRoots[];\n loadedRoots: MenuRoots;\n droppedPages?: MenuRoots;\n}): MenuRoots[] => {\n const present = businessObjectKeysIn(fresh);\n const carried = loadedRoots.filter((root) => {\n const key = root.nodeObj?.businessObjectKey;\n return key == null || !present.has(key);\n });\n\n let next = fresh;\n if (carried.length) {\n next = fresh.length\n ? [[...fresh[0], ...carried], ...fresh.slice(1)]\n : [carried];\n }\n if (droppedPages.length) {\n next = [...droppedPages.map((page) => [page]), ...next];\n }\n applyExpansion(next, collectExpansion(previous));\n return next;\n};\n"],"mappings":";;;;;;;AAiCA,MAAME,aAAaC,UACjB,OAAOA,UAAU,YAAY,OAAOA,UAAU,WAAWC,OAAOD,MAAM,GAAG;AAE3E,MAAaE,eAAeC,SAC1BA,KAAKC,cACD,KAAKL,UAAUI,KAAKE,aAAa,SAAS,KAC1C,KAAKN,UAAUI,KAAKG,SAASC,kBAAkB;AAErD,MAAMC,aACJC,MACAC,UACS;CACT,MAAME,WAAWT,MAAmBU,eAA6B;EAC/D,MAAMF,OAAO,GAAGE,WAAU,GAAIX,YAAYC,KAAK;AAC/CO,QAAMP,MAAMQ,KAAK;AACjB,GAACR,KAAKW,YAAY,EAAE,EAAEC,SAASC,UAAUJ,QAAQI,OAAOL,KAAK,CAAC;;AAEhEF,MAAKM,SAASE,SAASA,KAAKF,SAASG,SAASN,QAAQM,MAAM,GAAG,CAAC,CAAC;;;AAInE,MAAaC,oBAAoBV,SAA4C;CAC3E,MAAMY,2BAAW,IAAID,KAAsB;AAC3CZ,WAAUC,OAAON,MAAMQ,SAASU,SAASC,IAAIX,MAAM,CAAC,CAACR,KAAKoB,WAAW,CAAC;AACtE,QAAOF;;;;;;;;AAST,MAAaG,kBACXf,MACAY,aACS;AACTb,WAAUC,OAAON,MAAMQ,SAAS;EAC9B,MAAMc,MAAMJ,SAASK,IAAIf,KAAK;AAC9B,MAAIc,QAAQE,KAAAA,EAAWxB,MAAKoB,aAAaE;GACzC;;AAGJ,MAAMG,wBAAwBnB,SAAoC;CAChE,MAAMqB,uBAAO,IAAID,KAAc;AAC/BrB,WAAUC,OAAON,SAAS;AACxB,MAAI,CAACA,KAAKC,eAAeD,KAAKG,SAASC,qBAAqB,KAC1DuB,MAAKC,IAAI5B,KAAKG,QAAQC,kBAAkB;GAE1C;AACF,QAAOuB;;;;;;;;;;;;;;;;;;;;AAqBT,MAAaE,yBAAyB,EACpCC,OACAC,UACAC,aACAC,eAAe,EAAA,OAME;CACjB,MAAMC,UAAUT,qBAAqBK,MAAM;CAC3C,MAAMK,UAAUH,YAAYI,QAAQrB,SAAS;EAC3C,MAAMsB,MAAMtB,KAAKZ,SAASC;AAC1B,SAAOiC,OAAO,QAAQ,CAACH,QAAQI,IAAID,IAAI;GACvC;CAEF,IAAIE,OAAOT;AACX,KAAIK,QAAQK,OACVD,QAAOT,MAAMU,SACT,CAAC,CAAC,GAAGV,MAAM,IAAI,GAAGK,QAAQ,EAAE,GAAGL,MAAMW,MAAM,EAAE,CAAC,GAC9C,CAACN,QAAQ;AAEf,KAAIF,aAAaO,OACfD,QAAO,CAAC,GAAGN,aAAaS,KAAKC,SAAS,CAACA,KAAK,CAAC,EAAE,GAAGJ,KAAK;AAEzDlB,gBAAekB,MAAMvB,iBAAiBe,SAAS,CAAC;AAChD,QAAOQ"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lazily loaded children — how a fetched page joins the rows already under its
|
|
3
|
+
* parent.
|
|
4
|
+
*
|
|
5
|
+
* GROUP HEADINGS ARE KEYED BY WHERE THEY SIT. A grouped level composes its
|
|
6
|
+
* headings from the config, so every parent (and every page of one parent)
|
|
7
|
+
* would otherwise carry the same heading ids: toggling one heading toggled
|
|
8
|
+
* them all, and Show More appended a second copy of each heading. A heading's
|
|
9
|
+
* id is therefore its parent's id plus its label, nested headings under their
|
|
10
|
+
* parent heading — unique across parents, identical across pages of one
|
|
11
|
+
* parent. Two sibling headings with the same label read as one heading on
|
|
12
|
+
* screen, so they are one heading here.
|
|
13
|
+
*
|
|
14
|
+
* A PAGE MERGES, IT NEVER STACKS. A heading the parent already shows takes the
|
|
15
|
+
* page's rows under it; a new heading is appended. A record the parent already
|
|
16
|
+
* showed on the same level (same businessObjectKey) is dropped, so rows shifted
|
|
17
|
+
* between pages by a concurrent insert never render twice — except joint-entity
|
|
18
|
+
* rows, which share the child's key by design. Two levels of one record type
|
|
19
|
+
* under one parent each keep their own row for a record both return.
|
|
20
|
+
*/
|
|
21
|
+
import type { DisplayNode } from '../../../domain/inquiryTree/displayTree';
|
|
22
|
+
/** Re-key every group heading in `nodes` under `scopeId`, depth first. */
|
|
23
|
+
export declare const keyGroupHeadings: (nodes: DisplayNode[], scopeId: string) => void;
|
|
24
|
+
/** `existing` with a fetched page joined in (see the module doc). Pure. */
|
|
25
|
+
export declare const mergePagedChildren: (existing: DisplayNode[], page: DisplayNode[]) => DisplayNode[];
|
|
26
|
+
//# sourceMappingURL=pagedChildrenModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagedChildrenModel.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/pagedChildrenModel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAE3E,0EAA0E;AAC1E,eAAO,MAAM,gBAAgB,iDAiB5B,CAAC;AAqBF,2EAA2E;AAC3E,eAAO,MAAM,kBAAkB,iEA0B9B,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/** Re-key every group heading in `nodes` under `scopeId`, depth first. */
|
|
2
|
+
export const keyGroupHeadings = (nodes, scopeId) => {
|
|
3
|
+
nodes.forEach((node) => {
|
|
4
|
+
var _a;
|
|
5
|
+
var _b;
|
|
6
|
+
if (!node.isGroupNode)
|
|
7
|
+
return;
|
|
8
|
+
const configId = node.id;
|
|
9
|
+
const label = (_a = node.properties) === null || _a === void 0 ? void 0 : _a['label'];
|
|
10
|
+
const id = `${scopeId}>${typeof label === 'string' ? label : ''}`;
|
|
11
|
+
node.id = id;
|
|
12
|
+
const children = (_b = node.children) !== null && _b !== void 0 ? _b : [];
|
|
13
|
+
children.forEach((child) => {
|
|
14
|
+
if (child.parentId === configId)
|
|
15
|
+
child.parentId = id;
|
|
16
|
+
if (child.parentGroupId === configId)
|
|
17
|
+
child.parentGroupId = id;
|
|
18
|
+
});
|
|
19
|
+
keyGroupHeadings(children, id);
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
const isDuplicateRecord = (siblings, record) => {
|
|
23
|
+
var _a, _b;
|
|
24
|
+
if ((_a = record.properties) === null || _a === void 0 ? void 0 : _a['isUsingJointEntityAdditionalProperties']) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
const key = (_b = record.nodeObj) === null || _b === void 0 ? void 0 : _b['businessObjectKey'];
|
|
28
|
+
return (!!key &&
|
|
29
|
+
siblings.some((sibling) => {
|
|
30
|
+
var _a;
|
|
31
|
+
return !sibling.isGroupNode &&
|
|
32
|
+
sibling.configNodeId === record.configNodeId &&
|
|
33
|
+
((_a = sibling.nodeObj) === null || _a === void 0 ? void 0 : _a['businessObjectKey']) === key;
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
/** `existing` with a fetched page joined in (see the module doc). Pure. */
|
|
37
|
+
export const mergePagedChildren = (existing, page) => {
|
|
38
|
+
const merged = [...existing];
|
|
39
|
+
page.forEach((child) => {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
if (child.isGroupNode) {
|
|
42
|
+
const index = merged.findIndex((node) => node.isGroupNode && node.id === child.id);
|
|
43
|
+
if (index === -1) {
|
|
44
|
+
merged.push(child);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
merged[index] = Object.assign(Object.assign({}, merged[index]), { children: mergePagedChildren((_a = merged[index].children) !== null && _a !== void 0 ? _a : [], (_b = child.children) !== null && _b !== void 0 ? _b : []) });
|
|
48
|
+
}
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (!isDuplicateRecord(existing, child))
|
|
52
|
+
merged.push(child);
|
|
53
|
+
});
|
|
54
|
+
return merged;
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=pagedChildrenModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagedChildrenModel.js","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/pagedChildrenModel.ts"],"names":[],"mappings":"AAsBA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,KAAoB,EACpB,OAAe,EACT,EAAE,CAAC;IACT,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;;;QACtB,IAAI,CAAC,IAAI,CAAC,WAAW;YAAE,OAAO;QAC9B,MAAM,QAAQ,GAAG,IAAI,CAAC,EAAE,CAAC;QACzB,MAAM,KAAK,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAG,OAAO,CAAC,CAAC;QACzC,MAAM,EAAE,GAAG,GAAG,OAAO,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QAClE,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,MAAM,QAAQ,SAAG,IAAI,CAAC,QAAQ,mCAAI,EAAE,CAAC;QACrC,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC;YAC1B,IAAI,KAAK,CAAC,QAAQ,KAAK,QAAQ;gBAAE,KAAK,CAAC,QAAQ,GAAG,EAAE,CAAC;YACrD,IAAI,KAAK,CAAC,aAAa,KAAK,QAAQ;gBAAE,KAAK,CAAC,aAAa,GAAG,EAAE,CAAC;QAAA,CAChE,CAAC,CAAC;QACH,gBAAgB,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAAA,CAChC,CAAC,CAAC;AAAA,CACJ,CAAC;AAEF,MAAM,iBAAiB,GAAG,CACxB,QAAuB,EACvB,MAAmB,EACV,EAAE,CAAC;;IACZ,IAAI,MAAA,MAAM,CAAC,UAAU,0CAAG,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E,KAAK,CAAC;YAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAAA,CAC7D,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAAA,CACf,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//#region src/inquiry/v2/tree/pagedChildrenModel.ts
|
|
2
|
+
/** Re-key every group heading in `nodes` under `scopeId`, depth first. */
|
|
3
|
+
const keyGroupHeadings = (nodes, scopeId) => {
|
|
4
|
+
nodes.forEach((node) => {
|
|
5
|
+
if (!node.isGroupNode) return;
|
|
6
|
+
const configId = node.id;
|
|
7
|
+
const label = node.properties?.["label"];
|
|
8
|
+
const id = `${scopeId}>${typeof label === "string" ? label : ""}`;
|
|
9
|
+
node.id = id;
|
|
10
|
+
const children = node.children ?? [];
|
|
11
|
+
children.forEach((child) => {
|
|
12
|
+
if (child.parentId === configId) child.parentId = id;
|
|
13
|
+
if (child.parentGroupId === configId) child.parentGroupId = id;
|
|
14
|
+
});
|
|
15
|
+
keyGroupHeadings(children, id);
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
const isDuplicateRecord = (siblings, record) => {
|
|
19
|
+
if (record.properties?.["isUsingJointEntityAdditionalProperties"]) return false;
|
|
20
|
+
const key = record.nodeObj?.["businessObjectKey"];
|
|
21
|
+
return !!key && siblings.some((sibling) => !sibling.isGroupNode && sibling.configNodeId === record.configNodeId && sibling.nodeObj?.["businessObjectKey"] === key);
|
|
22
|
+
};
|
|
23
|
+
/** `existing` with a fetched page joined in (see the module doc). Pure. */
|
|
24
|
+
const mergePagedChildren = (existing, page) => {
|
|
25
|
+
const merged = [...existing];
|
|
26
|
+
page.forEach((child) => {
|
|
27
|
+
if (child.isGroupNode) {
|
|
28
|
+
const index = merged.findIndex((node) => node.isGroupNode && node.id === child.id);
|
|
29
|
+
if (index === -1) merged.push(child);
|
|
30
|
+
else merged[index] = {
|
|
31
|
+
...merged[index],
|
|
32
|
+
children: mergePagedChildren(merged[index].children ?? [], child.children ?? [])
|
|
33
|
+
};
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
if (!isDuplicateRecord(existing, child)) merged.push(child);
|
|
37
|
+
});
|
|
38
|
+
return merged;
|
|
39
|
+
};
|
|
40
|
+
//#endregion
|
|
41
|
+
export { keyGroupHeadings, mergePagedChildren };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=pagedChildrenModel.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagedChildrenModel.mjs","names":["DisplayNode","keyGroupHeadings","nodes","scopeId","forEach","node","isGroupNode","configId","id","label","properties","children","child","parentId","parentGroupId","isDuplicateRecord","siblings","record","key","nodeObj","some","sibling","configNodeId","mergePagedChildren","existing","page","merged","index","findIndex","push"],"sources":["../../../../src/inquiry/v2/tree/pagedChildrenModel.ts"],"sourcesContent":["/**\n * Lazily loaded children — how a fetched page joins the rows already under its\n * parent.\n *\n * GROUP HEADINGS ARE KEYED BY WHERE THEY SIT. A grouped level composes its\n * headings from the config, so every parent (and every page of one parent)\n * would otherwise carry the same heading ids: toggling one heading toggled\n * them all, and Show More appended a second copy of each heading. A heading's\n * id is therefore its parent's id plus its label, nested headings under their\n * parent heading — unique across parents, identical across pages of one\n * parent. Two sibling headings with the same label read as one heading on\n * screen, so they are one heading here.\n *\n * A PAGE MERGES, IT NEVER STACKS. A heading the parent already shows takes the\n * page's rows under it; a new heading is appended. A record the parent already\n * showed on the same level (same businessObjectKey) is dropped, so rows shifted\n * between pages by a concurrent insert never render twice — except joint-entity\n * rows, which share the child's key by design. Two levels of one record type\n * under one parent each keep their own row for a record both return.\n */\nimport type { DisplayNode } from '../../../domain/inquiryTree/displayTree';\n\n/** Re-key every group heading in `nodes` under `scopeId`, depth first. */\nexport const keyGroupHeadings = (\n nodes: DisplayNode[],\n scopeId: string\n): void => {\n nodes.forEach((node) => {\n if (!node.isGroupNode) return;\n const configId = node.id;\n const label = node.properties?.['label'];\n const id = `${scopeId}>${typeof label === 'string' ? label : ''}`;\n node.id = id;\n const children = node.children ?? [];\n children.forEach((child) => {\n if (child.parentId === configId) child.parentId = id;\n if (child.parentGroupId === configId) child.parentGroupId = id;\n });\n keyGroupHeadings(children, id);\n });\n};\n\nconst isDuplicateRecord = (\n siblings: DisplayNode[],\n record: DisplayNode\n): boolean => {\n if (record.properties?.['isUsingJointEntityAdditionalProperties']) {\n return false;\n }\n const key = record.nodeObj?.['businessObjectKey'];\n return (\n !!key &&\n siblings.some(\n (sibling) =>\n !sibling.isGroupNode &&\n sibling.configNodeId === record.configNodeId &&\n sibling.nodeObj?.['businessObjectKey'] === key\n )\n );\n};\n\n/** `existing` with a fetched page joined in (see the module doc). Pure. */\nexport const mergePagedChildren = (\n existing: DisplayNode[],\n page: DisplayNode[]\n): DisplayNode[] => {\n const merged = [...existing];\n page.forEach((child) => {\n if (child.isGroupNode) {\n const index = merged.findIndex(\n (node) => node.isGroupNode && node.id === child.id\n );\n if (index === -1) {\n merged.push(child);\n } else {\n merged[index] = {\n ...merged[index],\n children: mergePagedChildren(\n merged[index].children ?? [],\n child.children ?? []\n )\n };\n }\n return;\n }\n if (!isDuplicateRecord(existing, child)) merged.push(child);\n });\n return merged;\n};\n"],"mappings":";;AAuBA,MAAaC,oBACXC,OACAC,YACS;AACTD,OAAME,SAASC,SAAS;AACtB,MAAI,CAACA,KAAKC,YAAa;EACvB,MAAMC,WAAWF,KAAKG;EACtB,MAAMC,QAAQJ,KAAKK,aAAa;EAChC,MAAMF,KAAK,GAAGL,QAAO,GAAI,OAAOM,UAAU,WAAWA,QAAQ;AAC7DJ,OAAKG,KAAKA;EACV,MAAMG,WAAWN,KAAKM,YAAY,EAAE;AACpCA,WAASP,SAASQ,UAAU;AAC1B,OAAIA,MAAMC,aAAaN,SAAUK,OAAMC,WAAWL;AAClD,OAAII,MAAME,kBAAkBP,SAAUK,OAAME,gBAAgBN;IAC5D;AACFP,mBAAiBU,UAAUH,GAAG;GAC9B;;AAGJ,MAAMO,qBACJC,UACAC,WACY;AACZ,KAAIA,OAAOP,aAAa,0CACtB,QAAO;CAET,MAAMQ,MAAMD,OAAOE,UAAU;AAC7B,QACE,CAAC,CAACD,OACFF,SAASI,MACNC,YACC,CAACA,QAAQf,eACTe,QAAQC,iBAAiBL,OAAOK,gBAChCD,QAAQF,UAAU,yBAAyBD,IAC9C;;;AAKL,MAAaK,sBACXC,UACAC,SACkB;CAClB,MAAMC,SAAS,CAAC,GAAGF,SAAS;AAC5BC,MAAKrB,SAASQ,UAAU;AACtB,MAAIA,MAAMN,aAAa;GACrB,MAAMqB,QAAQD,OAAOE,WAClBvB,SAASA,KAAKC,eAAeD,KAAKG,OAAOI,MAAMJ,GACjD;AACD,OAAImB,UAAU,GACZD,QAAOG,KAAKjB,MAAM;OAElBc,QAAOC,SAAS;IACd,GAAGD,OAAOC;IACVhB,UAAUY,mBACRG,OAAOC,OAAOhB,YAAY,EAAE,EAC5BC,MAAMD,YAAY,EACpB,CAAA;IACD;AAEH;;AAEF,MAAI,CAACI,kBAAkBS,UAAUZ,MAAM,CAAEc,QAAOG,KAAKjB,MAAM;GAC3D;AACF,QAAOc"}
|
|
@@ -6,6 +6,11 @@
|
|
|
6
6
|
* never reshuffles the rest: the list stays in the order the Data Builder query
|
|
7
7
|
* authored it. A menu goes away with its last root.
|
|
8
8
|
*
|
|
9
|
+
* A ROOT RECORD IS NOT ALWAYS A DEPTH-0 ROW. Where the root level groups its
|
|
10
|
+
* records, they sit under its group headings; the heading is scaffolding, the
|
|
11
|
+
* record under it is the root. A heading goes away with its last record, and
|
|
12
|
+
* the menu with its last record — headings alone are not a tree.
|
|
13
|
+
*
|
|
9
14
|
* REMOVAL NEVER MOVES THE SELECTION. Remove is a row-scoped verb aimed at the
|
|
10
15
|
* row it sits on, so a row the user was NOT looking at leaves the record pane
|
|
11
16
|
* exactly where it was, and the row they WERE looking at leaves it empty (the
|
|
@@ -25,5 +30,7 @@ export interface RootRemoval {
|
|
|
25
30
|
/** The surviving selection: the id it came in with, or null once it is gone. */
|
|
26
31
|
selectedNodeId: string | null;
|
|
27
32
|
}
|
|
33
|
+
/** The root records at or under `node`: itself, or those under its headings. */
|
|
34
|
+
export declare const rootRecordsOf: (node: DisplayNode) => DisplayNode[];
|
|
28
35
|
export declare const removeRootFromMenus: (menus: MenuRoots[], rootId: string, selectedNodeId: string) => RootRemoval;
|
|
29
36
|
//# sourceMappingURL=rootRemovalModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootRemovalModel.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/rootRemovalModel.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"rootRemovalModel.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/rootRemovalModel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAG3E,2DAA2D;AAC3D,MAAM,MAAM,SAAS,GAAG,WAAW,EAAE,CAAC;AAEtC,MAAM,WAAW,WAAW;IAC1B,gFAA8E;IAC9E,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,sEAAsE;IACtE,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,gFAAgF;IAChF,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,gFAAgF;AAChF,eAAO,MAAM,aAAa,sCACgD,CAAC;AAe3E,eAAO,MAAM,mBAAmB,6EAyB/B,CAAC"}
|
|
@@ -1,12 +1,38 @@
|
|
|
1
|
-
import { findNodeById } from './lineageModel';
|
|
1
|
+
import { findDisplayNode, findNodeById } from './lineageModel';
|
|
2
|
+
/** The root records at or under `node`: itself, or those under its headings. */
|
|
3
|
+
export const rootRecordsOf = (node) => {
|
|
4
|
+
var _a;
|
|
5
|
+
return node.isGroupNode ? ((_a = node.children) !== null && _a !== void 0 ? _a : []).flatMap(rootRecordsOf) : [node];
|
|
6
|
+
};
|
|
7
|
+
const holdsRecord = (node) => !!findDisplayNode(node, (n) => !n.isGroupNode);
|
|
8
|
+
/** `node` without the root record `removed`; null once nothing is left of it. */
|
|
9
|
+
const without = (node, removed) => {
|
|
10
|
+
var _a;
|
|
11
|
+
if (node === removed)
|
|
12
|
+
return null;
|
|
13
|
+
if (!node.isGroupNode || !rootRecordsOf(node).includes(removed))
|
|
14
|
+
return node;
|
|
15
|
+
const children = ((_a = node.children) !== null && _a !== void 0 ? _a : [])
|
|
16
|
+
.map((child) => without(child, removed))
|
|
17
|
+
.filter((child) => child !== null);
|
|
18
|
+
return children.some(holdsRecord) ? Object.assign(Object.assign({}, node), { children }) : null;
|
|
19
|
+
};
|
|
2
20
|
export const removeRootFromMenus = (menus, rootId, selectedNodeId) => {
|
|
3
21
|
var _a;
|
|
4
|
-
const removed = (_a = menus
|
|
22
|
+
const removed = (_a = menus
|
|
23
|
+
.flat()
|
|
24
|
+
.flatMap(rootRecordsOf)
|
|
25
|
+
.find((root) => String(root.id) === rootId)) !== null && _a !== void 0 ? _a : null;
|
|
5
26
|
if (!removed)
|
|
6
27
|
return { menus, removed: null, selectedNodeId };
|
|
7
|
-
const next = menus
|
|
8
|
-
.
|
|
9
|
-
|
|
28
|
+
const next = menus.flatMap((menu) => {
|
|
29
|
+
if (!menu.flatMap(rootRecordsOf).includes(removed))
|
|
30
|
+
return [menu];
|
|
31
|
+
const roots = menu
|
|
32
|
+
.map((root) => without(root, removed))
|
|
33
|
+
.filter((root) => root !== null);
|
|
34
|
+
return roots.some(holdsRecord) ? [roots] : [];
|
|
35
|
+
});
|
|
10
36
|
const survives = !!selectedNodeId &&
|
|
11
37
|
next.some((menu) => menu.some((root) => findNodeById(root, selectedNodeId)));
|
|
12
38
|
return { menus: next, removed, selectedNodeId: survives ? selectedNodeId : null };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootRemovalModel.js","sourceRoot":"","sources":["../../../../src/inquiry/v2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AC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AAAA,CACnF,CAAC"}
|
|
@@ -1,13 +1,30 @@
|
|
|
1
|
-
import { findNodeById } from "./lineageModel.mjs";
|
|
1
|
+
import { findDisplayNode, findNodeById } from "./lineageModel.mjs";
|
|
2
2
|
//#region src/inquiry/v2/tree/rootRemovalModel.ts
|
|
3
|
+
/** The root records at or under `node`: itself, or those under its headings. */
|
|
4
|
+
const rootRecordsOf = (node) => node.isGroupNode ? (node.children ?? []).flatMap(rootRecordsOf) : [node];
|
|
5
|
+
const holdsRecord = (node) => !!findDisplayNode(node, (n) => !n.isGroupNode);
|
|
6
|
+
/** `node` without the root record `removed`; null once nothing is left of it. */
|
|
7
|
+
const without = (node, removed) => {
|
|
8
|
+
if (node === removed) return null;
|
|
9
|
+
if (!node.isGroupNode || !rootRecordsOf(node).includes(removed)) return node;
|
|
10
|
+
const children = (node.children ?? []).map((child) => without(child, removed)).filter((child) => child !== null);
|
|
11
|
+
return children.some(holdsRecord) ? {
|
|
12
|
+
...node,
|
|
13
|
+
children
|
|
14
|
+
} : null;
|
|
15
|
+
};
|
|
3
16
|
const removeRootFromMenus = (menus, rootId, selectedNodeId) => {
|
|
4
|
-
const removed = menus.flat().find((root) => String(root.id) === rootId) ?? null;
|
|
17
|
+
const removed = menus.flat().flatMap(rootRecordsOf).find((root) => String(root.id) === rootId) ?? null;
|
|
5
18
|
if (!removed) return {
|
|
6
19
|
menus,
|
|
7
20
|
removed: null,
|
|
8
21
|
selectedNodeId
|
|
9
22
|
};
|
|
10
|
-
const next = menus.
|
|
23
|
+
const next = menus.flatMap((menu) => {
|
|
24
|
+
if (!menu.flatMap(rootRecordsOf).includes(removed)) return [menu];
|
|
25
|
+
const roots = menu.map((root) => without(root, removed)).filter((root) => root !== null);
|
|
26
|
+
return roots.some(holdsRecord) ? [roots] : [];
|
|
27
|
+
});
|
|
11
28
|
return {
|
|
12
29
|
menus: next,
|
|
13
30
|
removed,
|
|
@@ -15,6 +32,6 @@ const removeRootFromMenus = (menus, rootId, selectedNodeId) => {
|
|
|
15
32
|
};
|
|
16
33
|
};
|
|
17
34
|
//#endregion
|
|
18
|
-
export { removeRootFromMenus };
|
|
35
|
+
export { removeRootFromMenus, rootRecordsOf };
|
|
19
36
|
|
|
20
37
|
//# sourceMappingURL=rootRemovalModel.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootRemovalModel.mjs","names":["DisplayNode","findNodeById","MenuRoots","RootRemoval","menus","removed","selectedNodeId","
|
|
1
|
+
{"version":3,"file":"rootRemovalModel.mjs","names":["DisplayNode","findDisplayNode","findNodeById","MenuRoots","RootRemoval","menus","removed","selectedNodeId","rootRecordsOf","node","isGroupNode","children","flatMap","holdsRecord","n","without","includes","map","child","filter","some","removeRootFromMenus","rootId","flat","find","root","String","id","next","menu","roots","survives"],"sources":["../../../../src/inquiry/v2/tree/rootRemovalModel.ts"],"sourcesContent":["/**\n * Removing one ROOT record from the workspace — the pure half of the tree\n * pane's Remove.\n *\n * SURVIVORS KEEP THEIR PLACES. `filter` preserves order, so dropping a row\n * never reshuffles the rest: the list stays in the order the Data Builder query\n * authored it. A menu goes away with its last root.\n *\n * A ROOT RECORD IS NOT ALWAYS A DEPTH-0 ROW. Where the root level groups its\n * records, they sit under its group headings; the heading is scaffolding, the\n * record under it is the root. A heading goes away with its last record, and\n * the menu with its last record — headings alone are not a tree.\n *\n * REMOVAL NEVER MOVES THE SELECTION. Remove is a row-scoped verb aimed at the\n * row it sits on, so a row the user was NOT looking at leaves the record pane\n * exactly where it was, and the row they WERE looking at leaves it empty (the\n * landing screen, or the pick-a-record message). It never falls through to the\n * neighbouring record — doing that turned a dismiss into \"opened a record the\n * user never asked for\", and where that record's page hides the tree pane, into\n * \"the tree disappeared\".\n */\nimport type { DisplayNode } from '../../../domain/inquiryTree/displayTree';\nimport { findDisplayNode, findNodeById } from './lineageModel';\n\n/** One menu = the roots it renders as depth-0 siblings. */\nexport type MenuRoots = DisplayNode[];\n\nexport interface RootRemoval {\n /** The menus after the removal — the input untouched when nothing matched. */\n menus: MenuRoots[];\n /** The root that was dropped, or null when `rootId` named no root. */\n removed: DisplayNode | null;\n /** The surviving selection: the id it came in with, or null once it is gone. */\n selectedNodeId: string | null;\n}\n\n/** The root records at or under `node`: itself, or those under its headings. */\nexport const rootRecordsOf = (node: DisplayNode): DisplayNode[] =>\n node.isGroupNode ? (node.children ?? []).flatMap(rootRecordsOf) : [node];\n\nconst holdsRecord = (node: DisplayNode): boolean =>\n !!findDisplayNode(node, (n) => !n.isGroupNode);\n\n/** `node` without the root record `removed`; null once nothing is left of it. */\nconst without = (node: DisplayNode, removed: DisplayNode): DisplayNode | null => {\n if (node === removed) return null;\n if (!node.isGroupNode || !rootRecordsOf(node).includes(removed)) return node;\n const children = (node.children ?? [])\n .map((child) => without(child, removed))\n .filter((child): child is DisplayNode => child !== null);\n return children.some(holdsRecord) ? { ...node, children } : null;\n};\n\nexport const removeRootFromMenus = (\n menus: MenuRoots[],\n rootId: string,\n selectedNodeId: string | null\n): RootRemoval => {\n const removed =\n menus\n .flat()\n .flatMap(rootRecordsOf)\n .find((root) => String(root.id) === rootId) ?? null;\n if (!removed) return { menus, removed: null, selectedNodeId };\n\n const next = menus.flatMap((menu) => {\n if (!menu.flatMap(rootRecordsOf).includes(removed)) return [menu];\n const roots = menu\n .map((root) => without(root, removed))\n .filter((root): root is DisplayNode => root !== null);\n return roots.some(holdsRecord) ? [roots] : [];\n });\n const survives =\n !!selectedNodeId &&\n next.some((menu) =>\n menu.some((root) => findNodeById(root, selectedNodeId))\n );\n return { menus: next, removed, selectedNodeId: survives ? selectedNodeId : null };\n};\n"],"mappings":";;;AAqCA,MAAaQ,iBAAiBC,SAC5BA,KAAKC,eAAeD,KAAKE,YAAY,EAAE,EAAEC,QAAQJ,cAAc,GAAG,CAACC,KAAK;AAE1E,MAAMI,eAAeJ,SACnB,CAAC,CAACR,gBAAgBQ,OAAOK,MAAM,CAACA,EAAEJ,YAAY;;AAGhD,MAAMK,WAAWN,MAAmBH,YAA6C;AAC/E,KAAIG,SAASH,QAAS,QAAO;AAC7B,KAAI,CAACG,KAAKC,eAAe,CAACF,cAAcC,KAAK,CAACO,SAASV,QAAQ,CAAE,QAAOG;CACxE,MAAME,YAAYF,KAAKE,YAAY,EAAE,EAClCM,KAAKC,UAAUH,QAAQG,OAAOZ,QAAQ,CAAC,CACvCa,QAAQD,UAAgCA,UAAU,KAAK;AAC1D,QAAOP,SAASS,KAAKP,YAAY,GAAG;EAAE,GAAGJ;EAAME;EAAU,GAAG;;AAG9D,MAAaU,uBACXhB,OACAiB,QACAf,mBACgB;CAChB,MAAMD,UACJD,MACGkB,MAAM,CACNX,QAAQJ,cAAc,CACtBgB,MAAMC,SAASC,OAAOD,KAAKE,GAAG,KAAKL,OAAO,IAAI;AACnD,KAAI,CAAChB,QAAS,QAAO;EAAED;EAAOC,SAAS;EAAMC;EAAgB;CAE7D,MAAMqB,OAAOvB,MAAMO,SAASiB,SAAS;AACnC,MAAI,CAACA,KAAKjB,QAAQJ,cAAc,CAACQ,SAASV,QAAQ,CAAE,QAAO,CAACuB,KAAK;EACjE,MAAMC,QAAQD,KACXZ,KAAKQ,SAASV,QAAQU,MAAMnB,QAAQ,CAAC,CACrCa,QAAQM,SAA8BA,SAAS,KAAK;AACvD,SAAOK,MAAMV,KAAKP,YAAY,GAAG,CAACiB,MAAM,GAAG,EAAE;GAC7C;AAMF,QAAO;EAAEzB,OAAOuB;EAAMtB;EAASC,gBAJ7B,CAAC,CAACA,kBACFqB,KAAKR,MAAMS,SACTA,KAAKT,MAAMK,SAASvB,aAAauB,MAAMlB,eAAe,CACxD,CAAC,GACuDA,iBAAiB;EAAM"}
|
|
@@ -39,8 +39,6 @@ export interface TreeFilterState {
|
|
|
39
39
|
export declare const EMPTY_TREE_FILTER: TreeFilterState;
|
|
40
40
|
/** Accent- and case-folded text. */
|
|
41
41
|
export declare const foldText: (text: string) => string;
|
|
42
|
-
/** Case/accent-insensitive substring test — the one matching rule. */
|
|
43
|
-
export declare const labelMatches: (label: string, query: string) => boolean;
|
|
44
42
|
/**
|
|
45
43
|
* The [start, end) ranges of `text` that match `query`, in order. Consumers
|
|
46
44
|
* render the matched runs as `<mark>`; an empty list means "render as-is".
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeFilterModel.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/treeFilterModel.ts"],"names":[],"mappings":"AAkBA,wEAAwE;AACxE,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC;IACnC,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,GAAG,IAAI,CAAC;CACV;AAED,kDAAkD;AAClD,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,WAAW,EAAE,MAAM,CAAC;IACpB,gFAAgF;IAChF,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,+DAA+D;IAC/D,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,uEAAqE;IACrE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,sEAAsE;IACtE,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC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,CAAC;IACzB,iEAAiE;IACjE,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACvB,mEAAmE;IACnE,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,EAAE,eAQ/B,CAAC;AAYF,oCAAoC;AACpC,eAAO,MAAM,QAAQ,0BAIpB,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,eAAe,qDA+B3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,+CAqB7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,6EA4C7B,CAAC"}
|
|
@@ -39,13 +39,6 @@ export const foldText = (text) => {
|
|
|
39
39
|
folded += foldChar(char);
|
|
40
40
|
return folded;
|
|
41
41
|
};
|
|
42
|
-
/** Case/accent-insensitive substring test — the one matching rule. */
|
|
43
|
-
export const labelMatches = (label, query) => {
|
|
44
|
-
const needle = foldText(query);
|
|
45
|
-
if (!needle)
|
|
46
|
-
return false;
|
|
47
|
-
return foldText(label).includes(needle);
|
|
48
|
-
};
|
|
49
42
|
/**
|
|
50
43
|
* The [start, end) ranges of `text` that match `query`, in order. Consumers
|
|
51
44
|
* render the matched runs as `<mark>`; an empty list means "render as-is".
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeFilterModel.js","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/treeFilterModel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AA2C1E,MAAM,CAAC,MAAM,iBAAiB,GAAoB;IAChD,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE,EAAE;IACX,WAAW,EAAE,IAAI,GAAG,EAAE;IACtB,SAAS,EAAE,IAAI,GAAG,EAAE;IACpB,SAAS,EAAE,EAAE;CACd,CAAC;AAEF;;;GAGG;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Q,CAAC,CAAC;IAClC,MAAM,SAAS,GAAG,IAAI,GAAG,EAAU,CAAC;IACpC,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YAAE,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED,OAAO;QACL,KAAK;QACL,MAAM,EAAE,IAAI;QACZ,QAAQ;QACR,OAAO;QACP,WAAW;QACX,SAAS;QACT,kEAAkE;QAClE,SAAS,EAAE,CAAC,GAAG,WAAW,CAAC;KAC5B,CAAC;AAAA,CACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeFilterModel.mjs","names":["resolveRowLabel","FilterableNode","id","isGroupNode","nodeObj","children","properties","label","nodeLabel","name","key","FilterRow","parentId","foldedLabel","selectable","TreeFilterState","query","active","matchIds","stepIds","ancestorIds","Set","dimmedIds","expandIds","EMPTY_TREE_FILTER","foldChar","char","normalize","replace","toLowerCase","foldText","text","folded","
|
|
1
|
+
{"version":3,"file":"treeFilterModel.mjs","names":["resolveRowLabel","FilterableNode","id","isGroupNode","nodeObj","children","properties","label","nodeLabel","name","key","FilterRow","parentId","foldedLabel","selectable","TreeFilterState","query","active","matchIds","stepIds","ancestorIds","Set","dimmedIds","expandIds","EMPTY_TREE_FILTER","foldChar","char","normalize","replace","toLowerCase","foldText","text","folded","highlightRanges","Array","map","i","length","push","needle","ranges","cursor","at","indexOf","start","end","flattenFilterRows","menuList","rows","walk","node","String","forEach","child","menu","root","undefined","computeTreeFilter","rawQuery","minChars","trim","parentOf","Map","row","includes","get","has","add","matched"],"sources":["../../../../src/inquiry/v2/tree/treeFilterModel.ts"],"sourcesContent":["/**\n * Inquiry v2 tree filter — pure model (no React, no HTTP), so it runs under the\n * node:test domain harness (`pnpm test:domain`).\n *\n * The filter is a PRESENTATION pass over rows that are already loaded: it never\n * fetches, never hides a row and never moves one (find-and-load spec §2/§6).\n * Given the menu list and the typed text it answers three questions per row —\n * is it a match, is it an ancestor of one, or should it dim — plus the ordered\n * match list the Enter/F3 stepping walks and the ancestor ids that must open\n * while the filter is live.\n *\n * Matching is case- and accent-insensitive substring on the row's DISPLAY label,\n * the same label the tree renders. The character-wise fold is duplicated (in\n * spirit) inside udp-tree, which needs it to place the `<mark>`; both sides\n * agree because both fold per character and compare folded substrings.\n */\nimport { resolveRowLabel } from '../../../domain/inquiryTree/displayTree';\n\n/** The minimum a display node must expose for the filter to read it. */\nexport interface FilterableNode {\n id?: string | number;\n isGroupNode?: boolean;\n nodeObj?: unknown;\n children?: FilterableNode[] | null;\n properties?: {\n label?: string;\n nodeLabel?: string;\n name?: string;\n [key: string]: unknown;\n } | null;\n}\n\n/** One flattened row the filter reasons about. */\nexport interface FilterRow {\n id: string;\n parentId?: string;\n label: string;\n /** `label` folded once here, so a keystroke folds only the needle. */\n foldedLabel: string;\n /** True when activating the row would change the record pane (a record row). */\n selectable: boolean;\n}\n\nexport interface TreeFilterState {\n /** The trimmed text actually applied ('' when the filter is inactive). */\n query: string;\n active: boolean;\n /** Matching row ids, in the tree's own top-to-bottom order. */\n matchIds: string[];\n /** Matching rows that are selectable — the Enter / F3 step order. */\n stepIds: string[];\n /** Ancestors of matches: full strength so the path stays readable. */\n ancestorIds: Set<string>;\n /** Everything that is neither a match nor an ancestor of one. */\n dimmedIds: Set<string>;\n /** Ancestor ids that must be expanded while the filter is live. */\n expandIds: string[];\n}\n\nexport const EMPTY_TREE_FILTER: TreeFilterState = {\n query: '',\n active: false,\n matchIds: [],\n stepIds: [],\n ancestorIds: new Set(),\n dimmedIds: new Set(),\n expandIds: []\n};\n\n/**\n * Fold one character for accent/case-insensitive comparison. Per character (not\n * per string) so callers that need to map back onto the original text can.\n */\nconst foldChar = (char: string): string =>\n char\n .normalize('NFD')\n .replace(/[\\u0300-\\u036f]/g, '')\n .toLowerCase();\n\n/** Accent- and case-folded text. */\nexport const foldText = (text: string): string => {\n let folded = '';\n for (const char of text) folded += foldChar(char);\n return folded;\n};\n/**\n * The [start, end) ranges of `text` that match `query`, in order. Consumers\n * render the matched runs as `<mark>`; an empty list means \"render as-is\".\n */\nexport const highlightRanges = (\n text: string,\n query: string\n): Array<[number, number]> => {\n if (!text || !query) return [];\n let folded = '';\n const map: number[] = [];\n for (let i = 0; i < text.length; i += 1) {\n for (const char of foldChar(text[i])) {\n folded += char;\n map.push(i);\n }\n }\n const needle = foldText(query);\n if (!needle) return [];\n\n const ranges: Array<[number, number]> = [];\n let cursor = 0;\n let at = folded.indexOf(needle);\n while (at !== -1) {\n const start = map[at];\n const end = map[at + needle.length - 1] + 1;\n // A multi-character fold can land a later folded hit inside a range already\n // taken — skip it rather than emit overlapping ranges.\n if (start >= cursor) {\n ranges.push([start, end]);\n cursor = end;\n }\n at = folded.indexOf(needle, at + needle.length);\n }\n return ranges;\n};\n\n/**\n * Flatten the menu list (a list of menus, each a list of display roots) into\n * filter rows in visual order.\n */\nexport const flattenFilterRows = (\n menuList: FilterableNode[][] | null | undefined\n): FilterRow[] => {\n const rows: FilterRow[] = [];\n const walk = (node: FilterableNode, parentId?: string): void => {\n if (node?.id == null) return;\n const id = String(node.id);\n const label = resolveRowLabel(node);\n rows.push({\n id,\n parentId,\n label,\n foldedLabel: foldText(label),\n selectable: !node.isGroupNode && !!node.nodeObj\n });\n (node.children ?? []).forEach((child) => walk(child, id));\n };\n (menuList ?? []).forEach((menu) =>\n (menu ?? []).forEach((root) => walk(root, undefined))\n );\n return rows;\n};\n\n/**\n * The filter pass. `minChars` is 1 by default: filtering is free, so it starts\n * at the first keystroke.\n */\nexport const computeTreeFilter = (\n rows: FilterRow[],\n rawQuery: string,\n minChars = 1\n): TreeFilterState => {\n const query = (rawQuery ?? '').trim();\n if (query.length < minChars) return EMPTY_TREE_FILTER;\n\n const parentOf = new Map<string, string | undefined>(\n rows.map((row) => [row.id, row.parentId])\n );\n\n const matchIds: string[] = [];\n const stepIds: string[] = [];\n const ancestorIds = new Set<string>();\n const needle = foldText(query);\n\n for (const row of rows) {\n if (!needle || !row.foldedLabel.includes(needle)) continue;\n matchIds.push(row.id);\n if (row.selectable) stepIds.push(row.id);\n let parentId = parentOf.get(row.id);\n while (parentId && !ancestorIds.has(parentId)) {\n ancestorIds.add(parentId);\n parentId = parentOf.get(parentId);\n }\n }\n\n const matched = new Set(matchIds);\n const dimmedIds = new Set<string>();\n for (const row of rows) {\n if (!matched.has(row.id) && !ancestorIds.has(row.id)) dimmedIds.add(row.id);\n }\n\n return {\n query,\n active: true,\n matchIds,\n stepIds,\n ancestorIds,\n dimmedIds,\n // Every ancestor of a match opens; already-open ones are a no-op.\n expandIds: [...ancestorIds]\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AA2DA,MAAawB,oBAAqC;CAChDR,OAAO;CACPC,QAAQ;CACRC,UAAU,EAAE;CACZC,SAAS,EAAE;CACXC,6BAAa,IAAIC,KAAK;CACtBC,2BAAW,IAAID,KAAK;CACpBE,WAAW,EAAA;CACZ;;;;;AAMD,MAAME,YAAYC,SAChBA,KACGC,UAAU,MAAM,CAChBC,QAAQ,oBAAoB,GAAG,CAC/BC,aAAa;;AAGlB,MAAaC,YAAYC,SAAyB;CAChD,IAAIC,SAAS;AACb,MAAK,MAAMN,QAAQK,KAAMC,WAAUP,SAASC,KAAK;AACjD,QAAOM;;;;;;AAMT,MAAaC,mBACXF,MACAf,UAC4B;AAC5B,KAAI,CAACe,QAAQ,CAACf,MAAO,QAAO,EAAE;CAC9B,IAAIgB,SAAS;CACb,MAAMG,MAAgB,EAAE;AACxB,MAAK,IAAIC,IAAI,GAAGA,IAAIL,KAAKM,QAAQD,KAAK,EACpC,MAAK,MAAMV,QAAQD,SAASM,KAAKK,GAAG,EAAE;AACpCJ,YAAUN;AACVS,MAAIG,KAAKF,EAAE;;CAGf,MAAM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C;CAED,MAAMM,WAAqB,EAAE;CAC7B,MAAMC,UAAoB,EAAE;CAC5B,MAAMC,8BAAc,IAAIC,KAAa;CACrC,MAAMkB,SAAST,SAASd,MAAM;AAE9B,MAAK,MAAM+C,OAAOf,MAAM;AACtB,MAAI,CAACT,UAAU,CAACwB,IAAIlD,YAAYmD,SAASzB,OAAO,CAAE;AAClDrB,WAASoB,KAAKyB,IAAI7D,GAAG;AACrB,MAAI6D,IAAIjD,WAAYK,SAAQmB,KAAKyB,IAAI7D,GAAG;EACxC,IAAIU,WAAWiD,SAASI,IAAIF,IAAI7D,GAAG;AACnC,SAAOU,YAAY,CAACQ,YAAY8C,IAAItD,SAAS,EAAE;AAC7CQ,eAAY+C,IAAIvD,SAAS;AACzBA,cAAWiD,SAASI,IAAIrD,SAAS;;;CAIrC,MAAMwD,UAAU,IAAI/C,IAAIH,SAAS;CACjC,MAAMI,4BAAY,IAAID,KAAa;AACnC,MAAK,MAAM0C,OAAOf,KAChB,KAAI,CAACoB,QAAQF,IAAIH,IAAI7D,GAAG,IAAI,CAACkB,YAAY8C,IAAIH,IAAI7D,GAAG,CAAEoB,WAAU6C,IAAIJ,IAAI7D,GAAG;AAG7E,QAAO;EACLc;EACAC,QAAQ;EACRC;EACAC;EACAC;EACAE;EAEAC,WAAW,CAAC,GAAGH,YAAW;EAC3B"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { CatalogObject, PromotedEntity } from '../../../domain/inquiryTree';
|
|
2
2
|
import type { DisplayNode } from '../../../domain/inquiryTree/displayTree';
|
|
3
|
+
import type { LoadChildren } from './branchRefreshModel';
|
|
3
4
|
/** One menu = the roots it renders as depth-0 siblings. */
|
|
4
5
|
export type InquiryMenu = DisplayNode[];
|
|
5
6
|
/**
|
|
6
|
-
* Identifier `=` filters for a row — the load-record refetch recipe
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* Identifier `=` filters for a row — the load-record refetch recipe: the
|
|
8
|
+
* entity's catalog identifiers, read off the row. (A `?node` link resolves
|
|
9
|
+
* through its level's identifiers instead — getLevelSearchIdentifiers, where
|
|
10
|
+
* an associatedTreePrimaryKeyMap replaces them.)
|
|
9
11
|
*/
|
|
10
12
|
export declare const buildIdentifierFilterElements: (catalogObjects: CatalogObject[], entityName: string, row: Record<string, unknown>) => Record<string, unknown>[];
|
|
11
13
|
/** What `loadRecord` did, so the caller can word its toast. */
|
|
@@ -25,7 +27,7 @@ export interface LoadRecordResult {
|
|
|
25
27
|
}
|
|
26
28
|
export type LoadRecordOutcome = LoadRecordResult | null;
|
|
27
29
|
export interface UseInquiryMenuArgs {
|
|
28
|
-
/** Nested display seed —
|
|
30
|
+
/** Nested display seed — nestedRootOf(tree.nodes). */
|
|
29
31
|
seed: DisplayNode | null;
|
|
30
32
|
/** The root-record page (useRootRecords rows). */
|
|
31
33
|
rows: Array<Record<string, unknown>> | undefined;
|
|
@@ -46,20 +48,27 @@ export interface UseInquiryMenuArgs {
|
|
|
46
48
|
}
|
|
47
49
|
export declare const useInquiryMenu: ({ seed, rows, catalogObjects, promotedEntities, autoSelectFirst }: UseInquiryMenuArgs) => {
|
|
48
50
|
menuList: InquiryMenu[];
|
|
51
|
+
menuListRef: import("react").MutableRefObject<InquiryMenu[]>;
|
|
49
52
|
setMenuList: import("react").Dispatch<import("react").SetStateAction<InquiryMenu[]>>;
|
|
53
|
+
seededRows: Record<string, unknown>[];
|
|
50
54
|
selectedId: string;
|
|
55
|
+
selectedIdRef: import("react").MutableRefObject<string>;
|
|
51
56
|
selectedNode: DisplayNode;
|
|
52
57
|
selectedRoot: DisplayNode;
|
|
53
58
|
selectedParent: DisplayNode;
|
|
54
59
|
handleSelectNode: (node: DisplayNode) => void;
|
|
55
60
|
selectNodeById: (nodeId: string) => void;
|
|
56
|
-
loadRecord: (configNode: DisplayNode, row: Record<string, unknown
|
|
57
|
-
|
|
58
|
-
|
|
61
|
+
loadRecord: (configNode: DisplayNode, row: Record<string, unknown>, { select }?: {
|
|
62
|
+
select?: boolean;
|
|
63
|
+
}) => LoadRecordResult;
|
|
64
|
+
dropOnto: (target: DisplayNode, source: DisplayNode) => DisplayNode;
|
|
65
|
+
refreshRecord: (record: DisplayNode, row: Record<string, unknown>, loadChildren: LoadChildren) => Promise<void>;
|
|
66
|
+
findConfigLevel: (id: string | number) => DisplayNode;
|
|
59
67
|
expandAll: () => void;
|
|
60
68
|
expandNode: (nodeId: string) => DisplayNode;
|
|
61
69
|
collapseAll: () => void;
|
|
62
70
|
removeRoot: (rootId: string) => void;
|
|
71
|
+
restoreRemoved: () => void;
|
|
63
72
|
resetTree: () => void;
|
|
64
73
|
expandForFilter: (ids: string[]) => void;
|
|
65
74
|
restoreExpansion: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInquiryMenu.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/useInquiryMenu.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useInquiryMenu.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/useInquiryMenu.ts"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACf,MAAM,6BAA6B,CAAC;AAMrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAU3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAgBzD,2DAA2D;AAC3D,MAAM,MAAM,WAAW,GAAG,WAAW,EAAE,CAAC;AAoExC;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,kHAYzC,CAAC;AAEF,+DAA+D;AAC/D,MAAM,WAAW,gBAAgB;IAC/B,gEAAgE;IAChE,MAAM,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG,IAAI,CAAC;AAExD,MAAM,WAAW,kBAAkB;IACjC,wDAAsD;IACtD,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;IACzB,kDAAkD;IAClD,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IACjD,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,gBAAgB,CAAC,EAAE,cAAc,EAAE,CAAC;IACpC;;;;;;;;;;OAUG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;CA+oB1B,CAAC"}
|