udp-react-enterprise-component-library 27.0.0-next.12 → 27.0.0-next.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.d.ts +4 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.js +2 -2
- package/dist/UI/fluent-web-components/UdpIconPicker.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.mjs +32 -28
- package/dist/UI/fluent-web-components/UdpIconPicker.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.d.ts +6 -0
- package/dist/UI/fluent-web-components/UdpLink.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.mjs.map +1 -1
- package/dist/UI/fluent-web-components/types.d.ts +2 -0
- package/dist/UI/fluent-web-components/types.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts +16 -3
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js +36 -13
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs +119 -62
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/index.mjs +3 -2
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts +9 -2
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js +18 -18
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs +79 -67
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts +8 -2
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js +32 -16
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs +129 -102
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts +3 -2
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js +11 -12
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs +6 -4
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts +2 -19
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js +4 -5
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs +5 -4
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs.map +1 -1
- package/dist/actionPanels/index.d.ts +0 -2
- package/dist/actionPanels/index.d.ts.map +1 -1
- package/dist/actionPanels/index.js +0 -2
- package/dist/actionPanels/index.js.map +1 -1
- package/dist/actionPanels/panelActionFields.d.ts +9 -26
- package/dist/actionPanels/panelActionFields.d.ts.map +1 -1
- package/dist/actionPanels/panelActionFields.js +32 -55
- package/dist/actionPanels/panelActionFields.js.map +1 -1
- package/dist/actionPanels/panelActionFields.mjs +159 -375
- package/dist/actionPanels/panelActionFields.mjs.map +1 -1
- package/dist/actionPanels/panelOperations.d.ts +15 -41
- package/dist/actionPanels/panelOperations.d.ts.map +1 -1
- package/dist/actionPanels/panelOperations.js +51 -89
- package/dist/actionPanels/panelOperations.js.map +1 -1
- package/dist/actionPanels/panelOperations.mjs +37 -92
- package/dist/actionPanels/panelOperations.mjs.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.d.ts +15 -2
- package/dist/domain/actionPanel/actionTypeMeta.d.ts.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.js +21 -2
- package/dist/domain/actionPanel/actionTypeMeta.js.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.mjs +18 -3
- package/dist/domain/actionPanel/actionTypeMeta.mjs.map +1 -1
- package/dist/domain/actionPanel/buttonOrder.d.ts +67 -0
- package/dist/domain/actionPanel/buttonOrder.d.ts.map +1 -0
- package/dist/domain/actionPanel/buttonOrder.js +105 -0
- package/dist/domain/actionPanel/buttonOrder.js.map +1 -0
- package/dist/domain/actionPanel/buttonOrder.mjs +90 -0
- package/dist/domain/actionPanel/buttonOrder.mjs.map +1 -0
- package/dist/domain/actionPanel/index.d.ts +1 -0
- package/dist/domain/actionPanel/index.d.ts.map +1 -1
- package/dist/domain/actionPanel/index.js +1 -0
- package/dist/domain/actionPanel/index.js.map +1 -1
- package/dist/domain/actionPanel/index.mjs +4 -3
- package/dist/domain/actionPanel/serialize.d.ts +6 -2
- package/dist/domain/actionPanel/serialize.d.ts.map +1 -1
- package/dist/domain/actionPanel/serialize.js +10 -3
- package/dist/domain/actionPanel/serialize.js.map +1 -1
- package/dist/domain/actionPanel/serialize.mjs +7 -3
- package/dist/domain/actionPanel/serialize.mjs.map +1 -1
- package/dist/domain/actionPanel/types.d.ts +24 -8
- package/dist/domain/actionPanel/types.d.ts.map +1 -1
- package/dist/domain/actionPanel/types.js.map +1 -1
- package/dist/domain/actionPanel/types.mjs.map +1 -1
- package/dist/domain/inquiryTree/describe.d.ts +15 -3
- package/dist/domain/inquiryTree/describe.d.ts.map +1 -1
- package/dist/domain/inquiryTree/describe.js +32 -28
- package/dist/domain/inquiryTree/describe.js.map +1 -1
- package/dist/domain/inquiryTree/describe.mjs +34 -16
- package/dist/domain/inquiryTree/describe.mjs.map +1 -1
- package/dist/domain/inquiryTree/displayTree.d.ts +75 -97
- package/dist/domain/inquiryTree/displayTree.d.ts.map +1 -1
- package/dist/domain/inquiryTree/displayTree.js +418 -551
- package/dist/domain/inquiryTree/displayTree.js.map +1 -1
- package/dist/domain/inquiryTree/displayTree.mjs +345 -414
- package/dist/domain/inquiryTree/displayTree.mjs.map +1 -1
- package/dist/domain/inquiryTree/groups.d.ts +2 -0
- package/dist/domain/inquiryTree/groups.d.ts.map +1 -1
- package/dist/domain/inquiryTree/groups.js.map +1 -1
- package/dist/domain/inquiryTree/groups.mjs.map +1 -1
- package/dist/domain/inquiryTree/index.d.ts +1 -1
- package/dist/domain/inquiryTree/index.d.ts.map +1 -1
- package/dist/domain/inquiryTree/index.js +1 -1
- package/dist/domain/inquiryTree/index.js.map +1 -1
- package/dist/domain/inquiryTree/index.mjs +12 -12
- package/dist/domain/inquiryTree/lazyLoad.d.ts +20 -129
- package/dist/domain/inquiryTree/lazyLoad.d.ts.map +1 -1
- package/dist/domain/inquiryTree/lazyLoad.js +48 -233
- package/dist/domain/inquiryTree/lazyLoad.js.map +1 -1
- package/dist/domain/inquiryTree/lazyLoad.mjs +32 -187
- package/dist/domain/inquiryTree/lazyLoad.mjs.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.d.ts +13 -14
- package/dist/domain/inquiryTree/legalChildren.d.ts.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.js +21 -42
- package/dist/domain/inquiryTree/legalChildren.js.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.mjs +19 -37
- package/dist/domain/inquiryTree/legalChildren.mjs.map +1 -1
- package/dist/domain/inquiryTree/names.d.ts +38 -0
- package/dist/domain/inquiryTree/names.d.ts.map +1 -0
- package/dist/domain/inquiryTree/names.js +64 -0
- package/dist/domain/inquiryTree/names.js.map +1 -0
- package/dist/domain/inquiryTree/names.mjs +56 -0
- package/dist/domain/inquiryTree/names.mjs.map +1 -0
- package/dist/domain/inquiryTree/operations.d.ts +6 -2
- package/dist/domain/inquiryTree/operations.d.ts.map +1 -1
- package/dist/domain/inquiryTree/operations.js +17 -16
- package/dist/domain/inquiryTree/operations.js.map +1 -1
- package/dist/domain/inquiryTree/operations.mjs +14 -11
- package/dist/domain/inquiryTree/operations.mjs.map +1 -1
- package/dist/domain/inquiryTree/rules.d.ts +3 -4
- package/dist/domain/inquiryTree/rules.d.ts.map +1 -1
- package/dist/domain/inquiryTree/rules.js +3 -13
- package/dist/domain/inquiryTree/rules.js.map +1 -1
- package/dist/domain/inquiryTree/rules.mjs +3 -9
- package/dist/domain/inquiryTree/rules.mjs.map +1 -1
- package/dist/domain/inquiryTree/runtime.d.ts +23 -16
- package/dist/domain/inquiryTree/runtime.d.ts.map +1 -1
- package/dist/domain/inquiryTree/runtime.js +46 -54
- package/dist/domain/inquiryTree/runtime.js.map +1 -1
- package/dist/domain/inquiryTree/runtime.mjs +31 -26
- package/dist/domain/inquiryTree/runtime.mjs.map +1 -1
- package/dist/domain/inquiryTree/serialize.d.ts +20 -29
- package/dist/domain/inquiryTree/serialize.d.ts.map +1 -1
- package/dist/domain/inquiryTree/serialize.js +93 -205
- package/dist/domain/inquiryTree/serialize.js.map +1 -1
- package/dist/domain/inquiryTree/serialize.mjs +89 -180
- package/dist/domain/inquiryTree/serialize.mjs.map +1 -1
- package/dist/domain/inquiryTree/types.d.ts +146 -65
- package/dist/domain/inquiryTree/types.d.ts.map +1 -1
- package/dist/domain/inquiryTree/types.js +5 -0
- package/dist/domain/inquiryTree/types.js.map +1 -1
- package/dist/domain/inquiryTree/types.mjs +3 -1
- package/dist/domain/inquiryTree/types.mjs.map +1 -1
- package/dist/domain/inquiryTree/validate.d.ts +9 -2
- package/dist/domain/inquiryTree/validate.d.ts.map +1 -1
- package/dist/domain/inquiryTree/validate.js +30 -58
- package/dist/domain/inquiryTree/validate.js.map +1 -1
- package/dist/domain/inquiryTree/validate.mjs +29 -44
- package/dist/domain/inquiryTree/validate.mjs.map +1 -1
- package/dist/domain/inquiryTree/view.d.ts +8 -12
- package/dist/domain/inquiryTree/view.d.ts.map +1 -1
- package/dist/domain/inquiryTree/view.js +40 -66
- package/dist/domain/inquiryTree/view.js.map +1 -1
- package/dist/domain/inquiryTree/view.mjs +30 -60
- package/dist/domain/inquiryTree/view.mjs.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.d.ts +32 -48
- package/dist/domain/inquiryTree/waveLoad.d.ts.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.js +75 -90
- package/dist/domain/inquiryTree/waveLoad.js.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.mjs +54 -60
- package/dist/domain/inquiryTree/waveLoad.mjs.map +1 -1
- package/dist/domain/inquiryTree/wireString.d.ts +5 -0
- package/dist/domain/inquiryTree/wireString.d.ts.map +1 -1
- package/dist/domain/inquiryTree/wireString.js +11 -0
- package/dist/domain/inquiryTree/wireString.js.map +1 -1
- package/dist/domain/inquiryTree/wireString.mjs +10 -1
- package/dist/domain/inquiryTree/wireString.mjs.map +1 -1
- package/dist/domain/nodeView/index.mjs +2 -2
- package/dist/domain/nodeView/model.d.ts +35 -30
- package/dist/domain/nodeView/model.d.ts.map +1 -1
- package/dist/domain/nodeView/model.js +108 -69
- package/dist/domain/nodeView/model.js.map +1 -1
- package/dist/domain/nodeView/model.mjs +86 -36
- package/dist/domain/nodeView/model.mjs.map +1 -1
- package/dist/icons/legacyIconNames.d.ts.map +1 -1
- package/dist/icons/legacyIconNames.js +46 -1
- package/dist/icons/legacyIconNames.js.map +1 -1
- package/dist/icons/legacyIconNames.mjs +46 -1
- package/dist/icons/legacyIconNames.mjs.map +1 -1
- package/dist/index.mjs +10 -12
- package/dist/inquiry/Inquiry.d.ts +3 -0
- package/dist/inquiry/Inquiry.d.ts.map +1 -1
- package/dist/inquiry/Inquiry.js +3 -0
- package/dist/inquiry/Inquiry.js.map +1 -1
- package/dist/inquiry/Inquiry.mjs +3 -0
- package/dist/inquiry/Inquiry.mjs.map +1 -1
- package/dist/inquiry/v2/InquiryV2.d.ts +8 -6
- package/dist/inquiry/v2/InquiryV2.d.ts.map +1 -1
- package/dist/inquiry/v2/InquiryV2.js +45 -24
- package/dist/inquiry/v2/InquiryV2.js.map +1 -1
- package/dist/inquiry/v2/InquiryV2.mjs +108 -61
- package/dist/inquiry/v2/InquiryV2.mjs.map +1 -1
- package/dist/inquiry/v2/InquiryV2.module.css +60 -15
- package/dist/inquiry/v2/InquiryWorkspace.d.ts +9 -9
- package/dist/inquiry/v2/InquiryWorkspace.d.ts.map +1 -1
- package/dist/inquiry/v2/InquiryWorkspace.js +531 -408
- package/dist/inquiry/v2/InquiryWorkspace.js.map +1 -1
- package/dist/inquiry/v2/InquiryWorkspace.mjs +524 -408
- package/dist/inquiry/v2/InquiryWorkspace.mjs.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts +3 -2
- package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.js +20 -37
- package/dist/inquiry/v2/ai/InquiryV2Copilot.js.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs +19 -31
- package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.d.ts +6 -14
- package/dist/inquiry/v2/ai/copilotModel.d.ts.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.js +35 -87
- package/dist/inquiry/v2/ai/copilotModel.js.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.mjs +23 -47
- package/dist/inquiry/v2/ai/copilotModel.mjs.map +1 -1
- package/dist/inquiry/v2/api/queries.d.ts +46 -73
- package/dist/inquiry/v2/api/queries.d.ts.map +1 -1
- package/dist/inquiry/v2/api/queries.js +151 -210
- package/dist/inquiry/v2/api/queries.js.map +1 -1
- package/dist/inquiry/v2/api/queries.mjs +227 -183
- package/dist/inquiry/v2/api/queries.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js +103 -32
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs +92 -32
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.module.css +8 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts +20 -16
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js +111 -68
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs +108 -142
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/RetrieveSurface.mjs +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts +66 -50
- package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.js +141 -66
- package/dist/inquiry/v2/capabilities/actions/actionModel.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.mjs +115 -53
- package/dist/inquiry/v2/capabilities/actions/actionModel.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts +26 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js +36 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs +41 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/runAction.d.ts +3 -2
- package/dist/inquiry/v2/capabilities/actions/runAction.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/runAction.js +27 -23
- package/dist/inquiry/v2/capabilities/actions/runAction.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/runAction.mjs +26 -20
- package/dist/inquiry/v2/capabilities/actions/runAction.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts +20 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js +112 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs +118 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts +25 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js +7 -4
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs +9 -4
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts +5 -3
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js +11 -8
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs +13 -7
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.module.css +4 -4
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.js +20 -17
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs +101 -111
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.module.css +9 -6
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts +2 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js +9 -2
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs +18 -15
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/index.d.ts +0 -1
- package/dist/inquiry/v2/index.d.ts.map +1 -1
- package/dist/inquiry/v2/index.js.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts +3 -3
- package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.js +11 -5
- package/dist/inquiry/v2/kernel/ActionRunnerContext.js.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs +15 -12
- package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts +3 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts.map +1 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.js +14 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.js.map +1 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs +20 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs.map +1 -0
- package/dist/inquiry/v2/kernel/RecordContext.d.ts +2 -0
- package/dist/inquiry/v2/kernel/RecordContext.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/RecordContext.js.map +1 -1
- package/dist/inquiry/v2/kernel/RecordContext.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.js +18 -13
- package/dist/inquiry/v2/kernel/UdpNodeView.js.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.mjs +177 -140
- package/dist/inquiry/v2/kernel/UdpNodeView.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.module.css +56 -5
- package/dist/inquiry/v2/kernel/capabilities.d.ts +0 -2
- package/dist/inquiry/v2/kernel/capabilities.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/capabilities.js.map +1 -1
- package/dist/inquiry/v2/kernel/capabilities.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts +26 -37
- package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.js +48 -57
- package/dist/inquiry/v2/landing/InquiryExplorePage.js.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.mjs +102 -106
- package/dist/inquiry/v2/landing/InquiryExplorePage.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.module.css +58 -6
- package/dist/inquiry/v2/landing/InquiryLanding.d.ts +3 -3
- package/dist/inquiry/v2/landing/InquiryLanding.d.ts.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.js +8 -3
- package/dist/inquiry/v2/landing/InquiryLanding.js.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.mjs +51 -35
- package/dist/inquiry/v2/landing/InquiryLanding.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.module.css +8 -0
- package/dist/inquiry/v2/page/UdpPageRenderer.d.ts +5 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.d.ts.map +1 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.js +13 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.js.map +1 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.mjs +36 -7
- package/dist/inquiry/v2/page/UdpPageRenderer.mjs.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.d.ts +1 -7
- package/dist/inquiry/v2/search/InquirySearchPanel.d.ts.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.js +6 -13
- package/dist/inquiry/v2/search/InquirySearchPanel.js.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.mjs +4 -8
- package/dist/inquiry/v2/search/InquirySearchPanel.mjs.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.d.ts +30 -1
- package/dist/inquiry/v2/search/RecordFinder.d.ts.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.js +43 -20
- package/dist/inquiry/v2/search/RecordFinder.js.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.mjs +68 -42
- package/dist/inquiry/v2/search/RecordFinder.mjs.map +1 -1
- package/dist/inquiry/v2/search/index.d.ts +3 -3
- package/dist/inquiry/v2/search/index.d.ts.map +1 -1
- package/dist/inquiry/v2/search/index.js +1 -1
- package/dist/inquiry/v2/search/index.js.map +1 -1
- package/dist/inquiry/v2/search/searchModel.d.ts +130 -23
- package/dist/inquiry/v2/search/searchModel.d.ts.map +1 -1
- package/dist/inquiry/v2/search/searchModel.js +237 -36
- package/dist/inquiry/v2/search/searchModel.js.map +1 -1
- package/dist/inquiry/v2/search/searchModel.mjs +207 -34
- package/dist/inquiry/v2/search/searchModel.mjs.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.d.ts.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.js +46 -19
- package/dist/inquiry/v2/search/useInquirySearch.js.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.mjs +83 -84
- package/dist/inquiry/v2/search/useInquirySearch.mjs.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts +4 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js +174 -166
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs +343 -325
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts +3 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.js +8 -7
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.js.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs +68 -72
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts +3 -3
- package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.js +12 -7
- package/dist/inquiry/v2/tree/LoadRecordDialog.js.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.mjs +48 -33
- package/dist/inquiry/v2/tree/LoadRecordDialog.mjs.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.js +17 -6
- package/dist/inquiry/v2/tree/NodeList.js.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.mjs +49 -36
- package/dist/inquiry/v2/tree/NodeList.mjs.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.d.ts +15 -0
- package/dist/inquiry/v2/tree/arrivalModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.js +14 -1
- package/dist/inquiry/v2/tree/arrivalModel.js.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.mjs +12 -1
- package/dist/inquiry/v2/tree/arrivalModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/branchRefreshModel.d.ts +32 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.d.ts.map +1 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.js +62 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.js.map +1 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.mjs +60 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.mjs.map +1 -0
- package/dist/inquiry/v2/tree/droppedPageModel.d.ts +23 -1
- package/dist/inquiry/v2/tree/droppedPageModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/droppedPageModel.js +53 -26
- package/dist/inquiry/v2/tree/droppedPageModel.js.map +1 -1
- package/dist/inquiry/v2/tree/droppedPageModel.mjs +48 -20
- package/dist/inquiry/v2/tree/droppedPageModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts +7 -12
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js +44 -15
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs +34 -15
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js +7 -18
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs +6 -14
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts +20 -16
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js +77 -55
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs +85 -106
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.d.ts +18 -1
- package/dist/inquiry/v2/tree/lineageModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.js +71 -2
- package/dist/inquiry/v2/tree/lineageModel.js.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.mjs +53 -3
- package/dist/inquiry/v2/tree/lineageModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.d.ts +10 -27
- package/dist/inquiry/v2/tree/menuRebuildModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.js +8 -58
- package/dist/inquiry/v2/tree/menuRebuildModel.js.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.mjs +8 -51
- package/dist/inquiry/v2/tree/menuRebuildModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts +26 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts.map +1 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.js +56 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.js.map +1 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.mjs +43 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.mjs.map +1 -0
- package/dist/inquiry/v2/tree/rootRemovalModel.d.ts +7 -0
- package/dist/inquiry/v2/tree/rootRemovalModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/rootRemovalModel.js +31 -5
- package/dist/inquiry/v2/tree/rootRemovalModel.js.map +1 -1
- package/dist/inquiry/v2/tree/rootRemovalModel.mjs +21 -4
- package/dist/inquiry/v2/tree/rootRemovalModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.d.ts +0 -2
- package/dist/inquiry/v2/tree/treeFilterModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.js +0 -7
- package/dist/inquiry/v2/tree/treeFilterModel.js.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.d.ts +16 -7
- package/dist/inquiry/v2/tree/useInquiryMenu.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.js +401 -163
- package/dist/inquiry/v2/tree/useInquiryMenu.js.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.mjs +511 -310
- package/dist/inquiry/v2/tree/useInquiryMenu.mjs.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.d.ts +10 -11
- package/dist/inquiry/v2/tree/waveLoader.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.js +78 -72
- package/dist/inquiry/v2/tree/waveLoader.js.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.mjs +79 -68
- package/dist/inquiry/v2/tree/waveLoader.mjs.map +1 -1
- package/dist/inquiry/v2/widgets/listRow.module.css +27 -0
- package/dist/inquiry/v2/widgets/widgetRowModel.d.ts +6 -2
- package/dist/inquiry/v2/widgets/widgetRowModel.d.ts.map +1 -1
- package/dist/inquiry/v2/widgets/widgetRowModel.js +49 -14
- package/dist/inquiry/v2/widgets/widgetRowModel.js.map +1 -1
- package/dist/inquiry/v2/widgets/widgetRowModel.mjs +36 -12
- package/dist/inquiry/v2/widgets/widgetRowModel.mjs.map +1 -1
- package/dist/maintenance/UdpTaggedRecordsPage.mjs +1 -1
- package/dist/maintenance/api/lookupApi.mjs +1 -1
- package/dist/maintenance/api/tagsApi.mjs +1 -1
- package/dist/maintenance/config/nodeDefaults.d.ts.map +1 -1
- package/dist/maintenance/config/nodeDefaults.js +16 -5
- package/dist/maintenance/config/nodeDefaults.js.map +1 -1
- package/dist/maintenance/config/nodeDefaults.mjs +14 -5
- package/dist/maintenance/config/nodeDefaults.mjs.map +1 -1
- package/dist/maintenance/config/useEntityConfig.mjs +1 -1
- package/dist/maintenance/config/useLinkedLabels.mjs +1 -1
- package/dist/maintenance/grid/MaintenanceGrid.mjs +1 -1
- package/dist/maintenance/metadata/useEntityMetadata.mjs +1 -1
- package/dist/maintenance/record/ChildTab.mjs +1 -1
- package/dist/maintenance/record/DeleteRecordDialog.mjs +1 -1
- package/dist/maintenance/record/LinkRecordsSheet.mjs +1 -1
- package/dist/maintenance/record/RecordFacts.mjs +1 -1
- package/dist/maintenance/record/RecordSheet.mjs +2 -2
- package/dist/maintenance/record/displayValue.mjs +1 -1
- package/dist/maintenance/record/stampDisplayText.mjs +1 -1
- package/dist/maintenance/settings/useEntityCatalog.mjs +1 -1
- package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +4 -5
- package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts.map +1 -1
- package/dist/stores/inquiryStore.d.ts +2 -1
- package/dist/stores/inquiryStore.d.ts.map +1 -1
- package/dist/stores/inquiryStore.js +4 -3
- package/dist/stores/inquiryStore.js.map +1 -1
- package/dist/stores/inquiryStore.mjs +18 -11
- package/dist/stores/inquiryStore.mjs.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.d.ts.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs +2 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/components/EntitiyTimeLine.mjs +1 -1
- package/dist/udp/utilities/useDateStringColumnDef.d.ts +1 -1
- package/dist/utilities/i18n/locales/es-US.json +23 -5
- package/dist/utilities/i18n/locales/es-US.mjs +24 -4
- package/dist/utilities/i18n/locales/fr-CA.json +23 -5
- package/dist/utilities/i18n/locales/fr-CA.mjs +24 -4
- package/package.json +30 -18
- package/dist/actionPanels/PanelActionForm.d.ts +0 -56
- package/dist/actionPanels/PanelActionForm.d.ts.map +0 -1
- package/dist/actionPanels/PanelActionForm.js +0 -30
- package/dist/actionPanels/PanelActionForm.js.map +0 -1
- package/dist/actionPanels/PanelActionForm.mjs +0 -168
- package/dist/actionPanels/PanelActionForm.mjs.map +0 -1
- package/dist/actionPanels/PanelEditor.d.ts +0 -44
- package/dist/actionPanels/PanelEditor.d.ts.map +0 -1
- package/dist/actionPanels/PanelEditor.js +0 -78
- package/dist/actionPanels/PanelEditor.js.map +0 -1
- package/dist/actionPanels/PanelEditor.mjs +0 -345
- package/dist/actionPanels/PanelEditor.mjs.map +0 -1
- package/dist/actionPanels/panelActionFields.module.css +0 -18
- package/dist/domain/inquiryTree/ruleBindings.d.ts +0 -10
- package/dist/domain/inquiryTree/ruleBindings.d.ts.map +0 -1
- package/dist/domain/inquiryTree/ruleBindings.js +0 -20
- package/dist/domain/inquiryTree/ruleBindings.js.map +0 -1
- package/dist/domain/inquiryTree/ruleBindings.mjs +0 -21
- package/dist/domain/inquiryTree/ruleBindings.mjs.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.d.ts +0 -17
- package/dist/inquiry/v2/kernel/readOnlyModel.d.ts.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.js +0 -19
- package/dist/inquiry/v2/kernel/readOnlyModel.js.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.mjs +0 -21
- package/dist/inquiry/v2/kernel/readOnlyModel.mjs.map +0 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { c } from "../../../reactCompilerRuntime.mjs";
|
|
2
2
|
import { getSearchIdentifiers } from "../../../domain/inquiryTree/runtime.mjs";
|
|
3
|
+
import { buildDisplayTree, buildPreloadedDisplayList, groupsLevelRecords, hasUnloadedChildren, resolveRowLabel } from "../../../domain/inquiryTree/displayTree.mjs";
|
|
3
4
|
import { buildRecordEntryFilterElements } from "../../../domain/inquiryTree/waveLoad.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { preserveMenuWorkspace
|
|
5
|
+
import { ancestorIdsOf, findNodeById, findRecordParent, locateInMenus, locateNodeById, patchMenuEntry } from "./lineageModel.mjs";
|
|
6
|
+
import { asDrop, dropPageNode, isDroppedPageNode, rebuildDroppedPage } from "./droppedPageModel.mjs";
|
|
7
|
+
import { preserveMenuWorkspace } from "./menuRebuildModel.mjs";
|
|
7
8
|
import { removeRootFromMenus } from "./rootRemovalModel.mjs";
|
|
9
|
+
import { reloadBranch } from "./branchRefreshModel.mjs";
|
|
8
10
|
import { firstRecordId, locateRecordByKey, reselectAfterRebuild } from "./selectionModel.mjs";
|
|
9
11
|
import { useEffect, useRef, useState } from "react";
|
|
10
12
|
//#region src/inquiry/v2/tree/useInquiryMenu.ts
|
|
@@ -23,7 +25,7 @@ import { useEffect, useRef, useState } from "react";
|
|
|
23
25
|
*
|
|
24
26
|
* Composition follows the Tree Builder preview's live-menu path: the nested
|
|
25
27
|
* seed (makeDisplayTreeStructure output, built once by the caller from the
|
|
26
|
-
*
|
|
28
|
+
* tree) + the root-record page → buildPreloadedDisplayList, so root
|
|
27
29
|
* group configuration, icons, and lazy-child descriptors are all stamped by the
|
|
28
30
|
* domain pipeline. `rows` arrive WAVE-HYDRATED (v2/tree/waveLoader): every
|
|
29
31
|
* eager level's records are already grafted onto their parent row, so the
|
|
@@ -41,7 +43,7 @@ import { useEffect, useRef, useState } from "react";
|
|
|
41
43
|
* across through menuRebuildModel — the roots the user loaded in, and how far
|
|
42
44
|
* they had opened the tree. Only `resetTree` throws that away. A mutation on a
|
|
43
45
|
* CHILD record leaves the root page answering identically, so no rebuild fires
|
|
44
|
-
* at all: `
|
|
46
|
+
* at all: `refreshRecord` recomposes the branch that mutation touched.
|
|
45
47
|
*
|
|
46
48
|
* Loaded records graft through the same pipeline: the searched entity's config
|
|
47
49
|
* node is located in the nested seed and buildDisplayTree composes its subtree
|
|
@@ -51,37 +53,68 @@ import { useEffect, useRef, useState } from "react";
|
|
|
51
53
|
* Loaded roots live until they are removed, or the tree is reset.
|
|
52
54
|
*/
|
|
53
55
|
/**
|
|
54
|
-
* v1's expandAllNodes/collapseAllNodes walk. `cachedOnly`
|
|
55
|
-
* whose children haven't loaded, so expand-all never triggers a
|
|
56
|
-
* unloaded lazy folders stay collapsed until the user opens them.
|
|
57
|
-
* (`properties.lazyLoad` here is the DISPLAY marker the composer stamps on rows
|
|
58
|
-
* that have an unloaded level, not the retired wire flag.)
|
|
56
|
+
* v1's expandAllNodes/collapseAllNodes walk: every row id. `cachedOnly` stops
|
|
57
|
+
* at lazy levels whose children haven't loaded, so expand-all never triggers a
|
|
58
|
+
* fetch storm — unloaded lazy folders stay collapsed until the user opens them.
|
|
59
59
|
*/
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
const collectRowIds = (menus, cachedOnly) => {
|
|
61
|
+
const ids = /* @__PURE__ */ new Set();
|
|
62
|
+
const walk = (node) => {
|
|
63
|
+
if (cachedOnly && hasUnloadedChildren(node)) return;
|
|
64
|
+
ids.add(node.id);
|
|
65
|
+
(node.children ?? []).forEach(walk);
|
|
66
|
+
};
|
|
67
|
+
menus.forEach((menu) => menu.forEach(walk));
|
|
68
|
+
return ids;
|
|
64
69
|
};
|
|
65
70
|
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
|
|
71
|
+
* Set `isExpanded` on the rows `ids` names, path-copying (patchMenuEntry):
|
|
72
|
+
* untouched rows keep their identity, and nothing to change → same list.
|
|
73
|
+
*/
|
|
74
|
+
const setExpansion = (menus, ids, expandedOf) => {
|
|
75
|
+
const next = menus.map((menu) => patchMenuEntry(menu, ids, (copy) => {
|
|
76
|
+
const expanded = expandedOf(copy);
|
|
77
|
+
if (copy.isExpanded === expanded) return false;
|
|
78
|
+
copy.isExpanded = expanded;
|
|
79
|
+
return true;
|
|
80
|
+
}));
|
|
81
|
+
return next.some((menu, index) => menu !== menus[index]) ? next : menus;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Open every row above `id` (and `id` itself when `openSelf`). The tree item
|
|
85
|
+
* shows a selected row's ancestors open on its own, so a row selected inside
|
|
86
|
+
* a collapsed branch (a deep link, a load, filter stepping, the copilot, the
|
|
87
|
+
* default selection) must open them in the model too — else the first chevron
|
|
88
|
+
* click on such an ancestor flips it to open, which it already looks, and
|
|
89
|
+
* nothing visibly happens.
|
|
90
|
+
*/
|
|
91
|
+
const revealRow = (menus, id, openSelf = false) => {
|
|
92
|
+
const location = locateNodeById(menus, id);
|
|
93
|
+
if (!location) return menus;
|
|
94
|
+
const ids = new Set(ancestorIdsOf(location.root, id));
|
|
95
|
+
if (openSelf) ids.add(location.node.id);
|
|
96
|
+
return setExpansion(menus, ids, () => true);
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Identifier `=` filters for a row — the load-record refetch recipe: the
|
|
100
|
+
* entity's catalog identifiers, read off the row. (A `?node` link resolves
|
|
101
|
+
* through its level's identifiers instead — getLevelSearchIdentifiers, where
|
|
102
|
+
* an associatedTreePrimaryKeyMap replaces them.)
|
|
69
103
|
*/
|
|
70
104
|
const buildIdentifierFilterElements = (catalogObjects, entityName, row) => {
|
|
71
105
|
if (!catalogObjects?.length || !entityName) return [];
|
|
72
106
|
const identifiers = getSearchIdentifiers(catalogObjects, entityName) ?? [];
|
|
73
107
|
if (!identifiers.length) return [];
|
|
74
|
-
return buildRecordEntryFilterElements(identifiers,
|
|
108
|
+
return buildRecordEntryFilterElements(identifiers, identifiers.map((identifier) => row[identifier]));
|
|
75
109
|
};
|
|
76
110
|
const useInquiryMenu = (t0) => {
|
|
77
|
-
const $ = c(
|
|
111
|
+
const $ = c(88);
|
|
78
112
|
const { seed, rows, catalogObjects, promotedEntities, autoSelectFirst: t1 } = t0;
|
|
79
113
|
const autoSelectFirst = t1 === void 0 ? true : t1;
|
|
80
114
|
let t2;
|
|
81
115
|
if ($[0] !== catalogObjects || $[1] !== promotedEntities) {
|
|
82
116
|
t2 = {
|
|
83
117
|
makeId: _temp,
|
|
84
|
-
loadMode: "config",
|
|
85
118
|
catalogObjects,
|
|
86
119
|
promotedEntities
|
|
87
120
|
};
|
|
@@ -97,6 +130,7 @@ const useInquiryMenu = (t0) => {
|
|
|
97
130
|
} else t3 = $[3];
|
|
98
131
|
const [menuList, setMenuList] = useState(t3);
|
|
99
132
|
const [selectedId, setSelectedId] = useState(null);
|
|
133
|
+
const [seededRows, setSeededRows] = useState(rows);
|
|
100
134
|
let t4;
|
|
101
135
|
if ($[4] !== menuList || $[5] !== selectedId) {
|
|
102
136
|
t4 = locateNodeById(menuList, selectedId);
|
|
@@ -116,395 +150,562 @@ const useInquiryMenu = (t0) => {
|
|
|
116
150
|
} else t5 = $[9];
|
|
117
151
|
const selectedParent = t5;
|
|
118
152
|
let t6;
|
|
119
|
-
if ($[10] !==
|
|
120
|
-
t6 = () =>
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
$[10] = buildOptions;
|
|
126
|
-
$[11] = rows;
|
|
127
|
-
$[12] = seed;
|
|
128
|
-
$[13] = t6;
|
|
129
|
-
} else t6 = $[13];
|
|
130
|
-
const buildSeededList = t6;
|
|
153
|
+
if ($[10] !== seed) {
|
|
154
|
+
t6 = (level) => !!seed && level.id === seed.id && groupsLevelRecords(seed);
|
|
155
|
+
$[10] = seed;
|
|
156
|
+
$[11] = t6;
|
|
157
|
+
} else t6 = $[11];
|
|
158
|
+
const joinsRootGroups = t6;
|
|
131
159
|
let t7;
|
|
132
|
-
if ($[
|
|
133
|
-
t7 =
|
|
134
|
-
$[
|
|
135
|
-
} else t7 = $[
|
|
136
|
-
const
|
|
160
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
161
|
+
t7 = /* @__PURE__ */ new Set();
|
|
162
|
+
$[12] = t7;
|
|
163
|
+
} else t7 = $[12];
|
|
164
|
+
const removedKeysRef = useRef(t7);
|
|
137
165
|
let t8;
|
|
166
|
+
if ($[13] !== buildOptions || $[14] !== joinsRootGroups || $[15] !== rows || $[16] !== seed) {
|
|
167
|
+
t8 = (loaded) => {
|
|
168
|
+
if (!seed) return [];
|
|
169
|
+
const keys = new Set((rows ?? []).map(_temp2));
|
|
170
|
+
const joining = loaded.filter((root) => joinsRootGroups(root.level)).map(_temp3).filter((row_0) => !keys.has(row_0.businessObjectKey));
|
|
171
|
+
const pageRows = [...(rows ?? []).filter((row_1) => !removedKeysRef.current.has(row_1.businessObjectKey)), ...joining];
|
|
172
|
+
if (!pageRows.length) return [];
|
|
173
|
+
const built = buildPreloadedDisplayList(seed, pageRows, buildOptions);
|
|
174
|
+
return Array.isArray(built) && built.length ? [built] : [];
|
|
175
|
+
};
|
|
176
|
+
$[13] = buildOptions;
|
|
177
|
+
$[14] = joinsRootGroups;
|
|
178
|
+
$[15] = rows;
|
|
179
|
+
$[16] = seed;
|
|
180
|
+
$[17] = t8;
|
|
181
|
+
} else t8 = $[17];
|
|
182
|
+
const buildSeededList = t8;
|
|
138
183
|
let t9;
|
|
139
|
-
if ($[
|
|
140
|
-
|
|
184
|
+
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
185
|
+
t9 = [];
|
|
186
|
+
$[18] = t9;
|
|
187
|
+
} else t9 = $[18];
|
|
188
|
+
const menuListRef = useRef(t9);
|
|
189
|
+
let t10;
|
|
190
|
+
let t11;
|
|
191
|
+
if ($[19] !== menuList) {
|
|
192
|
+
t10 = () => {
|
|
141
193
|
menuListRef.current = menuList;
|
|
142
194
|
};
|
|
143
|
-
|
|
144
|
-
$[
|
|
145
|
-
$[
|
|
146
|
-
$[
|
|
195
|
+
t11 = [menuList];
|
|
196
|
+
$[19] = menuList;
|
|
197
|
+
$[20] = t10;
|
|
198
|
+
$[21] = t11;
|
|
147
199
|
} else {
|
|
148
|
-
|
|
149
|
-
|
|
200
|
+
t10 = $[20];
|
|
201
|
+
t11 = $[21];
|
|
150
202
|
}
|
|
151
|
-
useEffect(
|
|
152
|
-
let t10;
|
|
153
|
-
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
154
|
-
t10 = [];
|
|
155
|
-
$[18] = t10;
|
|
156
|
-
} else t10 = $[18];
|
|
157
|
-
const loadedRootsRef = useRef(t10);
|
|
158
|
-
let t11;
|
|
159
|
-
if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
|
|
160
|
-
t11 = [];
|
|
161
|
-
$[19] = t11;
|
|
162
|
-
} else t11 = $[19];
|
|
163
|
-
const droppedPagesRef = useRef(t11);
|
|
164
|
-
const selectedIdRef = useRef(null);
|
|
203
|
+
useEffect(t10, t11);
|
|
165
204
|
let t12;
|
|
205
|
+
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
206
|
+
t12 = (update) => {
|
|
207
|
+
menuListRef.current = update(menuListRef.current);
|
|
208
|
+
setMenuList(update);
|
|
209
|
+
};
|
|
210
|
+
$[22] = t12;
|
|
211
|
+
} else t12 = $[22];
|
|
212
|
+
const updateMenuList = t12;
|
|
166
213
|
let t13;
|
|
167
|
-
if ($[
|
|
168
|
-
|
|
214
|
+
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
215
|
+
t13 = [];
|
|
216
|
+
$[23] = t13;
|
|
217
|
+
} else t13 = $[23];
|
|
218
|
+
const loadedRootsRef = useRef(t13);
|
|
219
|
+
let t14;
|
|
220
|
+
if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
|
|
221
|
+
t14 = [];
|
|
222
|
+
$[24] = t14;
|
|
223
|
+
} else t14 = $[24];
|
|
224
|
+
const foreignLevelsRef = useRef(t14);
|
|
225
|
+
let t15;
|
|
226
|
+
if ($[25] !== seed) {
|
|
227
|
+
t15 = (id) => {
|
|
228
|
+
const own = findNodeById(seed, id);
|
|
229
|
+
if (own) return own;
|
|
230
|
+
for (const level_0 of foreignLevelsRef.current) {
|
|
231
|
+
const found = findNodeById(level_0, id);
|
|
232
|
+
if (found) return found;
|
|
233
|
+
}
|
|
234
|
+
return null;
|
|
235
|
+
};
|
|
236
|
+
$[25] = seed;
|
|
237
|
+
$[26] = t15;
|
|
238
|
+
} else t15 = $[26];
|
|
239
|
+
const findConfigLevel = t15;
|
|
240
|
+
let t16;
|
|
241
|
+
if ($[27] !== buildOptions || $[28] !== findConfigLevel) {
|
|
242
|
+
t16 = (level_1, row_2) => {
|
|
243
|
+
const built_0 = buildDisplayTree(row_2, findConfigLevel(level_1.id) ?? level_1, buildOptions);
|
|
244
|
+
return (Array.isArray(built_0) ? built_0[0] : built_0) ?? null;
|
|
245
|
+
};
|
|
246
|
+
$[27] = buildOptions;
|
|
247
|
+
$[28] = findConfigLevel;
|
|
248
|
+
$[29] = t16;
|
|
249
|
+
} else t16 = $[29];
|
|
250
|
+
const composeRecord = t16;
|
|
251
|
+
let t17;
|
|
252
|
+
if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
|
|
253
|
+
t17 = [];
|
|
254
|
+
$[30] = t17;
|
|
255
|
+
} else t17 = $[30];
|
|
256
|
+
const droppedPagesRef = useRef(t17);
|
|
257
|
+
const selectedIdRef = useRef(null);
|
|
258
|
+
let t18;
|
|
259
|
+
let t19;
|
|
260
|
+
if ($[31] !== selectedId) {
|
|
261
|
+
t18 = () => {
|
|
169
262
|
selectedIdRef.current = selectedId;
|
|
170
263
|
};
|
|
171
|
-
|
|
172
|
-
$[
|
|
173
|
-
$[
|
|
174
|
-
$[
|
|
264
|
+
t19 = [selectedId];
|
|
265
|
+
$[31] = selectedId;
|
|
266
|
+
$[32] = t18;
|
|
267
|
+
$[33] = t19;
|
|
175
268
|
} else {
|
|
176
|
-
|
|
177
|
-
|
|
269
|
+
t18 = $[32];
|
|
270
|
+
t19 = $[33];
|
|
178
271
|
}
|
|
179
|
-
useEffect(
|
|
180
|
-
let
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
272
|
+
useEffect(t18, t19);
|
|
273
|
+
let t20;
|
|
274
|
+
if ($[34] !== buildSeededList || $[35] !== findConfigLevel || $[36] !== joinsRootGroups) {
|
|
275
|
+
t20 = (previous) => preserveMenuWorkspace({
|
|
276
|
+
fresh: buildSeededList(loadedRootsRef.current),
|
|
277
|
+
previous,
|
|
278
|
+
loadedRoots: loadedRootsRef.current.filter((loaded_0) => !joinsRootGroups(loaded_0.level)).map(_temp4),
|
|
279
|
+
droppedPages: droppedPagesRef.current.flatMap((page) => {
|
|
280
|
+
const node = rebuildDroppedPage(page, findConfigLevel);
|
|
281
|
+
return node ? [node] : [];
|
|
282
|
+
})
|
|
283
|
+
});
|
|
284
|
+
$[34] = buildSeededList;
|
|
285
|
+
$[35] = findConfigLevel;
|
|
286
|
+
$[36] = joinsRootGroups;
|
|
287
|
+
$[37] = t20;
|
|
288
|
+
} else t20 = $[37];
|
|
289
|
+
const composeWorkspace = t20;
|
|
290
|
+
let t21;
|
|
291
|
+
let t22;
|
|
292
|
+
if ($[38] !== autoSelectFirst || $[39] !== composeRecord || $[40] !== composeWorkspace || $[41] !== rows || $[42] !== seed) {
|
|
293
|
+
t21 = () => {
|
|
184
294
|
if (!seed) return;
|
|
185
|
-
const
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
295
|
+
const previous_0 = menuListRef.current;
|
|
296
|
+
loadedRootsRef.current = loadedRootsRef.current.flatMap((loaded_2) => {
|
|
297
|
+
const node_0 = composeRecord(loaded_2.level, loaded_2.row);
|
|
298
|
+
return node_0 ? [{
|
|
299
|
+
...loaded_2,
|
|
300
|
+
node: node_0
|
|
301
|
+
}] : [];
|
|
191
302
|
});
|
|
192
|
-
|
|
193
|
-
|
|
303
|
+
const list = composeWorkspace(previous_0);
|
|
304
|
+
const nextSelectedId = reselectAfterRebuild({
|
|
194
305
|
list,
|
|
195
|
-
previous,
|
|
306
|
+
previous: previous_0,
|
|
196
307
|
selectedId: selectedIdRef.current,
|
|
197
308
|
autoSelectFirst
|
|
198
|
-
})
|
|
309
|
+
});
|
|
310
|
+
setMenuList(revealRow(list, nextSelectedId));
|
|
311
|
+
setSelectedId(nextSelectedId);
|
|
312
|
+
setSeededRows(rows);
|
|
199
313
|
};
|
|
200
|
-
|
|
314
|
+
t22 = [
|
|
201
315
|
seed,
|
|
202
|
-
|
|
316
|
+
rows,
|
|
317
|
+
composeWorkspace,
|
|
318
|
+
composeRecord,
|
|
203
319
|
autoSelectFirst
|
|
204
320
|
];
|
|
205
|
-
$[
|
|
206
|
-
$[
|
|
207
|
-
$[
|
|
208
|
-
$[
|
|
209
|
-
$[
|
|
321
|
+
$[38] = autoSelectFirst;
|
|
322
|
+
$[39] = composeRecord;
|
|
323
|
+
$[40] = composeWorkspace;
|
|
324
|
+
$[41] = rows;
|
|
325
|
+
$[42] = seed;
|
|
326
|
+
$[43] = t21;
|
|
327
|
+
$[44] = t22;
|
|
210
328
|
} else {
|
|
211
|
-
|
|
212
|
-
|
|
329
|
+
t21 = $[43];
|
|
330
|
+
t22 = $[44];
|
|
213
331
|
}
|
|
214
|
-
useEffect(
|
|
215
|
-
let
|
|
216
|
-
if ($[
|
|
217
|
-
|
|
218
|
-
if (!
|
|
219
|
-
|
|
332
|
+
useEffect(t21, t22);
|
|
333
|
+
let t23;
|
|
334
|
+
if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
|
|
335
|
+
t23 = (node_1) => {
|
|
336
|
+
if (!node_1?.nodeObj || node_1.isGroupNode) return;
|
|
337
|
+
const id_0 = String(node_1.id);
|
|
338
|
+
setMenuList((previous_1) => revealRow(previous_1, id_0));
|
|
339
|
+
setSelectedId(id_0);
|
|
220
340
|
};
|
|
221
|
-
$[
|
|
222
|
-
} else
|
|
223
|
-
const handleSelectNode =
|
|
224
|
-
let
|
|
225
|
-
if ($[
|
|
226
|
-
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
} else
|
|
230
|
-
const selectNodeById =
|
|
231
|
-
let
|
|
232
|
-
if ($[
|
|
233
|
-
|
|
234
|
-
const
|
|
235
|
-
const
|
|
341
|
+
$[45] = t23;
|
|
342
|
+
} else t23 = $[45];
|
|
343
|
+
const handleSelectNode = t23;
|
|
344
|
+
let t24;
|
|
345
|
+
if ($[46] !== menuList) {
|
|
346
|
+
t24 = (nodeId) => handleSelectNode(locateNodeById(menuList, nodeId)?.node);
|
|
347
|
+
$[46] = menuList;
|
|
348
|
+
$[47] = t24;
|
|
349
|
+
} else t24 = $[47];
|
|
350
|
+
const selectNodeById = t24;
|
|
351
|
+
let t25;
|
|
352
|
+
if ($[48] !== composeRecord || $[49] !== composeWorkspace || $[50] !== joinsRootGroups || $[51] !== seed) {
|
|
353
|
+
t25 = (configNode, row_3, t26) => {
|
|
354
|
+
const { select: t27 } = t26 === void 0 ? {} : t26;
|
|
355
|
+
const select = t27 === void 0 ? true : t27;
|
|
356
|
+
const key = row_3?.businessObjectKey;
|
|
357
|
+
removedKeysRef.current.delete(key);
|
|
358
|
+
const existing = key != null ? locateRecordByKey(menuListRef.current, key) : null;
|
|
236
359
|
if (existing) {
|
|
237
|
-
|
|
360
|
+
const id_1 = String(existing.node.id);
|
|
361
|
+
if (select) {
|
|
362
|
+
updateMenuList((previous_2) => revealRow(previous_2, id_1));
|
|
363
|
+
setSelectedId(id_1);
|
|
364
|
+
}
|
|
238
365
|
return {
|
|
239
366
|
rootId: String(existing.root.id),
|
|
240
|
-
nodeId:
|
|
367
|
+
nodeId: id_1,
|
|
241
368
|
label: resolveRowLabel(existing.node),
|
|
242
369
|
alreadyLoaded: true
|
|
243
370
|
};
|
|
244
371
|
}
|
|
245
|
-
|
|
246
|
-
const
|
|
247
|
-
|
|
248
|
-
if (
|
|
372
|
+
if (!findNodeById(seed, configNode?.id)) foreignLevelsRef.current = [...foreignLevelsRef.current.filter((level_2) => level_2.id !== configNode.id), configNode];
|
|
373
|
+
const root_1 = composeRecord(configNode, row_3);
|
|
374
|
+
if (!root_1) return null;
|
|
375
|
+
if (joinsRootGroups(configNode)) {
|
|
376
|
+
loadedRootsRef.current = [...loadedRootsRef.current, {
|
|
377
|
+
level: configNode,
|
|
378
|
+
row: row_3,
|
|
379
|
+
node: root_1
|
|
380
|
+
}];
|
|
381
|
+
const previous_3 = menuListRef.current;
|
|
382
|
+
const list_0 = composeWorkspace(previous_3);
|
|
383
|
+
const placed = key != null ? locateRecordByKey(list_0, key) : null;
|
|
384
|
+
if (!placed) {
|
|
385
|
+
loadedRootsRef.current = loadedRootsRef.current.filter((loaded_3) => loaded_3.node !== root_1);
|
|
386
|
+
return null;
|
|
387
|
+
}
|
|
388
|
+
const id_2 = String(placed.node.id);
|
|
389
|
+
const nextSelectedId_0 = select ? id_2 : reselectAfterRebuild({
|
|
390
|
+
list: list_0,
|
|
391
|
+
previous: previous_3,
|
|
392
|
+
selectedId: selectedIdRef.current,
|
|
393
|
+
autoSelectFirst: false
|
|
394
|
+
});
|
|
395
|
+
selectedIdRef.current = nextSelectedId_0;
|
|
396
|
+
updateMenuList(() => revealRow(revealRow(list_0, nextSelectedId_0), id_2));
|
|
397
|
+
setSelectedId(nextSelectedId_0);
|
|
398
|
+
return {
|
|
399
|
+
rootId: String(placed.root.id),
|
|
400
|
+
nodeId: id_2,
|
|
401
|
+
label: resolveRowLabel(placed.node),
|
|
402
|
+
alreadyLoaded: false
|
|
403
|
+
};
|
|
404
|
+
}
|
|
249
405
|
const pages = droppedPagesRef.current.length;
|
|
250
|
-
|
|
251
|
-
if (
|
|
252
|
-
return
|
|
406
|
+
updateMenuList((previous_4) => {
|
|
407
|
+
if (previous_4.length <= pages) return [...previous_4, [root_1]];
|
|
408
|
+
return previous_4.map((menu, index) => index === pages ? [...menu, root_1] : menu);
|
|
253
409
|
});
|
|
254
|
-
loadedRootsRef.current = [...loadedRootsRef.current,
|
|
255
|
-
|
|
410
|
+
loadedRootsRef.current = [...loadedRootsRef.current, {
|
|
411
|
+
level: configNode,
|
|
412
|
+
row: row_3,
|
|
413
|
+
node: root_1
|
|
414
|
+
}];
|
|
415
|
+
if (select) setSelectedId(String(root_1.id));
|
|
256
416
|
return {
|
|
257
|
-
rootId: String(
|
|
258
|
-
nodeId: String(
|
|
259
|
-
label: resolveRowLabel(
|
|
417
|
+
rootId: String(root_1.id),
|
|
418
|
+
nodeId: String(root_1.id),
|
|
419
|
+
label: resolveRowLabel(root_1),
|
|
260
420
|
alreadyLoaded: false
|
|
261
421
|
};
|
|
262
422
|
};
|
|
263
|
-
$[
|
|
264
|
-
$[
|
|
265
|
-
$[
|
|
266
|
-
$[
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
if (
|
|
274
|
-
|
|
275
|
-
|
|
423
|
+
$[48] = composeRecord;
|
|
424
|
+
$[49] = composeWorkspace;
|
|
425
|
+
$[50] = joinsRootGroups;
|
|
426
|
+
$[51] = seed;
|
|
427
|
+
$[52] = t25;
|
|
428
|
+
} else t25 = $[52];
|
|
429
|
+
const loadRecord = t25;
|
|
430
|
+
let t26;
|
|
431
|
+
if ($[53] !== findConfigLevel) {
|
|
432
|
+
t26 = (target, source) => {
|
|
433
|
+
if (!dropPageNode(target, source, _temp5)) return null;
|
|
434
|
+
const drop = asDrop(source);
|
|
435
|
+
const existing_0 = isDroppedPageNode(target) ? droppedPagesRef.current.find((page_0) => page_0.id === String(target.id)) : void 0;
|
|
436
|
+
const pageSource = existing_0 ? {
|
|
437
|
+
...existing_0,
|
|
438
|
+
drops: [...existing_0.drops, drop]
|
|
439
|
+
} : {
|
|
440
|
+
id: crypto.randomUUID(),
|
|
441
|
+
targetLevelId: String(target.configNodeId ?? ""),
|
|
442
|
+
targetRecord: target.nodeObj,
|
|
443
|
+
drops: [drop]
|
|
444
|
+
};
|
|
445
|
+
const page_1 = rebuildDroppedPage(pageSource, findConfigLevel);
|
|
446
|
+
if (!page_1) return null;
|
|
447
|
+
if (existing_0) {
|
|
448
|
+
droppedPagesRef.current = droppedPagesRef.current.map((candidate) => candidate.id === pageSource.id ? pageSource : candidate);
|
|
449
|
+
setMenuList((previous_5) => previous_5.map((menu_0) => menu_0.map((root_2) => String(root_2.id) === pageSource.id ? page_1 : root_2)));
|
|
276
450
|
} else {
|
|
277
|
-
droppedPagesRef.current = [
|
|
278
|
-
setMenuList((
|
|
451
|
+
droppedPagesRef.current = [pageSource, ...droppedPagesRef.current];
|
|
452
|
+
setMenuList((previous_6) => [[page_1], ...previous_6]);
|
|
279
453
|
}
|
|
280
|
-
setSelectedId(id);
|
|
281
|
-
|
|
282
|
-
$[35] = t19;
|
|
283
|
-
} else t19 = $[35];
|
|
284
|
-
const showDroppedPage = t19;
|
|
285
|
-
let t20;
|
|
286
|
-
if ($[36] !== buildOptions || $[37] !== seed) {
|
|
287
|
-
t20 = (rows_0) => {
|
|
288
|
-
if (!rows_0.length) return;
|
|
289
|
-
setMenuList((previous_3) => restampMenuRecords(previous_3, rows_0, (node_0, row_0) => {
|
|
290
|
-
const configNode_0 = node_0.configNodeId != null ? findNodeById(seed, String(node_0.configNodeId)) : null;
|
|
291
|
-
if (!configNode_0) return null;
|
|
292
|
-
return buildDisplayNodeForRecord(configNode_0, row_0, {
|
|
293
|
-
...buildOptions,
|
|
294
|
-
makeId: () => String(node_0.id),
|
|
295
|
-
wasLazyLoaded: !!node_0.wasLazyLoaded
|
|
296
|
-
});
|
|
297
|
-
}));
|
|
298
|
-
};
|
|
299
|
-
$[36] = buildOptions;
|
|
300
|
-
$[37] = seed;
|
|
301
|
-
$[38] = t20;
|
|
302
|
-
} else t20 = $[38];
|
|
303
|
-
const restampRecords = t20;
|
|
304
|
-
let t21;
|
|
305
|
-
if ($[39] === Symbol.for("react.memo_cache_sentinel")) {
|
|
306
|
-
t21 = () => {
|
|
307
|
-
setMenuList(_temp5);
|
|
454
|
+
setSelectedId(pageSource.id);
|
|
455
|
+
return page_1;
|
|
308
456
|
};
|
|
309
|
-
$[
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
457
|
+
$[53] = findConfigLevel;
|
|
458
|
+
$[54] = t26;
|
|
459
|
+
} else t26 = $[54];
|
|
460
|
+
const dropOnto = t26;
|
|
461
|
+
let t27;
|
|
462
|
+
if ($[55] !== composeRecord || $[56] !== findConfigLevel) {
|
|
463
|
+
t27 = async (record, row_4, loadChildren) => {
|
|
464
|
+
const before = menuListRef.current;
|
|
465
|
+
const key_0 = record.nodeObj?.businessObjectKey;
|
|
466
|
+
const location_0 = locateNodeById(before, String(record.id)) ?? (key_0 == null ? null : locateInMenus(before, (node_2) => !node_2.isGroupNode && node_2.configNodeId === record.configNodeId && node_2.nodeObj?.businessObjectKey === key_0));
|
|
467
|
+
if (!location_0) return;
|
|
468
|
+
const old = location_0.node;
|
|
469
|
+
let fresh = null;
|
|
470
|
+
if (row_4) {
|
|
471
|
+
const level_3 = findConfigLevel(old.configNodeId);
|
|
472
|
+
fresh = level_3 ? composeRecord(level_3, row_4) : null;
|
|
473
|
+
if (!fresh) return;
|
|
474
|
+
await reloadBranch(fresh, old, loadChildren);
|
|
475
|
+
fresh.parentId = old.parentId;
|
|
476
|
+
fresh.parentGroupId = old.parentGroupId;
|
|
477
|
+
fresh.parentGroupName = old.parentGroupName;
|
|
478
|
+
fresh.entityNodeParentId = old.entityNodeParentId;
|
|
322
479
|
}
|
|
323
|
-
|
|
324
|
-
const
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
return
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
480
|
+
const swap = (nodes) => nodes.flatMap((node_3) => node_3.id !== old.id ? [node_3] : fresh ? [fresh] : []);
|
|
481
|
+
const isRoot = location_0.root === old;
|
|
482
|
+
const list_1 = menuListRef.current.map((menu_1) => isRoot ? swap(menu_1) : patchMenuEntry(menu_1, new Set([old.parentId]), (copy) => {
|
|
483
|
+
copy.children = swap(copy.children ?? []);
|
|
484
|
+
return true;
|
|
485
|
+
})).filter(_temp6);
|
|
486
|
+
const oldKey = old.nodeObj?.businessObjectKey;
|
|
487
|
+
loadedRootsRef.current = loadedRootsRef.current.flatMap((loaded_4) => loaded_4.node.id !== old.id && (oldKey == null || loaded_4.level.id !== old.configNodeId || loaded_4.row.businessObjectKey !== oldKey) ? [loaded_4] : fresh && row_4 ? [{
|
|
488
|
+
...loaded_4,
|
|
489
|
+
row: row_4,
|
|
490
|
+
node: fresh
|
|
491
|
+
}] : []);
|
|
492
|
+
setMenuList(list_1);
|
|
493
|
+
if (locateNodeById(list_1, selectedIdRef.current)) return;
|
|
494
|
+
const selectedAt = locateNodeById(menuListRef.current, selectedIdRef.current);
|
|
495
|
+
const selected = selectedAt?.node;
|
|
496
|
+
const reselected = [
|
|
497
|
+
selected?.nodeObj?.businessObjectKey,
|
|
498
|
+
findRecordParent(menuListRef.current[selectedAt?.menuIndex ?? location_0.menuIndex], selected)?.nodeObj?.businessObjectKey,
|
|
499
|
+
old.nodeObj?.businessObjectKey
|
|
500
|
+
].filter(_temp7).map((key_2) => locateRecordByKey(list_1, key_2)).find(_temp8);
|
|
501
|
+
setSelectedId(reselected ? String(reselected.node.id) : null);
|
|
335
502
|
};
|
|
336
|
-
$[
|
|
337
|
-
$[
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
503
|
+
$[55] = composeRecord;
|
|
504
|
+
$[56] = findConfigLevel;
|
|
505
|
+
$[57] = t27;
|
|
506
|
+
} else t27 = $[57];
|
|
507
|
+
const refreshRecord = t27;
|
|
508
|
+
let t28;
|
|
509
|
+
if ($[58] === Symbol.for("react.memo_cache_sentinel")) {
|
|
510
|
+
t28 = () => {
|
|
343
511
|
setMenuList(_temp0);
|
|
344
512
|
};
|
|
345
|
-
$[
|
|
346
|
-
} else
|
|
347
|
-
const
|
|
348
|
-
let
|
|
349
|
-
if ($[
|
|
350
|
-
|
|
513
|
+
$[58] = t28;
|
|
514
|
+
} else t28 = $[58];
|
|
515
|
+
const expandAll = t28;
|
|
516
|
+
let t29;
|
|
517
|
+
if ($[59] !== menuList) {
|
|
518
|
+
t29 = (nodeId_0) => {
|
|
519
|
+
const target_0 = locateNodeById(menuList, nodeId_0)?.node ?? null;
|
|
520
|
+
if (target_0) setMenuList((previous_8) => revealRow(previous_8, nodeId_0, true));
|
|
521
|
+
return target_0;
|
|
522
|
+
};
|
|
523
|
+
$[59] = menuList;
|
|
524
|
+
$[60] = t29;
|
|
525
|
+
} else t29 = $[60];
|
|
526
|
+
const expandNode = t29;
|
|
527
|
+
let t30;
|
|
528
|
+
if ($[61] === Symbol.for("react.memo_cache_sentinel")) {
|
|
529
|
+
t30 = () => {
|
|
530
|
+
setMenuList(_temp10);
|
|
531
|
+
};
|
|
532
|
+
$[61] = t30;
|
|
533
|
+
} else t30 = $[61];
|
|
534
|
+
const collapseAll = t30;
|
|
535
|
+
let t31;
|
|
536
|
+
if ($[62] !== menuList || $[63] !== selectedId) {
|
|
537
|
+
t31 = (rootId) => {
|
|
351
538
|
const outcome = removeRootFromMenus(menuList, rootId, selectedId);
|
|
352
539
|
if (!outcome.removed) return;
|
|
353
540
|
setMenuList(outcome.menus);
|
|
354
|
-
|
|
355
|
-
|
|
541
|
+
const key_3 = outcome.removed.nodeObj?.businessObjectKey;
|
|
542
|
+
if (key_3 != null) removedKeysRef.current.add(key_3);
|
|
543
|
+
loadedRootsRef.current = loadedRootsRef.current.filter((loaded_5) => String(loaded_5.node.id) !== rootId && (key_3 == null || loaded_5.row.businessObjectKey !== key_3));
|
|
544
|
+
droppedPagesRef.current = droppedPagesRef.current.filter((page_2) => page_2.id !== rootId);
|
|
356
545
|
setSelectedId(outcome.selectedNodeId);
|
|
357
546
|
};
|
|
358
|
-
$[
|
|
359
|
-
$[
|
|
360
|
-
$[
|
|
361
|
-
} else
|
|
362
|
-
const removeRoot =
|
|
547
|
+
$[62] = menuList;
|
|
548
|
+
$[63] = selectedId;
|
|
549
|
+
$[64] = t31;
|
|
550
|
+
} else t31 = $[64];
|
|
551
|
+
const removeRoot = t31;
|
|
363
552
|
const expansionSnapshotRef = useRef(null);
|
|
364
|
-
let
|
|
365
|
-
if ($[
|
|
366
|
-
|
|
553
|
+
let t32;
|
|
554
|
+
if ($[65] === Symbol.for("react.memo_cache_sentinel")) {
|
|
555
|
+
t32 = (ids) => {
|
|
367
556
|
if (!ids.length) return;
|
|
368
557
|
const wanted = new Set(ids);
|
|
369
|
-
setMenuList((
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
if (wanted.has(String(node_2.id)) && !node_2.isExpanded) needsWork = true;
|
|
373
|
-
(node_2.children ?? []).forEach(check);
|
|
374
|
-
};
|
|
375
|
-
previous_7.forEach((menu_8) => menu_8.forEach(check));
|
|
376
|
-
if (!needsWork) return previous_7;
|
|
558
|
+
setMenuList((previous_10) => {
|
|
559
|
+
const next = setExpansion(previous_10, wanted, _temp11);
|
|
560
|
+
if (next === previous_10) return previous_10;
|
|
377
561
|
if (!expansionSnapshotRef.current) {
|
|
378
562
|
const snapshot = /* @__PURE__ */ new Map();
|
|
379
|
-
const
|
|
380
|
-
snapshot.set(String(
|
|
381
|
-
(
|
|
563
|
+
const record_0 = (node_4) => {
|
|
564
|
+
snapshot.set(String(node_4.id), !!node_4.isExpanded);
|
|
565
|
+
(node_4.children ?? []).forEach(record_0);
|
|
382
566
|
};
|
|
383
|
-
|
|
567
|
+
previous_10.forEach((menu_3) => menu_3.forEach(record_0));
|
|
384
568
|
expansionSnapshotRef.current = snapshot;
|
|
385
569
|
}
|
|
386
|
-
|
|
387
|
-
const open = (node_4) => {
|
|
388
|
-
if (wanted.has(String(node_4.id))) node_4.isExpanded = true;
|
|
389
|
-
(node_4.children ?? []).forEach(open);
|
|
390
|
-
};
|
|
391
|
-
next_2.forEach((menu_11) => menu_11.forEach(open));
|
|
392
|
-
return next_2;
|
|
570
|
+
return next;
|
|
393
571
|
});
|
|
394
572
|
};
|
|
395
|
-
$[
|
|
396
|
-
} else
|
|
397
|
-
const expandForFilter =
|
|
398
|
-
let
|
|
399
|
-
if ($[
|
|
400
|
-
|
|
573
|
+
$[65] = t32;
|
|
574
|
+
} else t32 = $[65];
|
|
575
|
+
const expandForFilter = t32;
|
|
576
|
+
let t33;
|
|
577
|
+
if ($[66] === Symbol.for("react.memo_cache_sentinel")) {
|
|
578
|
+
t33 = () => {
|
|
401
579
|
const snapshot_0 = expansionSnapshotRef.current;
|
|
402
580
|
if (!snapshot_0) return;
|
|
403
581
|
expansionSnapshotRef.current = null;
|
|
404
|
-
setMenuList((
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
582
|
+
setMenuList((previous_11) => setExpansion(previous_11, new Set(snapshot_0.keys()), (node_5) => !!snapshot_0.get(String(node_5.id))));
|
|
583
|
+
};
|
|
584
|
+
$[66] = t33;
|
|
585
|
+
} else t33 = $[66];
|
|
586
|
+
const restoreExpansion = t33;
|
|
587
|
+
let t34;
|
|
588
|
+
if ($[67] !== composeWorkspace) {
|
|
589
|
+
t34 = () => {
|
|
590
|
+
if (!removedKeysRef.current.size) return;
|
|
591
|
+
removedKeysRef.current.clear();
|
|
592
|
+
const previous_12 = menuListRef.current;
|
|
593
|
+
const list_2 = composeWorkspace(previous_12);
|
|
594
|
+
const nextSelectedId_1 = reselectAfterRebuild({
|
|
595
|
+
list: list_2,
|
|
596
|
+
previous: previous_12,
|
|
597
|
+
selectedId: selectedIdRef.current,
|
|
598
|
+
autoSelectFirst: false
|
|
413
599
|
});
|
|
600
|
+
selectedIdRef.current = nextSelectedId_1;
|
|
601
|
+
updateMenuList(() => revealRow(list_2, nextSelectedId_1));
|
|
602
|
+
setSelectedId(nextSelectedId_1);
|
|
414
603
|
};
|
|
415
|
-
$[
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
604
|
+
$[67] = composeWorkspace;
|
|
605
|
+
$[68] = t34;
|
|
606
|
+
} else t34 = $[68];
|
|
607
|
+
const restoreRemoved = t34;
|
|
608
|
+
let t35;
|
|
609
|
+
if ($[69] !== autoSelectFirst || $[70] !== buildSeededList) {
|
|
610
|
+
t35 = () => {
|
|
421
611
|
loadedRootsRef.current = [];
|
|
422
612
|
droppedPagesRef.current = [];
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
613
|
+
foreignLevelsRef.current = [];
|
|
614
|
+
removedKeysRef.current.clear();
|
|
615
|
+
const list_3 = buildSeededList([]);
|
|
616
|
+
const firstId = autoSelectFirst ? firstRecordId(list_3) : null;
|
|
617
|
+
setMenuList(revealRow(list_3, firstId));
|
|
618
|
+
setSelectedId(firstId);
|
|
426
619
|
};
|
|
427
|
-
$[
|
|
428
|
-
$[
|
|
429
|
-
$[
|
|
430
|
-
} else
|
|
431
|
-
const resetTree =
|
|
432
|
-
let
|
|
433
|
-
if ($[
|
|
434
|
-
|
|
620
|
+
$[69] = autoSelectFirst;
|
|
621
|
+
$[70] = buildSeededList;
|
|
622
|
+
$[71] = t35;
|
|
623
|
+
} else t35 = $[71];
|
|
624
|
+
const resetTree = t35;
|
|
625
|
+
let t36;
|
|
626
|
+
if ($[72] !== dropOnto || $[73] !== expandNode || $[74] !== findConfigLevel || $[75] !== loadRecord || $[76] !== menuList || $[77] !== refreshRecord || $[78] !== removeRoot || $[79] !== resetTree || $[80] !== restoreRemoved || $[81] !== seededRows || $[82] !== selectNodeById || $[83] !== selectedId || $[84] !== selectedNode || $[85] !== selectedParent || $[86] !== selectedRoot) {
|
|
627
|
+
t36 = {
|
|
435
628
|
menuList,
|
|
629
|
+
menuListRef,
|
|
436
630
|
setMenuList,
|
|
631
|
+
seededRows,
|
|
437
632
|
selectedId,
|
|
633
|
+
selectedIdRef,
|
|
438
634
|
selectedNode,
|
|
439
635
|
selectedRoot,
|
|
440
636
|
selectedParent,
|
|
441
637
|
handleSelectNode,
|
|
442
638
|
selectNodeById,
|
|
443
639
|
loadRecord,
|
|
444
|
-
|
|
445
|
-
|
|
640
|
+
dropOnto,
|
|
641
|
+
refreshRecord,
|
|
642
|
+
findConfigLevel,
|
|
446
643
|
expandAll,
|
|
447
644
|
expandNode,
|
|
448
645
|
collapseAll,
|
|
449
646
|
removeRoot,
|
|
647
|
+
restoreRemoved,
|
|
450
648
|
resetTree,
|
|
451
649
|
expandForFilter,
|
|
452
650
|
restoreExpansion
|
|
453
651
|
};
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
456
|
-
$[
|
|
457
|
-
$[
|
|
458
|
-
$[
|
|
459
|
-
$[
|
|
460
|
-
$[
|
|
461
|
-
$[
|
|
462
|
-
$[
|
|
463
|
-
$[
|
|
464
|
-
$[
|
|
465
|
-
$[
|
|
466
|
-
|
|
467
|
-
|
|
652
|
+
$[72] = dropOnto;
|
|
653
|
+
$[73] = expandNode;
|
|
654
|
+
$[74] = findConfigLevel;
|
|
655
|
+
$[75] = loadRecord;
|
|
656
|
+
$[76] = menuList;
|
|
657
|
+
$[77] = refreshRecord;
|
|
658
|
+
$[78] = removeRoot;
|
|
659
|
+
$[79] = resetTree;
|
|
660
|
+
$[80] = restoreRemoved;
|
|
661
|
+
$[81] = seededRows;
|
|
662
|
+
$[82] = selectNodeById;
|
|
663
|
+
$[83] = selectedId;
|
|
664
|
+
$[84] = selectedNode;
|
|
665
|
+
$[85] = selectedParent;
|
|
666
|
+
$[86] = selectedRoot;
|
|
667
|
+
$[87] = t36;
|
|
668
|
+
} else t36 = $[87];
|
|
669
|
+
return t36;
|
|
468
670
|
};
|
|
469
671
|
function _temp() {
|
|
470
672
|
return crypto.randomUUID();
|
|
471
673
|
}
|
|
472
|
-
function _temp2(
|
|
473
|
-
return
|
|
674
|
+
function _temp2(row) {
|
|
675
|
+
return row.businessObjectKey;
|
|
676
|
+
}
|
|
677
|
+
function _temp3(root_0) {
|
|
678
|
+
return root_0.row;
|
|
474
679
|
}
|
|
475
|
-
function
|
|
476
|
-
return
|
|
680
|
+
function _temp4(loaded_1) {
|
|
681
|
+
return loaded_1.node;
|
|
477
682
|
}
|
|
478
|
-
function
|
|
479
|
-
return
|
|
683
|
+
function _temp5() {
|
|
684
|
+
return "";
|
|
480
685
|
}
|
|
481
|
-
function
|
|
482
|
-
|
|
483
|
-
next.forEach(_temp4);
|
|
484
|
-
return next;
|
|
686
|
+
function _temp6(menu_2) {
|
|
687
|
+
return menu_2.length > 0;
|
|
485
688
|
}
|
|
486
|
-
function
|
|
487
|
-
return
|
|
689
|
+
function _temp7(key_1) {
|
|
690
|
+
return key_1 != null;
|
|
488
691
|
}
|
|
489
|
-
function
|
|
490
|
-
return
|
|
692
|
+
function _temp8(found_0) {
|
|
693
|
+
return !!found_0;
|
|
491
694
|
}
|
|
492
|
-
function
|
|
493
|
-
return
|
|
695
|
+
function _temp9() {
|
|
696
|
+
return true;
|
|
494
697
|
}
|
|
495
|
-
function
|
|
496
|
-
return
|
|
698
|
+
function _temp0(previous_7) {
|
|
699
|
+
return setExpansion(previous_7, collectRowIds(previous_7, true), _temp9);
|
|
497
700
|
}
|
|
498
|
-
function
|
|
499
|
-
|
|
500
|
-
next_1.forEach(_temp9);
|
|
501
|
-
return next_1;
|
|
701
|
+
function _temp1() {
|
|
702
|
+
return false;
|
|
502
703
|
}
|
|
503
|
-
function
|
|
504
|
-
return
|
|
704
|
+
function _temp10(previous_9) {
|
|
705
|
+
return setExpansion(previous_9, collectRowIds(previous_9, false), _temp1);
|
|
505
706
|
}
|
|
506
|
-
function
|
|
507
|
-
return
|
|
707
|
+
function _temp11() {
|
|
708
|
+
return true;
|
|
508
709
|
}
|
|
509
710
|
//#endregion
|
|
510
711
|
export { buildIdentifierFilterElements, useInquiryMenu };
|