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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadRecordDialog.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/LoadRecordDialog.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"LoadRecordDialog.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/LoadRecordDialog.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAA2B,MAAM,OAAO,CAAC;AAKhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAGlD,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,iFAAiF;IACjF,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,+EAA6E;IAC7E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC7C,yEAAyE;IACzE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gEAAgE;IAChE,aAAa,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACxC,2EAA2E;IAC3E,UAAU,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACzB,4EAA0E;IAC1E,cAAc,CAAC,EAAE,OAAO,6BAA6B,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;IAC9E,+EAA+E;IAC/E,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAC3E,0EAA0E;IAC1E,YAAY,CAAC,EAAE,CACb,KAAK,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,gBAAgB,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,KACrE,IAAI,CAAC;IACV,2DAAuD;IACvD,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,gBAAgB,sLA8D5B,CAAC"}
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
*
|
|
11
11
|
* Anatomy follows the v2 viewer's own dialog precedent (ExecuteApiDropDialog)
|
|
12
12
|
* and TB's CreateTreeDialog: `dialogTitle`, a plain body, and footer buttons in
|
|
13
|
-
* the `action` slot.
|
|
14
|
-
*
|
|
13
|
+
* the `action` slot. The header ✕ closes; the footer's one button loads the
|
|
14
|
+
* ticked rows (choosing a single result still loads it straight away).
|
|
15
15
|
*
|
|
16
16
|
* Everything here is dialog-scoped: a slow or failed search reports inline, and
|
|
17
17
|
* the tree and its filter behind are untouched.
|
|
18
18
|
*/
|
|
19
|
-
import React from 'react';
|
|
19
|
+
import React, { useRef, useState } from 'react';
|
|
20
20
|
import { useTranslation } from 'react-i18next';
|
|
21
21
|
import { UdpButton } from '../../../UI/fluent-web-components/UdpButton';
|
|
22
22
|
import { UdpDialog } from '../../../UI/fluent-web-components/UdpDialog';
|
|
@@ -27,15 +27,20 @@ export const LoadRecordDialog = ({ open, entities, initialText = '', defaultRows
|
|
|
27
27
|
var _b;
|
|
28
28
|
const { t } = useTranslation();
|
|
29
29
|
const entityNoun = (_b = (_a = entities[0]) === null || _a === void 0 ? void 0 : _a.entityNoun) !== null && _b !== void 0 ? _b : '';
|
|
30
|
+
const finderRef = useRef(null);
|
|
31
|
+
const [selectedCount, setSelectedCount] = useState(0);
|
|
30
32
|
return (React.createElement(UdpDialog, { open: open, type: "modal", maxHeight: "70vh",
|
|
31
|
-
// Cancel in the action slot is the one visible close verb; Esc and the
|
|
32
|
-
// overlay still close through onDialogClose.
|
|
33
|
-
showHeaderCloseButton: false,
|
|
34
33
|
// No article: the noun comes from the catalog, and "a Resources" /
|
|
35
34
|
// "a Vw Tree All Assets" cannot be fixed by guessing at plurality.
|
|
36
35
|
dialogTitle: t('inquiry.load.dialogTitle', {
|
|
37
36
|
defaultValue: 'Load {{entity}} records',
|
|
38
37
|
entity: entityNoun
|
|
39
|
-
}), onDialogClose: onClose }, React.createElement("div", { className: styles.body }, React.createElement(RecordFinder, { autofocus: true, entities: entities, initialText: initialText, defaultRows: defaultRows, defaultTotal: defaultTotal, defaultEntity: defaultEntity, loadedKeys: loadedKeys, catalogObjects: catalogObjects, onChoose: onChoose, onChooseMany: onChooseMany })), React.createElement(UdpButton, { slot: "action", appearance: "
|
|
38
|
+
}), onDialogClose: onClose }, React.createElement("div", { className: styles.body }, React.createElement(RecordFinder, { autofocus: true, entities: entities, initialText: initialText, defaultRows: defaultRows, defaultTotal: defaultTotal, defaultEntity: defaultEntity, loadedKeys: loadedKeys, catalogObjects: catalogObjects, onChoose: onChoose, onChooseMany: onChooseMany, onSelectedCountChange: setSelectedCount, ref: finderRef })), React.createElement(UdpButton, { slot: "action", appearance: "primary", startIconName: "add", disabled: selectedCount === 0, onClick: () => {
|
|
39
|
+
var _a;
|
|
40
|
+
return (_a = finderRef.current) === null || _a === void 0 ? void 0 : _a.loadSelected();
|
|
41
|
+
} }, t('inquiry.load.loadSelected', {
|
|
42
|
+
defaultValue: 'Load selected ({{count}})',
|
|
43
|
+
count: selectedCount
|
|
44
|
+
}))));
|
|
40
45
|
};
|
|
41
46
|
//# sourceMappingURL=LoadRecordDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadRecordDialog.js","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/LoadRecordDialog.t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EAAE,yBAAyB;YACvC,MAAM,EAAE,UAAU;SACnB,CAAC,EACF,aAAa,EAAE,OAAO,IAEtB,6BAAK,SAAS,EAAE,MAAM,CAAC,IAAI,IACzB,oBAAC,YAAY,IACX,SAAS,QACT,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,qBAAqB,EAAE,gBAAgB,EACvC,GAAG,EAAE,SAAS,GACd,CACE,EAEN,oBAAC,SAAS,IACR,IAAI,EAAC,QAAQ,EACb,UAAU,EAAC,SAAS,EACpB,aAAa,EAAC,KAAK,EACnB,QAAQ,EAAE,aAAa,KAAK,CAAC,EAC7B,OAAO,EAAE,GAAG,EAAE;;mBAAC,MAAA,SAAS,CAAC,OAAO,0CAAE,YAAY,EAAE;SAAA,IAE/C,CAAC,CAAC,2BAA2B,EAAE;QAC9B,YAAY,EAAE,2BAA2B;QACzC,KAAK,EAAE,aAAa;KACrB,CAAC,CACQ,CACF,CACb,CAAC;AAAA,CACH,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { c } from "../../../reactCompilerRuntime.mjs";
|
|
|
2
2
|
import { UdpButton } from "../../../UI/fluent-web-components/UdpButton.mjs";
|
|
3
3
|
import { UdpDialog } from "../../../UI/fluent-web-components/UdpDialog.mjs";
|
|
4
4
|
import { RecordFinder } from "../search/RecordFinder.mjs";
|
|
5
|
-
import React from "react";
|
|
5
|
+
import React, { useRef, useState } from "react";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
import styles from "./LoadRecordDialog.module.css";
|
|
8
8
|
//#region src/inquiry/v2/tree/LoadRecordDialog.tsx
|
|
@@ -18,19 +18,21 @@ import styles from "./LoadRecordDialog.module.css";
|
|
|
18
18
|
*
|
|
19
19
|
* Anatomy follows the v2 viewer's own dialog precedent (ExecuteApiDropDialog)
|
|
20
20
|
* and TB's CreateTreeDialog: `dialogTitle`, a plain body, and footer buttons in
|
|
21
|
-
* the `action` slot.
|
|
22
|
-
*
|
|
21
|
+
* the `action` slot. The header ✕ closes; the footer's one button loads the
|
|
22
|
+
* ticked rows (choosing a single result still loads it straight away).
|
|
23
23
|
*
|
|
24
24
|
* Everything here is dialog-scoped: a slow or failed search reports inline, and
|
|
25
25
|
* the tree and its filter behind are untouched.
|
|
26
26
|
*/
|
|
27
27
|
const LoadRecordDialog = (t0) => {
|
|
28
|
-
const $ = c(
|
|
28
|
+
const $ = c(26);
|
|
29
29
|
const { open, entities, initialText: t1, defaultRows, defaultTotal: t2, defaultEntity, loadedKeys, catalogObjects, onChoose, onChooseMany, onClose } = t0;
|
|
30
30
|
const initialText = t1 === void 0 ? "" : t1;
|
|
31
31
|
const defaultTotal = t2 === void 0 ? 0 : t2;
|
|
32
32
|
const { t } = useTranslation();
|
|
33
33
|
const entityNoun = entities[0]?.entityNoun ?? "";
|
|
34
|
+
const finderRef = useRef(null);
|
|
35
|
+
const [selectedCount, setSelectedCount] = useState(0);
|
|
34
36
|
let t3;
|
|
35
37
|
if ($[0] !== entityNoun || $[1] !== t) {
|
|
36
38
|
t3 = t("inquiry.load.dialogTitle", {
|
|
@@ -53,7 +55,9 @@ const LoadRecordDialog = (t0) => {
|
|
|
53
55
|
loadedKeys,
|
|
54
56
|
catalogObjects,
|
|
55
57
|
onChoose,
|
|
56
|
-
onChooseMany
|
|
58
|
+
onChooseMany,
|
|
59
|
+
onSelectedCountChange: setSelectedCount,
|
|
60
|
+
ref: finderRef
|
|
57
61
|
}));
|
|
58
62
|
$[3] = catalogObjects;
|
|
59
63
|
$[4] = defaultEntity;
|
|
@@ -66,41 +70,52 @@ const LoadRecordDialog = (t0) => {
|
|
|
66
70
|
$[11] = onChooseMany;
|
|
67
71
|
$[12] = t4;
|
|
68
72
|
} else t4 = $[12];
|
|
69
|
-
|
|
70
|
-
if ($[13] !== t) {
|
|
71
|
-
t5 = t("common.cancel", { defaultValue: "Cancel" });
|
|
72
|
-
$[13] = t;
|
|
73
|
-
$[14] = t5;
|
|
74
|
-
} else t5 = $[14];
|
|
73
|
+
const t5 = selectedCount === 0;
|
|
75
74
|
let t6;
|
|
76
|
-
if ($[
|
|
77
|
-
t6 =
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
onClick: onClose
|
|
81
|
-
}, t5);
|
|
82
|
-
$[15] = onClose;
|
|
83
|
-
$[16] = t5;
|
|
84
|
-
$[17] = t6;
|
|
85
|
-
} else t6 = $[17];
|
|
75
|
+
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
76
|
+
t6 = () => finderRef.current?.loadSelected();
|
|
77
|
+
$[13] = t6;
|
|
78
|
+
} else t6 = $[13];
|
|
86
79
|
let t7;
|
|
87
|
-
if ($[
|
|
88
|
-
t7 =
|
|
80
|
+
if ($[14] !== selectedCount || $[15] !== t) {
|
|
81
|
+
t7 = t("inquiry.load.loadSelected", {
|
|
82
|
+
defaultValue: "Load selected ({{count}})",
|
|
83
|
+
count: selectedCount
|
|
84
|
+
});
|
|
85
|
+
$[14] = selectedCount;
|
|
86
|
+
$[15] = t;
|
|
87
|
+
$[16] = t7;
|
|
88
|
+
} else t7 = $[16];
|
|
89
|
+
let t8;
|
|
90
|
+
if ($[17] !== t5 || $[18] !== t7) {
|
|
91
|
+
t8 = /* @__PURE__ */ React.createElement(UdpButton, {
|
|
92
|
+
slot: "action",
|
|
93
|
+
appearance: "primary",
|
|
94
|
+
startIconName: "add",
|
|
95
|
+
disabled: t5,
|
|
96
|
+
onClick: t6
|
|
97
|
+
}, t7);
|
|
98
|
+
$[17] = t5;
|
|
99
|
+
$[18] = t7;
|
|
100
|
+
$[19] = t8;
|
|
101
|
+
} else t8 = $[19];
|
|
102
|
+
let t9;
|
|
103
|
+
if ($[20] !== onClose || $[21] !== open || $[22] !== t3 || $[23] !== t4 || $[24] !== t8) {
|
|
104
|
+
t9 = /* @__PURE__ */ React.createElement(UdpDialog, {
|
|
89
105
|
open,
|
|
90
106
|
type: "modal",
|
|
91
107
|
maxHeight: "70vh",
|
|
92
|
-
showHeaderCloseButton: false,
|
|
93
108
|
dialogTitle: t3,
|
|
94
109
|
onDialogClose: onClose
|
|
95
|
-
}, t4,
|
|
96
|
-
$[
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
102
|
-
} else
|
|
103
|
-
return
|
|
110
|
+
}, t4, t8);
|
|
111
|
+
$[20] = onClose;
|
|
112
|
+
$[21] = open;
|
|
113
|
+
$[22] = t3;
|
|
114
|
+
$[23] = t4;
|
|
115
|
+
$[24] = t8;
|
|
116
|
+
$[25] = t9;
|
|
117
|
+
} else t9 = $[25];
|
|
118
|
+
return t9;
|
|
104
119
|
};
|
|
105
120
|
//#endregion
|
|
106
121
|
export { LoadRecordDialog };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadRecordDialog.mjs","names":["React","useTranslation","UdpButton","UdpDialog","RecordFinder","SearchableEntity","styles","LoadRecordDialogProps","open","entities","initialText","defaultRows","Array","Record","defaultTotal","defaultEntity","loadedKeys","Set","catalogObjects","CatalogObject","onChoose","entity","row","onChooseMany","picks","onClose","LoadRecordDialog","t0","$","_c","t1","t2","undefined","t","entityNoun","t3","defaultValue","t4","body","t5","t6","t7"],"sources":["../../../../src/inquiry/v2/tree/LoadRecordDialog.tsx"],"sourcesContent":["/**\n * + Load — the tree pane's find-and-load entry (find-and-load spec §4/§5/§6,\n * popover superseded by a modal dialog 2026-08-18).\n *\n * The dialog is a SHELL: the whole finder — quick search, the before-you-type\n * listing, the flat result list, and the advanced-search drawer — is the\n * shared `RecordFinder`, the same component the explore page's Find card\n * renders, so finding a record works identically from either entry\n * (finder-unification, 2026-08-27).\n *\n * Anatomy follows the v2 viewer's own dialog precedent (ExecuteApiDropDialog)\n * and TB's CreateTreeDialog: `dialogTitle`, a plain body, and footer buttons in\n * the `action` slot.
|
|
1
|
+
{"version":3,"file":"LoadRecordDialog.mjs","names":["React","useRef","useState","useTranslation","UdpButton","UdpDialog","RecordFinder","RecordFinderHandle","SearchableEntity","styles","LoadRecordDialogProps","open","entities","initialText","defaultRows","Array","Record","defaultTotal","defaultEntity","loadedKeys","Set","catalogObjects","CatalogObject","onChoose","entity","row","onChooseMany","picks","onClose","LoadRecordDialog","t0","$","_c","t1","t2","undefined","t","entityNoun","finderRef","selectedCount","setSelectedCount","t3","defaultValue","t4","body","t5","t6","Symbol","for","current","loadSelected","t7","count","t8","t9"],"sources":["../../../../src/inquiry/v2/tree/LoadRecordDialog.tsx"],"sourcesContent":["/**\n * + Load — the tree pane's find-and-load entry (find-and-load spec §4/§5/§6,\n * popover superseded by a modal dialog 2026-08-18).\n *\n * The dialog is a SHELL: the whole finder — quick search, the before-you-type\n * listing, the flat result list, and the advanced-search drawer — is the\n * shared `RecordFinder`, the same component the explore page's Find card\n * renders, so finding a record works identically from either entry\n * (finder-unification, 2026-08-27).\n *\n * Anatomy follows the v2 viewer's own dialog precedent (ExecuteApiDropDialog)\n * and TB's CreateTreeDialog: `dialogTitle`, a plain body, and footer buttons in\n * the `action` slot. The header ✕ closes; the footer's one button loads the\n * ticked rows (choosing a single result still loads it straight away).\n *\n * Everything here is dialog-scoped: a slow or failed search reports inline, and\n * the tree and its filter behind are untouched.\n */\nimport React, { useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { UdpButton } from '../../../UI/fluent-web-components/UdpButton';\nimport { UdpDialog } from '../../../UI/fluent-web-components/UdpDialog';\nimport { RecordFinder, type RecordFinderHandle } from '../search/RecordFinder';\nimport type { SearchableEntity } from '../search';\nimport styles from './LoadRecordDialog.module.css';\n\nexport interface LoadRecordDialogProps {\n open: boolean;\n /** The searchable set derived from the tree (root + primary-search entities). */\n entities: SearchableEntity[];\n /** Pre-filled term — the filter's zero-match bridge hands its query over. */\n initialText?: string;\n /**\n * The root-record page the menu already holds (useRootRecords rows) — what the\n * dialog lists before anything is typed. Never refetched here.\n */\n defaultRows?: Array<Record<string, unknown>>;\n /** How many root records exist in total, for the \"first N of M\" line. */\n defaultTotal?: number;\n /** The entity those rows belong to (the tree's root entity). */\n defaultEntity?: SearchableEntity | null;\n /** Business-object keys already loaded as roots, so results can say so. */\n loadedKeys: Set<unknown>;\n /** The tree's API catalog — gives advanced search the full field tree. */\n catalogObjects?: import('../../../domain/inquiryTree').CatalogObject[] | null;\n /** Load the chosen row (already-loaded rows select instead of duplicating). */\n onChoose: (entity: SearchableEntity, row: Record<string, unknown>) => void;\n /** Load the TICKED rows in one batch (falls back to looping onChoose). */\n onChooseMany?: (\n picks: Array<{ entity: SearchableEntity; row: Record<string, unknown> }>\n ) => void;\n /** ✕ / Esc / overlay click — closes with no effect. */\n onClose: () => void;\n}\n\nexport const LoadRecordDialog = ({\n open,\n entities,\n initialText = '',\n defaultRows,\n defaultTotal = 0,\n defaultEntity,\n loadedKeys,\n catalogObjects,\n onChoose,\n onChooseMany,\n onClose\n}: LoadRecordDialogProps) => {\n const { t } = useTranslation();\n const entityNoun = entities[0]?.entityNoun ?? '';\n const finderRef = useRef<RecordFinderHandle>(null);\n const [selectedCount, setSelectedCount] = useState(0);\n\n return (\n <UdpDialog\n open={open}\n type='modal'\n maxHeight='70vh'\n // No article: the noun comes from the catalog, and \"a Resources\" /\n // \"a Vw Tree All Assets\" cannot be fixed by guessing at plurality.\n dialogTitle={t('inquiry.load.dialogTitle', {\n defaultValue: 'Load {{entity}} records',\n entity: entityNoun\n })}\n onDialogClose={onClose}\n >\n <div className={styles.body}>\n <RecordFinder\n autofocus\n entities={entities}\n initialText={initialText}\n defaultRows={defaultRows}\n defaultTotal={defaultTotal}\n defaultEntity={defaultEntity}\n loadedKeys={loadedKeys}\n catalogObjects={catalogObjects}\n onChoose={onChoose}\n onChooseMany={onChooseMany}\n onSelectedCountChange={setSelectedCount}\n ref={finderRef}\n />\n </div>\n\n <UdpButton\n slot='action'\n appearance='primary'\n startIconName='add'\n disabled={selectedCount === 0}\n onClick={() => finderRef.current?.loadSelected()}\n >\n {t('inquiry.load.loadSelected', {\n defaultValue: 'Load selected ({{count}})',\n count: selectedCount\n })}\n </UdpButton>\n </UdpDialog>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAuDA,MAAa6B,oBAAmBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAC,MAAA,EAAArB,MAAAC,UAAAC,aAAAoB,IAAAnB,aAAAG,cAAAiB,IAAAhB,eAAAC,YAAAE,gBAAAE,UAAAG,cAAAE,YAAAE;CAG/B,MAAAjB,cAAAoB,OAAAE,KAAAA,IAAA,KAAAF;CAEA,MAAAhB,eAAAiB,OAAAC,KAAAA,IAAA,IAAAD;CAQA,MAAA,EAAAE,MAAcjC,gBAAgB;CAC9B,MAAAkC,aAAmBzB,SAAQ,IAAeyB,cAAvB;CACnB,MAAAC,YAAkBrC,OAA2B,KAAK;CAClD,MAAA,CAAAsC,eAAAC,oBAA0CtC,SAAS,EAAE;CAAC,IAAAuC;AAAA,KAAAV,EAAA,OAAAM,cAAAN,EAAA,OAAAK,GAAA;AASrCK,OAAAL,EAAE,4BAA4B;GAAAM,cAC3B;GAAyBlB,QAC/Ba;GACT,CAAC;AAAAN,IAAA,KAAAM;AAAAN,IAAA,KAAAK;AAAAL,IAAA,KAAAU;OAAAA,MAAAV,EAAA;CAAA,IAAAY;AAAA,KAAAZ,EAAA,OAAAV,kBAAAU,EAAA,OAAAb,iBAAAa,EAAA,OAAAjB,eAAAiB,EAAA,OAAAd,gBAAAc,EAAA,OAAAnB,YAAAmB,EAAA,OAAAlB,eAAAkB,EAAA,OAAAZ,cAAAY,EAAA,QAAAR,YAAAQ,EAAA,QAAAL,cAAA;AAGFiB,OAAA,sBAAA,cAAA,OAAA,EAAgB,WAAAlC,OAAMmC,MAehB,EAdJ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G,aAAA8B;GAIEb,eAAAA;GA+BL,EA7BVe,IAiBAU,GAYU;AAAAtB,IAAA,MAAAH;AAAAG,IAAA,MAAApB;AAAAoB,IAAA,MAAAU;AAAAV,IAAA,MAAAY;AAAAZ,IAAA,MAAAsB;AAAAtB,IAAA,MAAAuB;OAAAA,MAAAvB,EAAA;AAAA,QAzCZuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeList.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/NodeList.jsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NodeList.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/NodeList.jsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAoDnD,eAAO,MAAM,QAAQ,mCAwFpB,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { makeStyles } from '@material-ui/core';
|
|
|
3
3
|
import { UdpText } from '../../../UI/fluent-web-components/UdpText';
|
|
4
4
|
import { NodeLoader } from '../../../UI/feedback/NodeLoader';
|
|
5
5
|
import { InquiryFluentTreeMenu } from './InquiryFluentTreeMenu';
|
|
6
|
+
import { isDroppedPageNode } from './droppedPageModel';
|
|
7
|
+
import { stableKeyOf } from './menuRebuildModel';
|
|
6
8
|
import clsx from 'clsx';
|
|
7
9
|
import NoEntityOpenedUrl from '../../../assets/unityIcons/NoEntityOpened.svg';
|
|
8
10
|
import { SvgIcon } from '../../../utilities/iconLibrary/SvgIcon';
|
|
@@ -32,15 +34,22 @@ const useStyles = makeStyles((theme) => ({
|
|
|
32
34
|
/**
|
|
33
35
|
* Identity of a menu entry. An entry is either one display root (v1) or a list
|
|
34
36
|
* of roots rendered as one menu (a whole page of root records) — the first
|
|
35
|
-
* root
|
|
36
|
-
*
|
|
37
|
+
* root names the list, so prepending a menu still mounts a fresh component
|
|
38
|
+
* instead of reusing index 0's state. It is named by what it IS (its record or
|
|
39
|
+
* group — menuRebuildModel's stable key), not by its display id: a rebuild
|
|
40
|
+
* mints new display ids for the same records, and the menu must outlive that,
|
|
41
|
+
* or the tree is torn down under the keyboard focus every time the root list
|
|
42
|
+
* grows or refreshes. A dropped page has no record of its own, and its id is
|
|
43
|
+
* already kept across rebuilds.
|
|
37
44
|
*/
|
|
38
45
|
const menuKey = (menuItems) => {
|
|
39
|
-
|
|
40
|
-
|
|
46
|
+
const first = Array.isArray(menuItems) ? menuItems[0] : menuItems;
|
|
47
|
+
if (!first)
|
|
48
|
+
return undefined;
|
|
49
|
+
return isDroppedPageNode(first) ? first.id : stableKeyOf(first);
|
|
41
50
|
};
|
|
42
51
|
export const NodeList = (props) => {
|
|
43
|
-
const { menuItemsList, onSelectNode, onDropNode, selectedNodeId, classes: classProps, menuLoading, nodesRequested, sidebarExpanded, catalogObjects, promotedEntities,
|
|
52
|
+
const { menuItemsList, onSelectNode, onDropNode, selectedNodeId, classes: classProps, menuLoading, nodesRequested, sidebarExpanded, catalogObjects, promotedEntities, findLevel, setMenuList, treeViewMode, onExpandedChange, filter, onRemoveRoot, removeRootLabel, loadChildren, rootMore } = props;
|
|
44
53
|
const { root } = classProps || {};
|
|
45
54
|
const classes = useStyles();
|
|
46
55
|
const handleSelectNode = useCallback((selectedNode, menuIndex, selectedTree) => {
|
|
@@ -51,6 +60,8 @@ export const NodeList = (props) => {
|
|
|
51
60
|
// the target menu combines this with its own drop row to call onDropNode.
|
|
52
61
|
const dragSourceRef = useRef(null);
|
|
53
62
|
return (React.createElement("div", { className: clsx(classes.root, root, !!!(menuItemsList === null || menuItemsList === void 0 ? void 0 : menuItemsList.length) && !menuLoading && classes.empty) }, !!!(menuItemsList === null || menuItemsList === void 0 ? void 0 : menuItemsList.length) && !menuLoading && (React.createElement("div", { className: classes.emptyIcon }, React.createElement(SvgIcon, { src: NoEntityOpenedUrl, size: 42 }), React.createElement(UdpText, { variant: "subtitle1", className: classes.emptyIconText }, "No Entity Opene"))), (menuItemsList === null || menuItemsList === void 0 ? void 0 : menuItemsList.length) > 0 &&
|
|
54
|
-
menuItemsList.map((menuItems, index) => (React.createElement("div", { key: menuKey(menuItems), className: classes.nodeContainer }, React.createElement(InquiryFluentTreeMenu, { menuItems: menuItems, onSelectNode: handleSelectNode, onDropNode: onDropNode, dragSourceRef: dragSourceRef, menuIndex: index, selectedNodeId: selectedNodeId, sidebarExpanded: sidebarExpanded, catalogObjects: catalogObjects, promotedEntities: promotedEntities,
|
|
63
|
+
menuItemsList.map((menuItems, index) => (React.createElement("div", { key: menuKey(menuItems), className: classes.nodeContainer }, React.createElement(InquiryFluentTreeMenu, { menuItems: menuItems, onSelectNode: handleSelectNode, onDropNode: onDropNode, dragSourceRef: dragSourceRef, menuIndex: index, selectedNodeId: selectedNodeId, sidebarExpanded: sidebarExpanded, catalogObjects: catalogObjects, promotedEntities: promotedEntities, findLevel: findLevel, setMenuList: setMenuList, treeViewMode: treeViewMode, onExpandedChange: onExpandedChange, filter: filter, onRemoveRoot: onRemoveRoot, removeRootLabel: removeRootLabel, loadChildren: loadChildren,
|
|
64
|
+
// The root level's "Show more" closes the whole list.
|
|
65
|
+
rootMore: index === menuItemsList.length - 1 ? rootMore : undefined })))), menuLoading && (React.createElement("div", { className: classes.loader }, React.createElement(NodeLoader, { loading: menuLoading, nodesRequested: nodesRequested })))));
|
|
55
66
|
};
|
|
56
67
|
//# sourceMappingURL=NodeList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeList.js","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/NodeList.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;A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S,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,aAAa,IAC5D,oBAAC,qBAAqB,IACpB,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,gBAAgB,EAC9B,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,SAAS,EAAE,KAAK,EAChB,cAAc,EAAE,cAAc,EAC9B,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY;YAC1B,sDAAsD;YACtD,QAAQ,EACN,KAAK,KAAK,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,GAE3D,CACE,CACP,CAAC,EACH,WAAW,IAAI,CACd,6BAAK,SAAS,EAAE,OAAO,CAAC,MAAM,IAC5B,oBAAC,UAAU,IAAC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,GAAI,CAChE,CACP,CACG,CACP,CAAC;AAAA,CACH,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { UdpText } from "../../../UI/fluent-web-components/UdpText.mjs";
|
|
|
3
3
|
import SvgIcon from "../../../utilities/iconLibrary/SvgIcon.mjs";
|
|
4
4
|
import { NodeLoader } from "../../../UI/feedback/NodeLoader.mjs";
|
|
5
5
|
import { InquiryFluentTreeMenu } from "./InquiryFluentTreeMenu.mjs";
|
|
6
|
+
import { isDroppedPageNode } from "./droppedPageModel.mjs";
|
|
7
|
+
import { stableKeyOf } from "./menuRebuildModel.mjs";
|
|
6
8
|
import React, { useRef } from "react";
|
|
7
9
|
import { makeStyles } from "@material-ui/core";
|
|
8
10
|
import clsx from "clsx";
|
|
@@ -26,13 +28,22 @@ const useStyles = makeStyles((theme) => ({
|
|
|
26
28
|
/**
|
|
27
29
|
* Identity of a menu entry. An entry is either one display root (v1) or a list
|
|
28
30
|
* of roots rendered as one menu (a whole page of root records) — the first
|
|
29
|
-
* root
|
|
30
|
-
*
|
|
31
|
+
* root names the list, so prepending a menu still mounts a fresh component
|
|
32
|
+
* instead of reusing index 0's state. It is named by what it IS (its record or
|
|
33
|
+
* group — menuRebuildModel's stable key), not by its display id: a rebuild
|
|
34
|
+
* mints new display ids for the same records, and the menu must outlive that,
|
|
35
|
+
* or the tree is torn down under the keyboard focus every time the root list
|
|
36
|
+
* grows or refreshes. A dropped page has no record of its own, and its id is
|
|
37
|
+
* already kept across rebuilds.
|
|
31
38
|
*/
|
|
32
|
-
const menuKey = (menuItems) =>
|
|
39
|
+
const menuKey = (menuItems) => {
|
|
40
|
+
const first = Array.isArray(menuItems) ? menuItems[0] : menuItems;
|
|
41
|
+
if (!first) return void 0;
|
|
42
|
+
return isDroppedPageNode(first) ? first.id : stableKeyOf(first);
|
|
43
|
+
};
|
|
33
44
|
const NodeList = (props) => {
|
|
34
|
-
const $ = c(
|
|
35
|
-
const { menuItemsList, onSelectNode, onDropNode, selectedNodeId, classes: classProps, menuLoading, nodesRequested, sidebarExpanded, catalogObjects, promotedEntities,
|
|
45
|
+
const $ = c(40);
|
|
46
|
+
const { menuItemsList, onSelectNode, onDropNode, selectedNodeId, classes: classProps, menuLoading, nodesRequested, sidebarExpanded, catalogObjects, promotedEntities, findLevel, setMenuList, treeViewMode, onExpandedChange, filter, onRemoveRoot, removeRootLabel, loadChildren, rootMore } = props;
|
|
36
47
|
let t0;
|
|
37
48
|
if ($[0] !== classProps) {
|
|
38
49
|
t0 = classProps || {};
|
|
@@ -76,7 +87,7 @@ const NodeList = (props) => {
|
|
|
76
87
|
$[12] = t4;
|
|
77
88
|
} else t4 = $[12];
|
|
78
89
|
let t5;
|
|
79
|
-
if ($[13] !== catalogObjects || $[14] !== classes.nodeContainer || $[15] !== filter || $[16] !==
|
|
90
|
+
if ($[13] !== catalogObjects || $[14] !== classes.nodeContainer || $[15] !== filter || $[16] !== findLevel || $[17] !== handleSelectNode || $[18] !== loadChildren || $[19] !== menuItemsList || $[20] !== onDropNode || $[21] !== onExpandedChange || $[22] !== onRemoveRoot || $[23] !== promotedEntities || $[24] !== removeRootLabel || $[25] !== rootMore || $[26] !== selectedNodeId || $[27] !== setMenuList || $[28] !== sidebarExpanded || $[29] !== treeViewMode) {
|
|
80
91
|
t5 = menuItemsList?.length > 0 && menuItemsList.map((menuItems, index) => /* @__PURE__ */ React.createElement("div", {
|
|
81
92
|
key: menuKey(menuItems),
|
|
82
93
|
className: classes.nodeContainer
|
|
@@ -90,53 +101,55 @@ const NodeList = (props) => {
|
|
|
90
101
|
sidebarExpanded,
|
|
91
102
|
catalogObjects,
|
|
92
103
|
promotedEntities,
|
|
93
|
-
|
|
104
|
+
findLevel,
|
|
94
105
|
setMenuList,
|
|
95
106
|
treeViewMode,
|
|
96
107
|
onExpandedChange,
|
|
97
108
|
filter,
|
|
98
109
|
onRemoveRoot,
|
|
99
110
|
removeRootLabel,
|
|
100
|
-
loadChildren
|
|
111
|
+
loadChildren,
|
|
112
|
+
rootMore: index === menuItemsList.length - 1 ? rootMore : void 0
|
|
101
113
|
})));
|
|
102
114
|
$[13] = catalogObjects;
|
|
103
115
|
$[14] = classes.nodeContainer;
|
|
104
116
|
$[15] = filter;
|
|
105
|
-
$[16] =
|
|
106
|
-
$[17] =
|
|
107
|
-
$[18] =
|
|
108
|
-
$[19] =
|
|
109
|
-
$[20] =
|
|
110
|
-
$[21] =
|
|
111
|
-
$[22] =
|
|
112
|
-
$[23] =
|
|
113
|
-
$[24] =
|
|
114
|
-
$[25] =
|
|
115
|
-
$[26] =
|
|
116
|
-
$[27] =
|
|
117
|
-
$[28] =
|
|
118
|
-
$[29] =
|
|
119
|
-
|
|
117
|
+
$[16] = findLevel;
|
|
118
|
+
$[17] = handleSelectNode;
|
|
119
|
+
$[18] = loadChildren;
|
|
120
|
+
$[19] = menuItemsList;
|
|
121
|
+
$[20] = onDropNode;
|
|
122
|
+
$[21] = onExpandedChange;
|
|
123
|
+
$[22] = onRemoveRoot;
|
|
124
|
+
$[23] = promotedEntities;
|
|
125
|
+
$[24] = removeRootLabel;
|
|
126
|
+
$[25] = rootMore;
|
|
127
|
+
$[26] = selectedNodeId;
|
|
128
|
+
$[27] = setMenuList;
|
|
129
|
+
$[28] = sidebarExpanded;
|
|
130
|
+
$[29] = treeViewMode;
|
|
131
|
+
$[30] = t5;
|
|
132
|
+
} else t5 = $[30];
|
|
120
133
|
let t6;
|
|
121
|
-
if ($[
|
|
134
|
+
if ($[31] !== classes.loader || $[32] !== menuLoading || $[33] !== nodesRequested) {
|
|
122
135
|
t6 = menuLoading && /* @__PURE__ */ React.createElement("div", { className: classes.loader }, /* @__PURE__ */ React.createElement(NodeLoader, {
|
|
123
136
|
loading: menuLoading,
|
|
124
137
|
nodesRequested
|
|
125
138
|
}));
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
130
|
-
} else t6 = $[
|
|
139
|
+
$[31] = classes.loader;
|
|
140
|
+
$[32] = menuLoading;
|
|
141
|
+
$[33] = nodesRequested;
|
|
142
|
+
$[34] = t6;
|
|
143
|
+
} else t6 = $[34];
|
|
131
144
|
let t7;
|
|
132
|
-
if ($[
|
|
145
|
+
if ($[35] !== t3 || $[36] !== t4 || $[37] !== t5 || $[38] !== t6) {
|
|
133
146
|
t7 = /* @__PURE__ */ React.createElement("div", { className: t3 }, t4, t5, t6);
|
|
134
|
-
$[
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
$[
|
|
138
|
-
$[
|
|
139
|
-
} else t7 = $[
|
|
147
|
+
$[35] = t3;
|
|
148
|
+
$[36] = t4;
|
|
149
|
+
$[37] = t5;
|
|
150
|
+
$[38] = t6;
|
|
151
|
+
$[39] = t7;
|
|
152
|
+
} else t7 = $[39];
|
|
140
153
|
return t7;
|
|
141
154
|
};
|
|
142
155
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeList.mjs","names":["React","useCallback","useRef","makeStyles","UdpText","NodeLoader","InquiryFluentTreeMenu","clsx","NoEntityOpenedUrl","SvgIcon","useStyles","theme","root","overflowX","nodeContainer","width","loader","marginRight","spacing","marginLeft","empty","display","justifyContent","alignItems","emptyIcon","textAlign","emptyIconText","color","palette","secondary","menuKey","menuItems","Array","isArray","id","NodeList","props","$","_c","menuItemsList","onSelectNode","onDropNode","selectedNodeId","classes","classProps","menuLoading","nodesRequested","sidebarExpanded","catalogObjects","promotedEntities","
|
|
1
|
+
{"version":3,"file":"NodeList.mjs","names":["React","useCallback","useRef","makeStyles","UdpText","NodeLoader","InquiryFluentTreeMenu","isDroppedPageNode","stableKeyOf","clsx","NoEntityOpenedUrl","SvgIcon","useStyles","theme","root","overflowX","nodeContainer","width","loader","marginRight","spacing","marginLeft","empty","display","justifyContent","alignItems","emptyIcon","textAlign","emptyIconText","color","palette","secondary","menuKey","menuItems","first","Array","isArray","undefined","id","NodeList","props","$","_c","menuItemsList","onSelectNode","onDropNode","selectedNodeId","classes","classProps","menuLoading","nodesRequested","sidebarExpanded","catalogObjects","promotedEntities","findLevel","setMenuList","treeViewMode","onExpandedChange","filter","onRemoveRoot","removeRootLabel","loadChildren","rootMore","t0","t1","selectedNode","menuIndex","selectedTree","handleSelectNode","dragSourceRef","t2","length","t3","t4","t5","map","index","t6","t7"],"sources":["../../../../src/inquiry/v2/tree/NodeList.jsx"],"sourcesContent":["import React, { useCallback, useRef } from 'react';\nimport { makeStyles } from '@material-ui/core';\nimport { UdpText } from '../../../UI/fluent-web-components/UdpText';\nimport { NodeLoader } from '../../../UI/feedback/NodeLoader';\nimport { InquiryFluentTreeMenu } from './InquiryFluentTreeMenu';\nimport { isDroppedPageNode } from './droppedPageModel';\nimport { stableKeyOf } from './menuRebuildModel';\nimport clsx from 'clsx';\nimport NoEntityOpenedUrl from '../../../assets/unityIcons/NoEntityOpened.svg';\nimport { SvgIcon } from '../../../utilities/iconLibrary/SvgIcon';\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n overflowX: 'auto'\n },\n nodeContainer: {\n width: '100%'\n },\n loader: {\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1)\n },\n empty: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n },\n emptyIcon: {\n textAlign: 'center'\n },\n emptyIconText: {\n color: theme.palette.secondary\n }\n}));\n\n/**\n * Identity of a menu entry. An entry is either one display root (v1) or a list\n * of roots rendered as one menu (a whole page of root records) — the first\n * root names the list, so prepending a menu still mounts a fresh component\n * instead of reusing index 0's state. It is named by what it IS (its record or\n * group — menuRebuildModel's stable key), not by its display id: a rebuild\n * mints new display ids for the same records, and the menu must outlive that,\n * or the tree is torn down under the keyboard focus every time the root list\n * grows or refreshes. A dropped page has no record of its own, and its id is\n * already kept across rebuilds.\n */\nconst menuKey = (menuItems) => {\n const first = Array.isArray(menuItems) ? menuItems[0] : menuItems;\n if (!first) return undefined;\n return isDroppedPageNode(first) ? first.id : stableKeyOf(first);\n};\n\nexport const NodeList = (props) => {\n const {\n menuItemsList,\n onSelectNode,\n onDropNode,\n selectedNodeId,\n classes: classProps,\n menuLoading,\n nodesRequested,\n sidebarExpanded,\n catalogObjects,\n promotedEntities,\n findLevel,\n setMenuList,\n treeViewMode,\n onExpandedChange,\n filter,\n onRemoveRoot,\n removeRootLabel,\n loadChildren,\n rootMore\n } = props;\n const { root } = classProps || {};\n const classes = useStyles();\n\n const handleSelectNode = useCallback(\n (selectedNode, menuIndex, selectedTree) => {\n onSelectNode(selectedNode, menuIndex, selectedTree);\n },\n [onSelectNode]\n );\n\n // The drag source for an in-flight row drag ({ node, menuIndex }). Owned\n // here because a drag can start in one menu's tree and drop in another's —\n // the target menu combines this with its own drop row to call onDropNode.\n const dragSourceRef = useRef(null);\n\n return (\n <div\n className={clsx(\n classes.root,\n root,\n !!!menuItemsList?.length && !menuLoading && classes.empty\n )}\n >\n {!!!menuItemsList?.length && !menuLoading && (\n <div className={classes.emptyIcon}>\n <SvgIcon src={NoEntityOpenedUrl} size={42} />\n <UdpText variant='subtitle1' className={classes.emptyIconText}>\n No Entity Opened\n </UdpText>\n </div>\n )}\n {menuItemsList?.length > 0 &&\n menuItemsList.map((menuItems, index) => (\n <div key={menuKey(menuItems)} className={classes.nodeContainer}>\n <InquiryFluentTreeMenu\n menuItems={menuItems}\n onSelectNode={handleSelectNode}\n onDropNode={onDropNode}\n dragSourceRef={dragSourceRef}\n menuIndex={index}\n selectedNodeId={selectedNodeId}\n sidebarExpanded={sidebarExpanded}\n catalogObjects={catalogObjects}\n promotedEntities={promotedEntities}\n findLevel={findLevel}\n setMenuList={setMenuList}\n treeViewMode={treeViewMode}\n onExpandedChange={onExpandedChange}\n filter={filter}\n onRemoveRoot={onRemoveRoot}\n removeRootLabel={removeRootLabel}\n loadChildren={loadChildren}\n // The root level's \"Show more\" closes the whole list.\n rootMore={\n index === menuItemsList.length - 1 ? rootMore : undefined\n }\n />\n </div>\n ))}\n {menuLoading && (\n <div className={classes.loader}>\n <NodeLoader loading={menuLoading} nodesRequested={nodesRequested} />\n </div>\n )}\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAWA,MAAMY,YAAYT,YAAYU,WAAW;CACvCC,MAAM,EACJC,WAAW,QACZ;CACDC,eAAe,EACbC,OAAO,QACR;CACDC,QAAQ;EACNC,aAAaN,MAAMO,QAAQ,EAAE;EAC7BC,YAAYR,MAAMO,QAAQ,EAAC;EAC5B;CACDE,OAAO;EACLC,SAAS;EACTC,gBAAgB;EAChBC,YAAY;EACb;CACDC,WAAW,EACTC,WAAW,UACZ;CACDC,eAAe,EACbC,OAAOhB,MAAMiB,QAAQC,WACvB;CACD,EAAE;;;;;;;;;;;;AAaH,MAAMC,WAAWC,cAAc;CAC7B,MAAMC,QAAQC,MAAMC,QAAQ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
13
|
autoSelectFirst: boolean;
|
|
14
14
|
}
|
|
15
15
|
export declare const deriveArrival: ({ explorePageId, loadRecordsOnOpen, deepLinkIsRoot }: ArrivalInput) => Arrival;
|
|
16
|
+
export interface IdleRecordPaneInput {
|
|
17
|
+
/** A `searchValue` arrival not yet honored — its search, or the load it starts. */
|
|
18
|
+
arrivalPending: boolean;
|
|
19
|
+
/** `tree.explorePageId` — set means this tree opens on a landing page. */
|
|
20
|
+
explorePageId?: string | null;
|
|
21
|
+
/** The seeded root page is still being fetched. */
|
|
22
|
+
recordsLoading: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* What the record pane shows with no record selected. A pending arrival is
|
|
26
|
+
* loading: the record it names is on its way, so neither the landing nor the
|
|
27
|
+
* empty hint may flash first. Otherwise the landing renders straight away —
|
|
28
|
+
* it owns its own data and never waits on the root page.
|
|
29
|
+
*/
|
|
30
|
+
export declare const idleRecordPane: ({ arrivalPending, explorePageId, recordsLoading }: IdleRecordPaneInput) => "empty" | "landing" | "loading";
|
|
16
31
|
//# sourceMappingURL=arrivalModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrivalModel.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/arrivalModel.ts"],"names":[],"mappings":"AAqCA,MAAM,WAAW,YAAY;IAC3B,4EAA0E;IAC1E,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,6EAA6E;IAC7E,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,uEAAuE;IACvE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,OAAO;IACtB,iDAAiD;IACjD,eAAe,EAAE,OAAO,CAAC;IACzB,gFAAgF;IAChF,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa,iFAazB,CAAC"}
|
|
1
|
+
{"version":3,"file":"arrivalModel.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/arrivalModel.ts"],"names":[],"mappings":"AAqCA,MAAM,WAAW,YAAY;IAC3B,4EAA0E;IAC1E,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,6EAA6E;IAC7E,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,uEAAuE;IACvE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,OAAO;IACtB,iDAAiD;IACjD,eAAe,EAAE,OAAO,CAAC;IACzB,gFAAgF;IAChF,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa,iFAazB,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,qFAAmF;IACnF,cAAc,EAAE,OAAO,CAAC;IACxB,4EAA0E;IAC1E,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,mDAAmD;IACnD,cAAc,EAAE,OAAO,CAAC;CACzB;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,6GAQ1B,CAAC"}
|
|
@@ -37,10 +37,23 @@ export const deriveArrival = ({ explorePageId, loadRecordsOnOpen, deepLinkIsRoot
|
|
|
37
37
|
const landsOnPage = !!explorePageId;
|
|
38
38
|
return {
|
|
39
39
|
// A root deep link still fetches: the root query is how one exact root
|
|
40
|
-
// record is read (identifier filters, page size
|
|
40
|
+
// record is read (identifier filters, page size 2), so honouring the URL and
|
|
41
41
|
// seeding the page are the same request.
|
|
42
42
|
seedRootRecords: !landsOnPage || isOn(loadRecordsOnOpen) || deepLinkIsRoot,
|
|
43
43
|
autoSelectFirst: !landsOnPage || deepLinkIsRoot
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* What the record pane shows with no record selected. A pending arrival is
|
|
48
|
+
* loading: the record it names is on its way, so neither the landing nor the
|
|
49
|
+
* empty hint may flash first. Otherwise the landing renders straight away —
|
|
50
|
+
* it owns its own data and never waits on the root page.
|
|
51
|
+
*/
|
|
52
|
+
export const idleRecordPane = ({ arrivalPending, explorePageId, recordsLoading }) => {
|
|
53
|
+
if (arrivalPending)
|
|
54
|
+
return 'loading';
|
|
55
|
+
if (explorePageId)
|
|
56
|
+
return 'landing';
|
|
57
|
+
return recordsLoading ? 'loading' : 'empty';
|
|
58
|
+
};
|
|
46
59
|
//# sourceMappingURL=arrivalModel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrivalModel.js","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/arrivalModel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,qFAAqF;AACrF,MAAM,IAAI,GAAG,CAAC,KAAc,EAAW,EAAE,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,MAAM,CAAC;AAkB7E,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,aAAa,EACb,iBAAiB,EACjB,cAAc,GAAG,KAAK,EACT,EAAW,EAAE,CAAC;IAC3B,MAAM,WAAW,GAAG,CAAC,CAAC,aAAa,CAAC;IACpC,OAAO;QACL,uEAAuE;QACvE,6EAA6E;QAC7E,yCAAyC;QACzC,eAAe,EAAE,CAAC,WAAW,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,cAAc;QAC1E,eAAe,EAAE,CAAC,WAAW,IAAI,cAAc;KAChD,CAAC;AAAA,CACH,CAAC"}
|
|
1
|
+
{"version":3,"file":"arrivalModel.js","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/arrivalModel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,qFAAqF;AACrF,MAAM,IAAI,GAAG,CAAC,KAAc,EAAW,EAAE,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,MAAM,CAAC;AAkB7E,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,aAAa,EACb,iBAAiB,EACjB,cAAc,GAAG,KAAK,EACT,EAAW,EAAE,CAAC;IAC3B,MAAM,WAAW,GAAG,CAAC,CAAC,aAAa,CAAC;IACpC,OAAO;QACL,uEAAuE;QACvE,6EAA6E;QAC7E,yCAAyC;QACzC,eAAe,EAAE,CAAC,WAAW,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,cAAc;QAC1E,eAAe,EAAE,CAAC,WAAW,IAAI,cAAc;KAChD,CAAC;AAAA,CACH,CAAC;AAWF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,cAAc,EACd,aAAa,EACb,cAAc,EACM,EAAmC,EAAE,CAAC;IAC1D,IAAI,cAAc;QAAE,OAAO,SAAS,CAAC;IACrC,IAAI,aAAa;QAAE,OAAO,SAAS,CAAC;IACpC,OAAO,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC;AAAA,CAC7C,CAAC"}
|
|
@@ -41,7 +41,18 @@ const deriveArrival = ({ explorePageId, loadRecordsOnOpen, deepLinkIsRoot = fals
|
|
|
41
41
|
autoSelectFirst: !landsOnPage || deepLinkIsRoot
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* What the record pane shows with no record selected. A pending arrival is
|
|
46
|
+
* loading: the record it names is on its way, so neither the landing nor the
|
|
47
|
+
* empty hint may flash first. Otherwise the landing renders straight away —
|
|
48
|
+
* it owns its own data and never waits on the root page.
|
|
49
|
+
*/
|
|
50
|
+
const idleRecordPane = ({ arrivalPending, explorePageId, recordsLoading }) => {
|
|
51
|
+
if (arrivalPending) return "loading";
|
|
52
|
+
if (explorePageId) return "landing";
|
|
53
|
+
return recordsLoading ? "loading" : "empty";
|
|
54
|
+
};
|
|
44
55
|
//#endregion
|
|
45
|
-
export { deriveArrival };
|
|
56
|
+
export { deriveArrival, idleRecordPane };
|
|
46
57
|
|
|
47
58
|
//# sourceMappingURL=arrivalModel.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrivalModel.mjs","names":["isOn","value","ArrivalInput","explorePageId","loadRecordsOnOpen","deepLinkIsRoot","Arrival","seedRootRecords","autoSelectFirst","deriveArrival","landsOnPage"],"sources":["../../../../src/inquiry/v2/tree/arrivalModel.ts"],"sourcesContent":["/**\n * ARRIVAL — what a tree does the moment it opens, before the user touches it.\n *\n * Two questions, one derivation, because they are the same decision seen from\n * either pane:\n *\n * - `seedRootRecords` — does the tree fetch its root-record page at all?\n * - `autoSelectFirst` — with nothing to re-select, does the menu fall back to\n * row one (which is what puts a record in the record pane)?\n *\n * EXPLORE-FIRST (2026-08-22). A tree that names an `explorePageId` OPENS ON A\n * PAGE: the record pane renders that landing, and the tree pane starts empty\n * until the user brings a record in through + Load. Fetching a root page nobody\n * asked to look at was a request per arrival for rows that sat behind a landing\n * screen, so the fetch is simply not made. A tree with NO explore page is\n * untouched: it seeds its page and opens on its first record, exactly as before.\n *\n * The tree author can override the default per tree — `loadRecordsOnOpen: true`\n * on the ROOT level says \"load the records anyway\", which is the pre-2026-08-22\n * shape (seeded page behind the landing). The key ABSENT is the derived default,\n * so no saved tree needs migrating and unticking the box removes the key rather\n * than storing `false`. It is only meaningful with a landing screen to be\n * first — without one there is nothing for it to override, which is why the\n * Tree Builder doesn't render the control there.\n *\n * SELECTION is a separate lever from SEEDING, deliberately: `loadRecordsOnOpen`\n * fills the tree, it does not steal the landing. Only two things select on\n * arrival — a tree with no landing (row one, as always) and a `?node` deep link\n * naming a ROOT record, which is the one case where the seeded page IS the\n * record the URL asked for. Without that second clause an explore tree swallowed\n * every root deep link: the record was fetched, seeded as the only row, and then\n * never selected, leaving the user on the landing looking at a one-row tree.\n */\n\n/** True for the wire's boolean, and for the string an older writer may have left. */\nconst isOn = (value: unknown): boolean => value === true || value === 'true';\n\nexport interface ArrivalInput {\n /** `tree.explorePageId` — set means this tree opens on a landing page. */\n explorePageId?: string | null;\n /** Root level's `properties.loadRecordsOnOpen`; absent = derived default. */\n loadRecordsOnOpen?: unknown;\n /** True when `?node` names a record at the ROOT level of this tree. */\n deepLinkIsRoot?: boolean;\n}\n\nexport interface Arrival {\n /** Whether the root-record query runs at all. */\n seedRootRecords: boolean;\n /** Whether a build with nothing to re-select falls back to the first record. */\n autoSelectFirst: boolean;\n}\n\nexport const deriveArrival = ({\n explorePageId,\n loadRecordsOnOpen,\n deepLinkIsRoot = false\n}: ArrivalInput): Arrival => {\n const landsOnPage = !!explorePageId;\n return {\n // A root deep link still fetches: the root query is how one exact root\n // record is read (identifier filters, page size
|
|
1
|
+
{"version":3,"file":"arrivalModel.mjs","names":["isOn","value","ArrivalInput","explorePageId","loadRecordsOnOpen","deepLinkIsRoot","Arrival","seedRootRecords","autoSelectFirst","deriveArrival","landsOnPage","IdleRecordPaneInput","arrivalPending","recordsLoading","idleRecordPane"],"sources":["../../../../src/inquiry/v2/tree/arrivalModel.ts"],"sourcesContent":["/**\n * ARRIVAL — what a tree does the moment it opens, before the user touches it.\n *\n * Two questions, one derivation, because they are the same decision seen from\n * either pane:\n *\n * - `seedRootRecords` — does the tree fetch its root-record page at all?\n * - `autoSelectFirst` — with nothing to re-select, does the menu fall back to\n * row one (which is what puts a record in the record pane)?\n *\n * EXPLORE-FIRST (2026-08-22). A tree that names an `explorePageId` OPENS ON A\n * PAGE: the record pane renders that landing, and the tree pane starts empty\n * until the user brings a record in through + Load. Fetching a root page nobody\n * asked to look at was a request per arrival for rows that sat behind a landing\n * screen, so the fetch is simply not made. A tree with NO explore page is\n * untouched: it seeds its page and opens on its first record, exactly as before.\n *\n * The tree author can override the default per tree — `loadRecordsOnOpen: true`\n * on the ROOT level says \"load the records anyway\", which is the pre-2026-08-22\n * shape (seeded page behind the landing). The key ABSENT is the derived default,\n * so no saved tree needs migrating and unticking the box removes the key rather\n * than storing `false`. It is only meaningful with a landing screen to be\n * first — without one there is nothing for it to override, which is why the\n * Tree Builder doesn't render the control there.\n *\n * SELECTION is a separate lever from SEEDING, deliberately: `loadRecordsOnOpen`\n * fills the tree, it does not steal the landing. Only two things select on\n * arrival — a tree with no landing (row one, as always) and a `?node` deep link\n * naming a ROOT record, which is the one case where the seeded page IS the\n * record the URL asked for. Without that second clause an explore tree swallowed\n * every root deep link: the record was fetched, seeded as the only row, and then\n * never selected, leaving the user on the landing looking at a one-row tree.\n */\n\n/** True for the wire's boolean, and for the string an older writer may have left. */\nconst isOn = (value: unknown): boolean => value === true || value === 'true';\n\nexport interface ArrivalInput {\n /** `tree.explorePageId` — set means this tree opens on a landing page. */\n explorePageId?: string | null;\n /** Root level's `properties.loadRecordsOnOpen`; absent = derived default. */\n loadRecordsOnOpen?: unknown;\n /** True when `?node` names a record at the ROOT level of this tree. */\n deepLinkIsRoot?: boolean;\n}\n\nexport interface Arrival {\n /** Whether the root-record query runs at all. */\n seedRootRecords: boolean;\n /** Whether a build with nothing to re-select falls back to the first record. */\n autoSelectFirst: boolean;\n}\n\nexport const deriveArrival = ({\n explorePageId,\n loadRecordsOnOpen,\n deepLinkIsRoot = false\n}: ArrivalInput): Arrival => {\n const landsOnPage = !!explorePageId;\n return {\n // A root deep link still fetches: the root query is how one exact root\n // record is read (identifier filters, page size 2), so honouring the URL and\n // seeding the page are the same request.\n seedRootRecords: !landsOnPage || isOn(loadRecordsOnOpen) || deepLinkIsRoot,\n autoSelectFirst: !landsOnPage || deepLinkIsRoot\n };\n};\n\nexport interface IdleRecordPaneInput {\n /** A `searchValue` arrival not yet honored — its search, or the load it starts. */\n arrivalPending: boolean;\n /** `tree.explorePageId` — set means this tree opens on a landing page. */\n explorePageId?: string | null;\n /** The seeded root page is still being fetched. */\n recordsLoading: boolean;\n}\n\n/**\n * What the record pane shows with no record selected. A pending arrival is\n * loading: the record it names is on its way, so neither the landing nor the\n * empty hint may flash first. Otherwise the landing renders straight away —\n * it owns its own data and never waits on the root page.\n */\nexport const idleRecordPane = ({\n arrivalPending,\n explorePageId,\n recordsLoading\n}: IdleRecordPaneInput): 'loading' | 'landing' | 'empty' => {\n if (arrivalPending) return 'loading';\n if (explorePageId) return 'landing';\n return recordsLoading ? 'loading' : 'empty';\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,MAAMA,QAAQC,UAA4BA,UAAU,QAAQA,UAAU;AAkBtE,MAAaQ,iBAAiB,EAC5BN,eACAC,mBACAC,iBAAiB,YACU;CAC3B,MAAMK,cAAc,CAAC,CAACP;AACtB,QAAO;EAILI,iBAAiB,CAACG,eAAeV,KAAKI,kBAAkB,IAAIC;EAC5DG,iBAAiB,CAACE,eAAeL;EAClC;;;;;;;;AAkBH,MAAaS,kBAAkB,EAC7BF,gBACAT,eACAU,qBAC0D;AAC1D,KAAID,eAAgB,QAAO;AAC3B,KAAIT,cAAe,QAAO;AAC1B,QAAOU,iBAAiB,YAAY"}
|