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":"types.d.ts","sourceRoot":"","sources":["../../../src/domain/actionPanel/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/domain/actionPanel/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElE,YAAY,EAAE,SAAS,EAAE,CAAC;AAE1B;;;GAGG;AACH,oBAAY,UAAU;IACpB,mCAAmC;IACnC,UAAU,IAAI;IACd,sCAAsC;IACtC,aAAa,IAAI;IACjB,oCAAoC;IACpC,MAAM,IAAI;IACV,oCAAoC;IACpC,MAAM,IAAI;IACV,6BAA6B;IAC7B,MAAM,IAAI;IACV,2CAA2C;IAC3C,QAAQ,IAAI;IACZ,kCAAkC;IAClC,QAAQ,KAAK;IACb,4CAA4C;IAC5C,gBAAgB,KAAK;IACrB,kDAAkD;IAClD,mBAAmB,KAAK;IACxB,mDAAmD;IACnD,oBAAoB,KAAK;IACzB,qDAAqD;IACrD,SAAS,KAAK;IACd,yDAAyD;IACzD,aAAa,KAAK;IAClB,sCAAsC;IACtC,eAAe,KAAK;CACrB;AAED,kEAAkE;AAClE,eAAO,MAAM,YAAY,EAAE,SAAS,UAAU,EAc5C,CAAC;AAEH,sDAAsD;AACtD,eAAO,MAAM,YAAY,yCAE4B,CAAC;AAEtD;;;;;GAKG;AAC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AAM,WAAW,KAAK;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB;;;;OAIG;IACH,UAAU,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE,eAAe,CAAC;IAC5B,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/domain/actionPanel/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/domain/actionPanel/types.ts"],"names":[],"mappings":"SA6BY,UAAU;AAJtB;;;GAGG;AACH,IAAY,UA2BX;AA3BD,WAAY,UAAU;IACpB,mCAAmC;IACnC,uDAAc,CAAA;IACd,sCAAsC;IACtC,6DAAiB,CAAA;IACjB,oCAAoC;IACpC,+CAAU,CAAA;IACV,oCAAoC;IACpC,+CAAU,CAAA;IACV,6BAA6B;IAC7B,+CAAU,CAAA;IACV,2CAA2C;IAC3C,mDAAY,CAAA;IACZ,kCAAkC;IAClC,oDAAa,CAAA;IACb,4CAA4C;IAC5C,oEAAqB,CAAA;IACrB,kDAAkD;IAClD,0EAAwB,CAAA;IACxB,mDAAmD;IACnD,4EAAyB,CAAA;IACzB,qDAAqD;IACrD,sDAAc,CAAA;IACd,yDAAyD;IACzD,8DAAkB,CAAA;IAClB,sCAAsC;IACtC,kEAAoB,CAAA;AAAA,CACtB,EA3BY,UAAU,KAAV,UAAU,QA2BrB;AAED,kEAAkE;AAClE,MAAM,CAAC,MAAM,YAAY,GAA0B,MAAM,CAAC,MAAM,CAAC;IAC/D,UAAU,CAAC,UAAU;IACrB,UAAU,CAAC,aAAa;IACxB,UAAU,CAAC,MAAM;IACjB,UAAU,CAAC,MAAM;IACjB,UAAU,CAAC,MAAM;IACjB,UAAU,CAAC,QAAQ;IACnB,UAAU,CAAC,QAAQ;IACnB,UAAU,CAAC,gBAAgB;IAC3B,UAAU,CAAC,mBAAmB;IAC9B,UAAU,CAAC,oBAAoB;IAC/B,UAAU,CAAC,SAAS;IACpB,UAAU,CAAC,aAAa;IACxB,UAAU,CAAC,eAAe;CAC3B,CAAC,CAAC;AAEH,sDAAsD;AACtD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAc,EAAuB,EAAE,CAClE,OAAO,KAAK,KAAK,QAAQ;IACxB,YAAkC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","names":["JsonLogic","
|
|
1
|
+
{"version":3,"file":"types.mjs","names":["JsonLogic","StagedRule","ActionType","ExecuteApi","StartWorkflow","Create","Update","Delete","Retrieve","Redirect","OpenExternalLink","OpenPageSplitScreen","OpenShellSplitScreen","OpenNotes","OpenReminders","ExecuteFunction","ACTION_TYPES","Object","freeze","isActionType","value","includes","ActionRule","actionRuleId","ruleId","jsonLogic","mapping","Record","propertyIsCustomMapping","stagedRule","unknownKeys","ActionProvenance","tenantId","productVersionId","parentActionId","isProductAction","isGlobalAction","ActionParameters","pageId","pageDisplayName","entityName","requiredFieldMapping","ActionConfig","actionId","name","actionTypeId","parameters","rules","provenance","PanelButtonIcon","type","fluentName","PanelButton","panelActionId","action","icon","groupName","sequence","enabled","isPrimary","hideAction","PanelProvenance","parentPanelId","isProductPanel","Panel","panelId","buttons","panelRules"],"sources":["../../../src/domain/actionPanel/types.ts"],"sourcesContent":["/**\n * Typed domain model for UDP action panels — named containers of action buttons\n * attached to inquiry tree nodes (\"Speed Dial\", \"Account actions\", …).\n *\n * The single source of truth for what a panel is, shared by Tree Builder v2's\n * panel editor and the inquiry v2 runtime. Pure types: no React, no HTTP.\n * Wire↔domain conversion happens ONLY in serialize.ts.\n *\n * Wire boundary (captured live 2026-07-28 against gateway.unitydev.ca):\n * - GET integrationService/api/v1/panel/detailed?tenantId={id} → panels WITH\n * nested `panelActions`\n * - GET integrationService/api/v1/action/panel/{panelId} → the same\n * `PanelAction` rows standalone\n * - PUT action/panel/{panelId} buckets rows by presence of `panelActionId`\n * (present ⇒ update, absent ⇒ add-and-associate)\n *\n * Every domain object carries an `unknownKeys` bag so server-owned fields we do\n * not model (clusterId, redundant parent ids, future additions) survive a\n * read→edit→write round trip untouched.\n */\n\nimport type { JsonLogic, StagedRule } from '../inquiryTree/types';\n\nexport type { JsonLogic };\n\n/**\n * Action behaviour discriminator (legacy `NodeActionEnums`, offered subset).\n * The numbers are persisted values — never renumber.\n */\nexport enum ActionType {\n /** Call an API method directly. */\n ExecuteApi = 2,\n /** Kick off a workflow definition. */\n StartWorkflow = 3,\n /** Create a record (API + page). */\n Create = 4,\n /** Update a record (API + page). */\n Update = 5,\n /** Delete a record (API). */\n Delete = 6,\n /** Retrieve/view a record (API + page). */\n Retrieve = 7,\n /** Navigate to an in-app path. */\n Redirect = 10,\n /** Open an absolute URL outside the app. */\n OpenExternalLink = 11,\n /** Open a page in the page-level split screen. */\n OpenPageSplitScreen = 14,\n /** Open a page in the shell-level split screen. */\n OpenShellSplitScreen = 15,\n /** Open the notes surface for the current record. */\n OpenNotes = 16,\n /** Open the reminders surface for the current record. */\n OpenReminders = 17,\n /** Invoke a named client function. */\n ExecuteFunction = 18\n}\n\n/** Every `ActionType` member, in offered (persisted-id) order. */\nexport const ACTION_TYPES: readonly ActionType[] = Object.freeze([\n ActionType.ExecuteApi,\n ActionType.StartWorkflow,\n ActionType.Create,\n ActionType.Update,\n ActionType.Delete,\n ActionType.Retrieve,\n ActionType.Redirect,\n ActionType.OpenExternalLink,\n ActionType.OpenPageSplitScreen,\n ActionType.OpenShellSplitScreen,\n ActionType.OpenNotes,\n ActionType.OpenReminders,\n ActionType.ExecuteFunction\n]);\n\n/** Narrowing guard for a persisted `actionTypeId`. */\nexport const isActionType = (value: unknown): value is ActionType =>\n typeof value === 'number' &&\n (ACTION_TYPES as readonly number[]).includes(value);\n\n/**\n * Visibility / enablement rule on an action.\n * `mapping` binds a JsonLogic variable name to a record field name; the\n * matching `propertyIsCustomMapping` flag marks vars whose value is supplied by\n * the caller rather than read off the record.\n */\nexport interface ActionRule {\n /** Association id — absent on a rule that has never been persisted. */\n actionRuleId?: string;\n /**\n * Tenant `Rule` entity this row links to. Absent while `stagedRule` names\n * the rule Save binds — a condition names its rule in one place.\n */\n ruleId?: string;\n /** JsonLogic expression evaluated against the mapped variables. */\n jsonLogic: JsonLogic | null;\n /** JsonLogic var name → record field name. */\n mapping: Record<string, string>;\n /** JsonLogic var name → \"value is custom, not a record field\". */\n propertyIsCustomMapping: Record<string, boolean>;\n /**\n * The rule the tree's Save writes and binds for this condition — the same\n * `StagedRule` a tree condition carries. Never on a tree the server read.\n */\n stagedRule?: StagedRule;\n /** Unrecognized wire keys preserved verbatim for write-back. */\n unknownKeys?: Record<string, unknown>;\n}\n\n/** Where an action came from — drives the tenant-override fork on edit. */\nexport interface ActionProvenance {\n tenantId?: string;\n productVersionId?: string;\n /** Product action this row overrides, or null when it is not an override. */\n parentActionId?: string | null;\n /** Ships with the product (read-only for non-product tenants). */\n isProductAction: boolean;\n /** Available to every tree/node rather than a specific panel. */\n isGlobalAction: boolean;\n}\n\n/** An action's parameter bag; keys beyond these ride through untouched. */\nexport interface ActionParameters extends Record<string, unknown> {\n pageId?: string;\n pageDisplayName?: string;\n entityName?: string;\n requiredFieldMapping?: Record<string, unknown>;\n}\n\n/**\n * The action itself — what a button does when pressed. Shared across panels:\n * two panels can reference one `actionId`.\n */\nexport interface ActionConfig {\n /** null ⇒ new, not yet persisted. */\n actionId: string | null;\n /** Author-facing label (also the button label). */\n name: string;\n actionTypeId: ActionType;\n /**\n * Type-dependent payload: apiMethodId for API types, pageId for legacy page\n * types, path/url/function-name for text types. `''` when not applicable.\n */\n value: string | null;\n /**\n * Typed parameter bag: `pageId` for the page types, `entityName` for the\n * entity an action targets or a link carries.\n */\n parameters: ActionParameters | null;\n /** Visibility/enablement rules; empty array = always shown. */\n rules: ActionRule[];\n provenance: ActionProvenance;\n /** Unrecognized wire keys preserved verbatim for write-back. */\n unknownKeys?: Record<string, unknown>;\n}\n\n/**\n * Button icon as persisted. Names are historically LEGACY Fluent React icon\n * names (`SplitIcon`, `ReminderTimeIcon`) — see actionTypeMeta.ts for\n * resolution onto the stencil icon registry.\n */\nexport interface PanelButtonIcon {\n name: string;\n /** Legacy discriminator carried on the wire (usually null). */\n type: string | null;\n /**\n * Stencil icon-registry name, written beside a legacy MDL2 `name` so 26.x\n * renders `name` and v27 renders this. Absent on icons saved before it.\n */\n fluentName?: string | null;\n /** Unrecognized wire keys preserved verbatim for write-back. */\n unknownKeys?: Record<string, unknown>;\n}\n\n/**\n * One button in a panel: a panel↔action association plus its presentation.\n */\nexport interface PanelButton {\n /** Association id. Present ⇒ persisted row (update); absent ⇒ add. */\n panelActionId?: string;\n action: ActionConfig;\n icon: PanelButtonIcon;\n /** Free-text grouping label (\"Account\", \"Workflow\"), or null. */\n groupName: string | null;\n /** Display order within the panel. Normalized to a number on read. */\n sequence: number;\n /** false ⇒ rendered disabled. */\n enabled: boolean;\n /** Promoted button (primary appearance / speed-dial trigger). */\n isPrimary: boolean;\n /** true ⇒ not rendered at all. */\n hideAction: boolean;\n /** Unrecognized wire keys preserved verbatim for write-back. */\n unknownKeys?: Record<string, unknown>;\n}\n\n/** Where a panel came from — drives the tenant-override fork on edit. */\nexport interface PanelProvenance {\n tenantId?: string;\n productVersionId?: string;\n /** Product panel this row overrides, or null when it is not an override. */\n parentPanelId?: string | null;\n /** Ships with the product (read-only for non-product tenants). */\n isProductPanel: boolean;\n}\n\n/** A named container of action buttons, attachable to inquiry tree nodes. */\nexport interface Panel {\n panelId: string;\n name: string;\n buttons: PanelButton[];\n /**\n * Panel-level rules. Opaque passthrough: no live example exists yet, so the\n * domain deliberately does not model the element shape — `null` is preserved\n * as `null` rather than normalized to `[]`.\n */\n panelRules: unknown[] | null;\n provenance: PanelProvenance;\n /** Unrecognized wire keys preserved verbatim for write-back. */\n unknownKeys?: Record<string, unknown>;\n}\n"],"mappings":";;;;;AA6BA,IAAYE,aAAL,yBAAA,YAAA;;AAELC,YAAAA,WAAAA,gBAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,mBAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,YAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,YAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,YAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,cAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,cAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,sBAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,yBAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,0BAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,eAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,mBAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,qBAAAA,MAAAA;;KACF;;AAGA,MAAaC,eAAsCC,OAAOC,OAAO;CAC/DhB,WAAWC;CACXD,WAAWE;CACXF,WAAWG;CACXH,WAAWI;CACXJ,WAAWK;CACXL,WAAWM;CACXN,WAAWO;CACXP,WAAWQ;CACXR,WAAWS;CACXT,WAAWU;CACXV,WAAWW;CACXX,WAAWY;CACXZ,WAAWa;CACZ,CAAC;;AAGF,MAAaI,gBAAgBC,UAC3B,OAAOA,UAAU,YAChBJ,aAAmCK,SAASD,MAAM"}
|
|
@@ -10,10 +10,22 @@ import { CatalogObject } from './legalChildren';
|
|
|
10
10
|
/** Compact, model-friendly outline of the working tree. */
|
|
11
11
|
export declare const describeTree: (tree: InquiryTree) => string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* model can repair from.
|
|
13
|
+
* How a model-supplied reference resolved: the one match, or how many items
|
|
14
|
+
* tied (`exact` when they tied on the whole label) — 0 when nothing matched.
|
|
16
15
|
*/
|
|
16
|
+
export interface RefResolution<T> {
|
|
17
|
+
match?: T;
|
|
18
|
+
matches: number;
|
|
19
|
+
exact?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* THE copilot reference grammar: an exact key (id, record key…) first, then
|
|
23
|
+
* the exact case-insensitive label, then a unique label substring. Ambiguity
|
|
24
|
+
* is reported, never guessed, so the model can repair from it. Items with no
|
|
25
|
+
* label take part by key only.
|
|
26
|
+
*/
|
|
27
|
+
export declare const resolveRef: <T>(items: T[], ref: string, keysOf: (item: T) => string[], labelOf: (item: T) => string) => RefResolution<T>;
|
|
28
|
+
/** Resolve a model-supplied node reference (resolveRef over node id / name). */
|
|
17
29
|
export declare const resolveNodeRef: (tree: InquiryTree, ref: string) => {
|
|
18
30
|
node?: TreeNode;
|
|
19
31
|
error?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"describe.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/describe.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAgB,MAAM,SAAS,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAsB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"describe.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/describe.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAgB,MAAM,SAAS,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAsB,MAAM,iBAAiB,CAAC;AAmCpE,2DAA2D;AAC3D,eAAO,MAAM,YAAY,+BAUxB,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,2GAkB3B,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,cAAc;;;CAkB1B,CAAC;AAEF,2EAAyE;AACzE,eAAO,MAAM,qBAAqB,iFAmBjC,CAAC"}
|
|
@@ -24,8 +24,7 @@ const describeNode = (view, depth) => {
|
|
|
24
24
|
const p = node.properties;
|
|
25
25
|
const flags = [
|
|
26
26
|
p.isPrimarySearch ? 'primarySearch' : '',
|
|
27
|
-
|
|
28
|
-
// still authored on v1 trees, and still what v1 composes by
|
|
27
|
+
// children load on expand
|
|
29
28
|
p.lazyLoad ? 'lazyLoad' : '',
|
|
30
29
|
p.isDraggable ? 'draggable' : '',
|
|
31
30
|
p.isActive === false ? 'inactive' : '',
|
|
@@ -52,37 +51,42 @@ export const describeTree = (tree) => {
|
|
|
52
51
|
return lines.join('\n');
|
|
53
52
|
};
|
|
54
53
|
/**
|
|
55
|
-
*
|
|
56
|
-
* case-insensitive
|
|
57
|
-
* model can repair from.
|
|
54
|
+
* THE copilot reference grammar: an exact key (id, record key…) first, then
|
|
55
|
+
* the exact case-insensitive label, then a unique label substring. Ambiguity
|
|
56
|
+
* is reported, never guessed, so the model can repair from it. Items with no
|
|
57
|
+
* label take part by key only.
|
|
58
58
|
*/
|
|
59
|
-
export const
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
return { node: byId };
|
|
59
|
+
export const resolveRef = (items, ref, keysOf, labelOf) => {
|
|
60
|
+
const byKey = items.find((item) => keysOf(item).includes(ref));
|
|
61
|
+
if (byKey)
|
|
62
|
+
return { match: byKey, matches: 1 };
|
|
64
63
|
const lower = ref.toLowerCase();
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
64
|
+
const labelled = items.filter((item) => labelOf(item) !== undefined);
|
|
65
|
+
const lowered = (item) => labelOf(item).toLowerCase();
|
|
66
|
+
const exact = labelled.filter((item) => lowered(item) === lower);
|
|
67
|
+
if (exact.length > 1)
|
|
68
|
+
return { matches: exact.length, exact: true };
|
|
69
|
+
if (exact.length)
|
|
70
|
+
return { match: exact[0], matches: 1 };
|
|
71
|
+
const partial = labelled.filter((item) => lowered(item).includes(lower));
|
|
72
|
+
return partial.length === 1
|
|
73
|
+
? { match: partial[0], matches: 1 }
|
|
74
|
+
: { matches: partial.length };
|
|
75
|
+
};
|
|
76
|
+
/** Resolve a model-supplied node reference (resolveRef over node id / name). */
|
|
77
|
+
export const resolveNodeRef = (tree, ref) => {
|
|
78
|
+
const { match, matches, exact } = resolveRef(tree.nodes.filter((n) => !n.isDeleted), ref, (n) => [n.id], (n) => {
|
|
76
79
|
var _a;
|
|
77
|
-
return isEntityNode(n) &&
|
|
78
|
-
((_a = n.properties.name) !== null && _a !== void 0 ? _a : '').toLowerCase().includes(lower);
|
|
80
|
+
return (isEntityNode(n) ? ((_a = n.properties.name) !== null && _a !== void 0 ? _a : '') : undefined);
|
|
79
81
|
});
|
|
80
|
-
if (
|
|
81
|
-
return { node:
|
|
82
|
+
if (match)
|
|
83
|
+
return { node: match };
|
|
82
84
|
return {
|
|
83
|
-
error:
|
|
84
|
-
? `Node reference "${ref}"
|
|
85
|
-
:
|
|
85
|
+
error: exact
|
|
86
|
+
? `Node reference "${ref}" matches ${matches} nodes by name; use the node id.`
|
|
87
|
+
: matches
|
|
88
|
+
? `Node reference "${ref}" is ambiguous (${matches} matches); use the node id.`
|
|
89
|
+
: `No node matches "${ref}". Use describe_tree to list nodes.`
|
|
86
90
|
};
|
|
87
91
|
};
|
|
88
92
|
/** Legal child entities for a node — the catalog-reachability oracle. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"describe.js","sourceRoot":"","sources":["../../../src/domain/inquiryTree/describe.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAyB,YAAY,EAAE,MAAM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;QAClB,OAAO,kCAAkC,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC;IACpE,OAAO,CACL,+BAA+B,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI;QACvD,IAAI,IAAI,CAAC,UAAU,CAAC,mBAAmB,MAAM;QAC7C,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,iBAAiB,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAC3D,CAAC;AAAA,CACH,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { isEntityNode } from "./types.mjs";
|
|
2
1
|
import { buildTreeView } from "./view.mjs";
|
|
3
2
|
import { toWireString } from "./wireString.mjs";
|
|
4
3
|
import { legalChildEntities } from "./legalChildren.mjs";
|
|
4
|
+
import { isEntityNode } from "./types.mjs";
|
|
5
5
|
//#region src/domain/inquiryTree/describe.ts
|
|
6
6
|
/**
|
|
7
7
|
* Read-side selectors for AI copilots (tree-builder-v2.md §6: describe tree,
|
|
@@ -18,7 +18,6 @@ const describeNode = (view, depth) => {
|
|
|
18
18
|
const p = node.properties;
|
|
19
19
|
const flags = [
|
|
20
20
|
p.isPrimarySearch ? "primarySearch" : "",
|
|
21
|
-
p.eagerLoad ? "eagerLoad" : "",
|
|
22
21
|
p.lazyLoad ? "lazyLoad" : "",
|
|
23
22
|
p.isDraggable ? "draggable" : "",
|
|
24
23
|
p.isActive === false ? "inactive" : "",
|
|
@@ -37,21 +36,40 @@ const describeTree = (tree) => {
|
|
|
37
36
|
].join("\n");
|
|
38
37
|
};
|
|
39
38
|
/**
|
|
40
|
-
*
|
|
41
|
-
* case-insensitive
|
|
42
|
-
* model can repair from.
|
|
39
|
+
* THE copilot reference grammar: an exact key (id, record key…) first, then
|
|
40
|
+
* the exact case-insensitive label, then a unique label substring. Ambiguity
|
|
41
|
+
* is reported, never guessed, so the model can repair from it. Items with no
|
|
42
|
+
* label take part by key only.
|
|
43
43
|
*/
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
const resolveRef = (items, ref, keysOf, labelOf) => {
|
|
45
|
+
const byKey = items.find((item) => keysOf(item).includes(ref));
|
|
46
|
+
if (byKey) return {
|
|
47
|
+
match: byKey,
|
|
48
|
+
matches: 1
|
|
49
|
+
};
|
|
48
50
|
const lower = ref.toLowerCase();
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
const labelled = items.filter((item) => labelOf(item) !== void 0);
|
|
52
|
+
const lowered = (item) => labelOf(item).toLowerCase();
|
|
53
|
+
const exact = labelled.filter((item) => lowered(item) === lower);
|
|
54
|
+
if (exact.length > 1) return {
|
|
55
|
+
matches: exact.length,
|
|
56
|
+
exact: true
|
|
57
|
+
};
|
|
58
|
+
if (exact.length) return {
|
|
59
|
+
match: exact[0],
|
|
60
|
+
matches: 1
|
|
61
|
+
};
|
|
62
|
+
const partial = labelled.filter((item) => lowered(item).includes(lower));
|
|
63
|
+
return partial.length === 1 ? {
|
|
64
|
+
match: partial[0],
|
|
65
|
+
matches: 1
|
|
66
|
+
} : { matches: partial.length };
|
|
67
|
+
};
|
|
68
|
+
/** Resolve a model-supplied node reference (resolveRef over node id / name). */
|
|
69
|
+
const resolveNodeRef = (tree, ref) => {
|
|
70
|
+
const { match, matches, exact } = resolveRef(tree.nodes.filter((n) => !n.isDeleted), ref, (n) => [n.id], (n) => isEntityNode(n) ? n.properties.name ?? "" : void 0);
|
|
71
|
+
if (match) return { node: match };
|
|
72
|
+
return { error: exact ? `Node reference "${ref}" matches ${matches} nodes by name; use the node id.` : matches ? `Node reference "${ref}" is ambiguous (${matches} matches); use the node id.` : `No node matches "${ref}". Use describe_tree to list nodes.` };
|
|
55
73
|
};
|
|
56
74
|
/** Legal child entities for a node — the catalog-reachability oracle. */
|
|
57
75
|
const describeLegalChildren = (tree, nodeRef, catalogObjects) => {
|
|
@@ -63,6 +81,6 @@ const describeLegalChildren = (tree, nodeRef, catalogObjects) => {
|
|
|
63
81
|
return `Legal child entities under "${node.properties.name}" (${node.properties.catalogReturnObject}):\n` + entities.map((e) => `- ${e.catalogObjectName}`).join("\n");
|
|
64
82
|
};
|
|
65
83
|
//#endregion
|
|
66
|
-
export { describeLegalChildren, describeTree, resolveNodeRef };
|
|
84
|
+
export { describeLegalChildren, describeTree, resolveNodeRef, resolveRef };
|
|
67
85
|
|
|
68
86
|
//# sourceMappingURL=describe.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"describe.mjs","names":["InquiryTree","TreeNode","isEntityNode","TreeViewNode","buildTreeView","CatalogObject","legalChildEntities","toWireString","describeNode","view","depth","node","pad","repeat","id","properties","label","children","flatMap","child","p","flags","isPrimarySearch","
|
|
1
|
+
{"version":3,"file":"describe.mjs","names":["InquiryTree","TreeNode","isEntityNode","TreeViewNode","buildTreeView","CatalogObject","legalChildEntities","toWireString","describeNode","view","depth","node","pad","repeat","id","properties","label","children","flatMap","child","p","flags","isPrimarySearch","lazyLoad","isDraggable","isActive","groupConfiguration","enabled","tabs","length","filter","Boolean","join","name","catalogReturnObject","description","describeTree","tree","roots","lines","nodes","n","isDeleted","root","RefResolution","match","T","matches","exact","resolveRef","items","ref","keysOf","item","Array","labelOf","byKey","find","includes","lower","toLowerCase","labelled","undefined","lowered","partial","resolveNodeRef","error","describeLegalChildren","nodeRef","catalogObjects","entities","map","e","catalogObjectName"],"sources":["../../../src/domain/inquiryTree/describe.ts"],"sourcesContent":["/**\n * Read-side selectors for AI copilots (tree-builder-v2.md §6: describe tree,\n * find nodes, legal children). Pure functions over the domain model — no\n * registry/assistant types so the module stays platform-agnostic. Promoted from\n * Tree Builder v2 (src/v2/features/ai/describeTree.ts) so the Tree Builder and\n * Inquiry copilots share one implementation.\n */\nimport { InquiryTree, TreeNode, isEntityNode } from './types';\nimport { TreeViewNode, buildTreeView } from './view';\nimport { CatalogObject, legalChildEntities } from './legalChildren';\nimport { toWireString } from './wireString';\n\n/** One line per node: id, name, entity, key scalar flags. */\nconst describeNode = (view: TreeViewNode, depth: number): string[] => {\n const node = view.node;\n const pad = ' '.repeat(depth);\n if (!isEntityNode(node)) {\n return [\n `${pad}- [group ${node.id}] ${toWireString(node.properties.label)}`,\n ...view.children.flatMap((child) => describeNode(child, depth + 1))\n ];\n }\n const p = node.properties;\n const flags = [\n p.isPrimarySearch ? 'primarySearch' : '',\n // children load on expand\n p.lazyLoad ? 'lazyLoad' : '',\n p.isDraggable ? 'draggable' : '',\n p.isActive === false ? 'inactive' : '',\n p.groupConfiguration?.enabled ? 'grouped' : '',\n (p.tabs?.length ?? 0) > 0 ? `${p.tabs?.length} tabs` : ''\n ]\n .filter(Boolean)\n .join(', ');\n return [\n `${pad}- [${node.id}] \"${p.name ?? ''}\" entity=${\n p.catalogReturnObject ?? '?'\n }` +\n (p.description ? ` — ${p.description}` : '') +\n (flags ? ` (${flags})` : ''),\n ...view.children.flatMap((child) => describeNode(child, depth + 1))\n ];\n};\n\n/** Compact, model-friendly outline of the working tree. */\nexport const describeTree = (tree: InquiryTree): string => {\n const roots = buildTreeView(tree);\n const lines = [\n `Tree \"${tree.name}\" (${\n tree.nodes.filter((n) => !n.isDeleted).length\n } nodes).`,\n 'Nodes ([id] \"name\" entity=Entity — description (flags)):',\n ...roots.flatMap((root) => describeNode(root, 0))\n ];\n return lines.join('\\n');\n};\n\n/**\n * How a model-supplied reference resolved: the one match, or how many items\n * tied (`exact` when they tied on the whole label) — 0 when nothing matched.\n */\nexport interface RefResolution<T> {\n match?: T;\n matches: number;\n exact?: boolean;\n}\n\n/**\n * THE copilot reference grammar: an exact key (id, record key…) first, then\n * the exact case-insensitive label, then a unique label substring. Ambiguity\n * is reported, never guessed, so the model can repair from it. Items with no\n * label take part by key only.\n */\nexport const resolveRef = <T>(\n items: T[],\n ref: string,\n keysOf: (item: T) => Array<string | null | undefined>,\n labelOf: (item: T) => string | undefined\n): RefResolution<T> => {\n const byKey = items.find((item) => keysOf(item).includes(ref));\n if (byKey) return { match: byKey, matches: 1 };\n const lower = ref.toLowerCase();\n const labelled = items.filter((item) => labelOf(item) !== undefined);\n const lowered = (item: T) => (labelOf(item) as string).toLowerCase();\n const exact = labelled.filter((item) => lowered(item) === lower);\n if (exact.length > 1) return { matches: exact.length, exact: true };\n if (exact.length) return { match: exact[0], matches: 1 };\n const partial = labelled.filter((item) => lowered(item).includes(lower));\n return partial.length === 1\n ? { match: partial[0], matches: 1 }\n : { matches: partial.length };\n};\n\n/** Resolve a model-supplied node reference (resolveRef over node id / name). */\nexport const resolveNodeRef = (\n tree: InquiryTree,\n ref: string\n): { node?: TreeNode; error?: string } => {\n const { match, matches, exact } = resolveRef(\n tree.nodes.filter((n) => !n.isDeleted),\n ref,\n (n) => [n.id],\n (n) => (isEntityNode(n) ? (n.properties.name ?? '') : undefined)\n );\n if (match) return { node: match };\n return {\n error: exact\n ? `Node reference \"${ref}\" matches ${matches} nodes by name; use the node id.`\n : matches\n ? `Node reference \"${ref}\" is ambiguous (${matches} matches); use the node id.`\n : `No node matches \"${ref}\". Use describe_tree to list nodes.`\n };\n};\n\n/** Legal child entities for a node — the catalog-reachability oracle. */\nexport const describeLegalChildren = (\n tree: InquiryTree,\n nodeRef: string,\n catalogObjects: CatalogObject[]\n): string => {\n const { node, error } = resolveNodeRef(tree, nodeRef);\n if (error || !node) return error ?? 'Node not found.';\n if (!isEntityNode(node)) return 'Group nodes cannot have entity children.';\n const entities = legalChildEntities(\n catalogObjects,\n node.properties.catalogReturnObject ?? ''\n );\n if (!entities.length)\n return `No legal child entities under \"${node.properties.name}\".`;\n return (\n `Legal child entities under \"${node.properties.name}\" ` +\n `(${node.properties.catalogReturnObject}):\\n` +\n entities.map((e) => `- ${e.catalogObjectName}`).join('\\n')\n );\n};\n"],"mappings":";;;;;;;;;;;;;AAaA,MAAMQ,gBAAgBC,MAAoBC,UAA4B;CACpE,MAAMC,OAAOF,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QAAOuD,SAAS;AACpC,KAAI,CAAChE,aAAaS,KAAK,CAAE,QAAO;CAChC,MAAM2D,WAAWhE,mBACf+D,gBACA1D,KAAKI,WAAWmB,uBAAuB,GACxC;AACD,KAAI,CAACoC,SAASzC,OACZ,QAAO,kCAAkClB,KAAKI,WAAWkB,KAAI;AAC/D,QACE,+BAA+BtB,KAAKI,WAAWkB,KAAI,KAC/CtB,KAAKI,WAAWmB,oBAAmB,QACvCoC,SAASC,KAAKC,MAAM,KAAKA,EAAEC,oBAAoB,CAACzC,KAAK,KAAK"}
|
|
@@ -3,9 +3,15 @@ import { CatalogObject } from './legalChildren';
|
|
|
3
3
|
import { TreeNode } from './types';
|
|
4
4
|
/* ------------------------------------------------------------------- types */
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Where a row's child levels stand: 'none' — nothing to fetch (a leaf, or
|
|
7
|
+
* every child level eager); 'lazy' — fetched on expand; 'loaded'; 'error' — a
|
|
8
|
+
* lazy level failed and nothing loaded, so the next expand retries.
|
|
9
|
+
*/
|
|
10
|
+
export type ChildState = 'none' | 'lazy' | 'loaded' | 'error';
|
|
11
|
+
/**
|
|
12
|
+
* A display node — both the seed (wire treeStructure entry / nested config
|
|
13
|
+
* node) and the enriched output. `properties` is the level's config plus the
|
|
14
|
+
* resolved labels and icons; the row's own display state has typed fields.
|
|
9
15
|
*/
|
|
10
16
|
export interface DisplayNode {
|
|
11
17
|
[key: string]: unknown;
|
|
@@ -26,13 +32,32 @@ export interface DisplayNode {
|
|
|
26
32
|
nodeObj?: Record<string, unknown>;
|
|
27
33
|
lazyLoadChildrenArr?: LazyChildSearchDescriptor[];
|
|
28
34
|
errorRetrievingChildren?: string | null;
|
|
35
|
+
/** Read through rowChildState; absent = 'none'. */
|
|
36
|
+
childState?: ChildState;
|
|
37
|
+
/** Rows of this level can be picked up (isDraggableLevel). */
|
|
38
|
+
draggable?: boolean;
|
|
29
39
|
}
|
|
40
|
+
/** Where the row's child levels stand — THE chevron/fetch predicate. */
|
|
41
|
+
export declare const rowChildState: (node: {
|
|
42
|
+
childState?: ChildState;
|
|
43
|
+
}) => ChildState;
|
|
44
|
+
/** A lazy level the row has not loaded yet: what an expand fetches. */
|
|
45
|
+
export declare const hasUnloadedChildren: (node: {
|
|
46
|
+
childState?: ChildState;
|
|
47
|
+
}) => boolean;
|
|
30
48
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
|
|
49
|
+
* THE load rule, read off the parent: a level's child levels load lazily —
|
|
50
|
+
* collapsed, fetched on expand — when it sets `lazyLoad`, and eagerly
|
|
51
|
+
* otherwise. One setting on the parent, the one both builders store and v1
|
|
52
|
+
* reads.
|
|
53
|
+
*/
|
|
54
|
+
export declare const loadsChildrenLazily: (level: DisplayNode) => boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The row's DISPLAY label — the exact string the tree renders for a node: the
|
|
57
|
+
* entity row's resolved `nodeLabel` (stamped by processObjIndexInPlace from the
|
|
58
|
+
* `displayName` template), else the level's name as the Tree Builder shows it
|
|
59
|
+
* (levelName — a group's label). Never blank. One reader for the menu/filter
|
|
60
|
+
* and the record pane, so nothing derives it twice.
|
|
36
61
|
*/
|
|
37
62
|
export declare const resolveRowLabel: (node: {
|
|
38
63
|
isGroupNode?: boolean;
|
|
@@ -42,130 +67,83 @@ export declare const resolveRowLabel: (node: {
|
|
|
42
67
|
export declare const nodeEntityName: (node: {
|
|
43
68
|
properties?: Record<string, unknown>;
|
|
44
69
|
}) => string;
|
|
45
|
-
/**
|
|
46
|
-
export interface
|
|
70
|
+
/** What every composition step needs besides the row and its level. */
|
|
71
|
+
export interface DisplayBuildContext {
|
|
47
72
|
/** Id factory — legacy assigned uuid() per display row (decision 9). */
|
|
48
73
|
makeId: () => string;
|
|
49
|
-
/** Which eager/lazy rule composes the levels. Defaults to v1's (LoadMode). */
|
|
50
|
-
loadMode?: LoadMode;
|
|
51
74
|
catalogObjects?: CatalogObject[] | null;
|
|
75
|
+
/** Enables the lazy fallback's child descriptors (documented divergence on
|
|
76
|
+
* preloaded rows: legacy passed no entity metadata there). */
|
|
52
77
|
promotedEntities?: PromotedEntity[] | null;
|
|
53
|
-
/** Attached verbatim to the returned root (legacy :1121). */
|
|
54
|
-
associatedInquiryTree?: unknown;
|
|
55
|
-
/** Attached to the root and threaded through rule evaluation (legacy :1122). */
|
|
56
|
-
wasLazyLoaded?: boolean;
|
|
57
78
|
}
|
|
79
|
+
/** Options for buildDisplayTree (legacy formatTreeMenuItem's tail parameters). */
|
|
80
|
+
export type DisplayTreeOptions = DisplayBuildContext;
|
|
58
81
|
/** Options for buildPreloadedDisplayList (legacy constructPreloadedTree). */
|
|
59
|
-
export
|
|
60
|
-
makeId: () => string;
|
|
61
|
-
/** Which eager/lazy rule composes the levels. Defaults to v1's (LoadMode). */
|
|
62
|
-
loadMode?: LoadMode;
|
|
63
|
-
catalogObjects?: CatalogObject[] | null;
|
|
64
|
-
/** Enables the lazy fallback's child descriptors on preloaded rows
|
|
65
|
-
* (documented divergence: legacy passed no entity metadata here). */
|
|
66
|
-
promotedEntities?: PromotedEntity[] | null;
|
|
67
|
-
}
|
|
82
|
+
export type PreloadedDisplayOptions = DisplayBuildContext;
|
|
68
83
|
type QueryRow = Record<string, unknown>;
|
|
69
|
-
/**
|
|
84
|
+
/** Whether a drop action's `dragEntityName` names `entityName` — the gate's rule. */
|
|
85
|
+
export declare const isDragEntity: (dragEntityName: unknown, entityName: unknown) => boolean;
|
|
86
|
+
/** The drag tags some level's On_Node_Drop actions accept. */
|
|
70
87
|
export declare const collectDropSourceEntities: (levels: DisplayNode[]) => Set<string>;
|
|
71
88
|
/** Whether this level's rows are draggable, given the tree's accepted entities. */
|
|
72
89
|
export declare const isDraggableLevel: (node: DisplayNode, acceptedEntities: Set<string>) => boolean;
|
|
73
90
|
/**
|
|
74
|
-
*
|
|
91
|
+
* A hideEmptyGroups heading with no record anywhere under it. Lazily fetched
|
|
92
|
+
* levels keep every heading (so a Show More page merges into them in config
|
|
93
|
+
* order); the menu hides these when it draws the tree.
|
|
94
|
+
*/
|
|
95
|
+
export declare const isEmptyHiddenHeading: (node: DisplayNode) => boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Pure port of makeTreeStructure (TreeUtilities.js:17-93) — the tree's flat
|
|
75
98
|
* nodes → nested display seed. Legacy mutated the caller's treeStructure
|
|
76
99
|
* (poisoning shared caches); this deep-clones the input first, so the caller's
|
|
77
100
|
* array is never touched. Defaults match every legacy call site
|
|
78
101
|
* (`makeTreeStructure(ts, 'id', 'parentId')` — InquiryContainer.jsx:569,:731,
|
|
79
102
|
* :1140,:1293,:1811,:2143,:2558).
|
|
80
103
|
*/
|
|
81
|
-
export declare const makeDisplayTreeStructure: (treeData:
|
|
82
|
-
/* ------------------------------------------------------
|
|
83
|
-
/**
|
|
84
|
-
* WHICH RULE DECIDES EAGER vs LAZY. There are two, and every composition entry
|
|
85
|
-
* point takes the one its caller wants — the decision is an explicit argument,
|
|
86
|
-
* never a hidden global, because both viewers run in the same bundle:
|
|
87
|
-
*
|
|
88
|
-
* - `'legacy-data'` — v1's rule. THE DATA DECIDES: a child level renders from
|
|
89
|
-
* the nested rows the response carried, and loads lazily when it carried
|
|
90
|
-
* none; `properties.lazyLoad` is a forced-lazy override. This is the DEFAULT
|
|
91
|
-
* so that any caller which has not opted in — including consumers outside
|
|
92
|
-
* this repo — keeps the behavior it has always had.
|
|
93
|
-
* - `'config'` — v2's rule. THE CONFIG DECIDES: a child level is eager only
|
|
94
|
-
* when `properties.eagerLoad === true`, and its rows are fetched by the wave
|
|
95
|
-
* loader rather than nested by the server.
|
|
96
|
-
*/
|
|
97
|
-
export type LoadMode = 'config' | 'legacy-data';
|
|
98
|
-
/** The safe default: unopted callers keep v1 semantics. */
|
|
99
|
-
export declare const DEFAULT_LOAD_MODE: LoadMode;
|
|
104
|
+
export declare const makeDisplayTreeStructure: (treeData: readonly TreeNode[], key?: string, parentKey?: string, parentGroupKey?: string) => DisplayNode[] | DisplayNode;
|
|
105
|
+
/* ------------------------------------------------------ eager/lazy split */
|
|
100
106
|
/** A level's child levels, split into the ones this row renders and the rest. */
|
|
101
107
|
export interface ChildLevelSplit {
|
|
102
108
|
/** catalogObjectKeys of the child levels the walker descends into. */
|
|
103
109
|
eagerChildKeys: Set<string>;
|
|
104
110
|
/** The deferred child config nodes — descriptor inputs for the chevron. */
|
|
105
111
|
lazyChildNodes: DisplayNode[];
|
|
106
|
-
/**
|
|
107
|
-
* legacy-data only: the authored `lazyLoad` flag forced EVERY child level
|
|
108
|
-
* lazy, so descriptors are built for all of them (keyless ones included).
|
|
109
|
-
*/
|
|
110
|
-
forcedLazy: boolean;
|
|
111
112
|
}
|
|
112
113
|
/**
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* it; otherwise it loads lazily. `properties.lazyLoad` is a FORCED-LAZY
|
|
118
|
-
* OVERRIDE — a level marked lazy ignores whatever eager data the row happens
|
|
119
|
-
* to carry.
|
|
120
|
-
*
|
|
121
|
-
* - the row carries the child's catalogObjectKey (any value, `[]` included)
|
|
122
|
-
* → eager: the level renders from that data, no descriptors, groups apply;
|
|
123
|
-
* - the row carries null/undefined/no key at all
|
|
124
|
-
* → lazy: search descriptors are built so the menu shows a chevron and
|
|
125
|
-
* pages the level in on expand;
|
|
126
|
-
* - a child level with no catalogObjectKey binds to no data and takes no
|
|
127
|
-
* part in the decision.
|
|
128
|
-
*
|
|
129
|
-
* @deprecated Dies with v1 (`src/inquiry/InquiryContainer.jsx`). New code
|
|
130
|
-
* passes `loadMode: 'config'`; nothing else may call this.
|
|
114
|
+
* THE EAGER/LAZY SPLIT for one level: config decides (loadsChildrenLazily). An
|
|
115
|
+
* eager level whose rows the wave loader could not fetch renders EMPTY — it
|
|
116
|
+
* never silently becomes lazy — and a lazy level ignores anything that happens
|
|
117
|
+
* to ride the row. Nothing downstream re-decides it.
|
|
131
118
|
*/
|
|
132
|
-
export declare const
|
|
119
|
+
export declare const splitChildLevels: (node: DisplayNode) => ChildLevelSplit;
|
|
120
|
+
/* ------------------------------------------------------------ blank groups */
|
|
133
121
|
/**
|
|
134
|
-
*
|
|
135
|
-
*
|
|
122
|
+
* The heading a group-by-field level gives records with NO value for the field.
|
|
123
|
+
* Deliberate divergence from legacy, which left those records loose beside the
|
|
124
|
+
* headings (v1 :2092-2093, v2 :2697-2735): a field's values are the groups, and
|
|
125
|
+
* no value is one of them — the grouped-list convention (a "(Blank)" group,
|
|
126
|
+
* listed last). The heading carries `properties.blank`, so a renderer can
|
|
127
|
+
* translate the label.
|
|
136
128
|
*/
|
|
137
|
-
export declare const
|
|
129
|
+
export declare const BLANK_GROUP_LABEL = "(Blank)";
|
|
138
130
|
/* -------------------------------------------------------------- entry: row */
|
|
139
131
|
/**
|
|
140
132
|
* Pure port of formatTreeMenuItem (TreeUtilities.js:1095-1124): one query row +
|
|
141
133
|
* the NESTED display seed (makeDisplayTreeStructure output) → the enriched
|
|
142
134
|
* display tree. Returns null when the row is falsy; a single root is returned
|
|
143
|
-
* bare, several as an array
|
|
144
|
-
*
|
|
145
|
-
* nor the row is mutated or aliased (both are deep-cloned up
|
|
146
|
-
* references the private row clone).
|
|
135
|
+
* bare, several as an array. (Legacy also attached its associatedInquiryTree
|
|
136
|
+
* argument to the result (:1121); v2 reads linked trees from their own query.)
|
|
137
|
+
* Neither the seed nor the row is mutated or aliased (both are deep-cloned up
|
|
138
|
+
* front; nodeObj references the private row clone).
|
|
147
139
|
*/
|
|
148
|
-
export declare const buildDisplayTree: (row: QueryRow, nestedTreeStructure: DisplayNode, options:
|
|
149
|
-
|
|
150
|
-
export interface DisplayNodeForRecordOptions {
|
|
151
|
-
/** Id factory — same contract as DisplayTreeOptions (decision 9). */
|
|
152
|
-
makeId: () => string;
|
|
153
|
-
/** Which eager/lazy rule composes the levels. Defaults to v1's (LoadMode). */
|
|
154
|
-
loadMode?: LoadMode;
|
|
155
|
-
catalogObjects?: CatalogObject[] | null;
|
|
156
|
-
promotedEntities?: PromotedEntity[] | null;
|
|
157
|
-
wasLazyLoaded?: boolean;
|
|
158
|
-
}
|
|
140
|
+
export declare const buildDisplayTree: (row: QueryRow, nestedTreeStructure: DisplayNode, options: DisplayBuildContext) => DisplayNode[] | DisplayNode;
|
|
141
|
+
/* --------------------------------------------------- entry: preloaded trees */
|
|
159
142
|
/**
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
* nodeSubLabel/headerTitle resolved, conditional icon/adornment stamped,
|
|
163
|
-
* search state attached, nodeObj set. Same enrichment code path as
|
|
164
|
-
* buildDisplayTree (processObjIndexInPlace), so a Tree Builder preview node
|
|
165
|
-
* is byte-shaped like a live Inquiry node. Neither input is mutated.
|
|
143
|
+
* Whether a level's records are sorted into configured groups — the condition
|
|
144
|
+
* buildPreloadedDisplayList groups a root page under.
|
|
166
145
|
*/
|
|
167
|
-
export declare const
|
|
168
|
-
/* --------------------------------------------------- entry: preloaded trees */
|
|
146
|
+
export declare const groupsLevelRecords: (level: DisplayNode) => boolean;
|
|
169
147
|
/**
|
|
170
148
|
* Pure port of constructPreloadedTree (TreeUtilities.js:2231-2351): seed the
|
|
171
149
|
* menu from a preloaded page of rows against the NESTED display seed
|
|
@@ -181,7 +159,7 @@ export declare const buildDisplayNodeForRecord: (node: TreeNode, row: QueryRow,
|
|
|
181
159
|
* the lazy fallback can build child descriptors for them.
|
|
182
160
|
* Inputs (tree seed + rows) are deep-cloned — never mutated or aliased.
|
|
183
161
|
*/
|
|
184
|
-
export declare const buildPreloadedDisplayList: (nestedTreeStructure: DisplayNode, rows: QueryRow[], options:
|
|
162
|
+
export declare const buildPreloadedDisplayList: (nestedTreeStructure: DisplayNode, rows: QueryRow[], options: DisplayBuildContext) => DisplayNode[];
|
|
185
163
|
/* ---------------------------------------------------------------- search */
|
|
186
164
|
/**
|
|
187
165
|
* Exact port of getSearchValueString (TreeUtilities.js:2808-2815): comma-join
|