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
|
@@ -11,7 +11,10 @@ import { FormChangeEvent } from './utils/formEvents';
|
|
|
11
11
|
export interface UdpIconPickerProps extends Partial<Omit<JSX.UdpFluentIconPicker, 'onValueChanged' | 'error'>> {
|
|
12
12
|
/** Called when the selection changes - compatible with form libraries (event.target.value) */
|
|
13
13
|
onChange?: (event: FormChangeEvent<string>) => void;
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* `presentation="popover"` only: an element with `slot="trigger"` replaces
|
|
16
|
+
* the built-in icon tile as what opens the popover.
|
|
17
|
+
*/
|
|
15
18
|
children?: React.ReactNode;
|
|
16
19
|
/**
|
|
17
20
|
* Error state - supports both MUI and Fluent patterns:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UdpIconPicker.d.ts","sourceRoot":"","sources":["../../../src/UI/fluent-web-components/UdpIconPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,+CAA+C,CAAC;AACzE,OAAO,EAAqB,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAExE;;;;;;GAMG;AACH,MAAM,WAAW,kBACf,SAAQ,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,OAAO,CAAC,CAAC;IAC1E,8FAA8F;IAC9F,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACpD
|
|
1
|
+
{"version":3,"file":"UdpIconPicker.d.ts","sourceRoot":"","sources":["../../../src/UI/fluent-web-components/UdpIconPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,+CAA+C,CAAC;AACzE,OAAO,EAAqB,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAExE;;;;;;GAMG;AACH,MAAM,WAAW,kBACf,SAAQ,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,OAAO,CAAC,CAAC;IAC1E,8FAA8F;IAC9F,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACpD;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwCtD,CAAC"}
|
|
@@ -13,7 +13,7 @@ import React from 'react';
|
|
|
13
13
|
import { UdpFluentIconPicker as UdpFluentIconPickerWebComponent } from 'udp-react-stencil-component-library';
|
|
14
14
|
import { createChangeEvent } from './utils/formEvents';
|
|
15
15
|
export const UdpIconPicker = (_a) => {
|
|
16
|
-
var { onChange, name, error, helperText, hint } = _a, props = __rest(_a, ["onChange", "name", "error", "helperText", "hint"]);
|
|
16
|
+
var { onChange, name, error, helperText, hint, children } = _a, props = __rest(_a, ["onChange", "name", "error", "helperText", "hint", "children"]);
|
|
17
17
|
const handleValueChanged = (e) => {
|
|
18
18
|
onChange === null || onChange === void 0 ? void 0 : onChange(createChangeEvent(e.detail, name, 'select'));
|
|
19
19
|
};
|
|
@@ -32,6 +32,6 @@ export const UdpIconPicker = (_a) => {
|
|
|
32
32
|
else {
|
|
33
33
|
normalizedHint = hintStr !== null && hintStr !== void 0 ? hintStr : helperText;
|
|
34
34
|
}
|
|
35
|
-
return (React.createElement(UdpFluentIconPickerWebComponent, Object.assign({}, props, { name: name, error: normalizedError, hint: normalizedHint, onValueChanged: handleValueChanged })));
|
|
35
|
+
return (React.createElement(UdpFluentIconPickerWebComponent, Object.assign({}, props, { name: name, error: normalizedError, hint: normalizedHint, onValueChanged: handleValueChanged }), children));
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=UdpIconPicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UdpIconPicker.js","sourceRoot":"","sources":["../../../src/UI/fluent-web-components/UdpIconPicker.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,IAAI,+BAA+B,EAAE,MAAM,+CAA+C,CAAC;AAEvH,OAAO,EAAE,iBAAiB,EAAmB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"UdpIconPicker.js","sourceRoot":"","sources":["../../../src/UI/fluent-web-components/UdpIconPicker.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,IAAI,+BAA+B,EAAE,MAAM,+CAA+C,CAAC;AAEvH,OAAO,EAAE,iBAAiB,EAAmB,MAAM,oBAAoB,CAAC;AAgCxE,MAAM,CAAC,MAAM,aAAa,GAAiC,CAAC,EAQ3D,EAAE,EAAE,CAAC;QARsD,EAC1D,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,UAAU,EACV,IAAI,EACJ,QAAQ,OAET,EADI,KAAK,cAPkD,+DAQ3D,CADS;IAER,MAAM,kBAAkB,GAAG,CAAC,CAAsB,EAAE,EAAE,CAAC;QACrD,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,iBAAiB,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;IAAA,CACzD,CAAC;IAEF,qEAAqE;IACrE,MAAM,OAAO,GAAG,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IAE5D,IAAI,eAAmC,CAAC;IACxC,IAAI,cAAkC,CAAC;IAEvC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,eAAe,GAAG,KAAK,CAAC;QACxB,cAAc,GAAG,OAAO,CAAC;IAC3B,CAAC;SAAM,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE,CAAC;QACtC,eAAe,GAAG,KAAK,CAAC,CAAC,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;QACvD,cAAc,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC5D,CAAC;SAAM,CAAC;QACN,cAAc,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,UAAU,CAAC;IACzC,CAAC;IAED,OAAO,CACL,oBAAC,+BAA+B,oBAC1B,KAAK,IACT,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,eAAe,EACtB,IAAI,EAAE,cAAc,EACpB,cAAc,EAAE,kBAAkB,KAEjC,QAAQ,CACuB,CACnC,CAAC;AAAA,CACH,CAAC"}
|
|
@@ -4,7 +4,8 @@ import React from "react";
|
|
|
4
4
|
import { UdpFluentIconPicker } from "udp-react-stencil-component-library";
|
|
5
5
|
//#region src/UI/fluent-web-components/UdpIconPicker.tsx
|
|
6
6
|
const UdpIconPicker = (t0) => {
|
|
7
|
-
const $ = c(
|
|
7
|
+
const $ = c(18);
|
|
8
|
+
let children;
|
|
8
9
|
let error;
|
|
9
10
|
let helperText;
|
|
10
11
|
let hint;
|
|
@@ -12,31 +13,33 @@ const UdpIconPicker = (t0) => {
|
|
|
12
13
|
let onChange;
|
|
13
14
|
let props;
|
|
14
15
|
if ($[0] !== t0) {
|
|
15
|
-
({onChange, name, error, helperText, hint, ...props} = t0);
|
|
16
|
+
({onChange, name, error, helperText, hint, children, ...props} = t0);
|
|
16
17
|
$[0] = t0;
|
|
17
|
-
$[1] =
|
|
18
|
-
$[2] =
|
|
19
|
-
$[3] =
|
|
20
|
-
$[4] =
|
|
21
|
-
$[5] =
|
|
22
|
-
$[6] =
|
|
18
|
+
$[1] = children;
|
|
19
|
+
$[2] = error;
|
|
20
|
+
$[3] = helperText;
|
|
21
|
+
$[4] = hint;
|
|
22
|
+
$[5] = name;
|
|
23
|
+
$[6] = onChange;
|
|
24
|
+
$[7] = props;
|
|
23
25
|
} else {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
children = $[1];
|
|
27
|
+
error = $[2];
|
|
28
|
+
helperText = $[3];
|
|
29
|
+
hint = $[4];
|
|
30
|
+
name = $[5];
|
|
31
|
+
onChange = $[6];
|
|
32
|
+
props = $[7];
|
|
30
33
|
}
|
|
31
34
|
let t1;
|
|
32
|
-
if ($[
|
|
35
|
+
if ($[8] !== name || $[9] !== onChange) {
|
|
33
36
|
t1 = (e) => {
|
|
34
37
|
onChange?.(createChangeEvent(e.detail, name, "select"));
|
|
35
38
|
};
|
|
36
|
-
$[
|
|
37
|
-
$[
|
|
38
|
-
$[
|
|
39
|
-
} else t1 = $[
|
|
39
|
+
$[8] = name;
|
|
40
|
+
$[9] = onChange;
|
|
41
|
+
$[10] = t1;
|
|
42
|
+
} else t1 = $[10];
|
|
40
43
|
const handleValueChanged = t1;
|
|
41
44
|
const hintStr = typeof hint === "string" ? hint : void 0;
|
|
42
45
|
let normalizedError;
|
|
@@ -49,21 +52,22 @@ const UdpIconPicker = (t0) => {
|
|
|
49
52
|
normalizedHint = !error ? helperText || hintStr : hintStr;
|
|
50
53
|
} else normalizedHint = hintStr ?? helperText;
|
|
51
54
|
let t2;
|
|
52
|
-
if ($[
|
|
55
|
+
if ($[11] !== children || $[12] !== handleValueChanged || $[13] !== name || $[14] !== normalizedError || $[15] !== normalizedHint || $[16] !== props) {
|
|
53
56
|
t2 = /* @__PURE__ */ React.createElement(UdpFluentIconPicker, {
|
|
54
57
|
...props,
|
|
55
58
|
name,
|
|
56
59
|
error: normalizedError,
|
|
57
60
|
hint: normalizedHint,
|
|
58
61
|
onValueChanged: handleValueChanged
|
|
59
|
-
});
|
|
60
|
-
$[
|
|
61
|
-
$[
|
|
62
|
-
$[
|
|
63
|
-
$[
|
|
64
|
-
$[
|
|
65
|
-
$[
|
|
66
|
-
|
|
62
|
+
}, children);
|
|
63
|
+
$[11] = children;
|
|
64
|
+
$[12] = handleValueChanged;
|
|
65
|
+
$[13] = name;
|
|
66
|
+
$[14] = normalizedError;
|
|
67
|
+
$[15] = normalizedHint;
|
|
68
|
+
$[16] = props;
|
|
69
|
+
$[17] = t2;
|
|
70
|
+
} else t2 = $[17];
|
|
67
71
|
return t2;
|
|
68
72
|
};
|
|
69
73
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UdpIconPicker.mjs","names":["React","UdpFluentIconPicker","UdpFluentIconPickerWebComponent","JSX","createChangeEvent","FormChangeEvent","UdpIconPickerProps","Partial","Omit","onChange","event","children","ReactNode","error","helperText","UdpIconPicker","FC","t0","$","_c","hint","name","props","t1","e","detail","handleValueChanged","hintStr","undefined","normalizedError","normalizedHint","t2"],"sources":["../../../src/UI/fluent-web-components/UdpIconPicker.tsx"],"sourcesContent":["import React from 'react';\nimport { UdpFluentIconPicker as UdpFluentIconPickerWebComponent } from '@univerus/udp-react-stencil-component-library';\nimport { type JSX } from '@univerus/udp-react-stencil-component-library';\nimport { createChangeEvent, FormChangeEvent } from './utils/formEvents';\n\n/**\n * Props for the UdpIconPicker component.\n *\n * Supports both MUI-style and Fluent-style error handling:\n * - MUI style: error={boolean} + helperText={string}\n * - Fluent style: error={string} + hint={string}\n */\nexport interface UdpIconPickerProps\n extends Partial<Omit<JSX.UdpFluentIconPicker, 'onValueChanged' | 'error'>> {\n /** Called when the selection changes - compatible with form libraries (event.target.value) */\n onChange?: (event: FormChangeEvent<string>) => void;\n
|
|
1
|
+
{"version":3,"file":"UdpIconPicker.mjs","names":["React","UdpFluentIconPicker","UdpFluentIconPickerWebComponent","JSX","createChangeEvent","FormChangeEvent","UdpIconPickerProps","Partial","Omit","onChange","event","children","ReactNode","error","helperText","UdpIconPicker","FC","t0","$","_c","hint","name","props","t1","e","detail","handleValueChanged","hintStr","undefined","normalizedError","normalizedHint","t2"],"sources":["../../../src/UI/fluent-web-components/UdpIconPicker.tsx"],"sourcesContent":["import React from 'react';\nimport { UdpFluentIconPicker as UdpFluentIconPickerWebComponent } from '@univerus/udp-react-stencil-component-library';\nimport { type JSX } from '@univerus/udp-react-stencil-component-library';\nimport { createChangeEvent, FormChangeEvent } from './utils/formEvents';\n\n/**\n * Props for the UdpIconPicker component.\n *\n * Supports both MUI-style and Fluent-style error handling:\n * - MUI style: error={boolean} + helperText={string}\n * - Fluent style: error={string} + hint={string}\n */\nexport interface UdpIconPickerProps\n extends Partial<Omit<JSX.UdpFluentIconPicker, 'onValueChanged' | 'error'>> {\n /** Called when the selection changes - compatible with form libraries (event.target.value) */\n onChange?: (event: FormChangeEvent<string>) => void;\n /**\n * `presentation=\"popover\"` only: an element with `slot=\"trigger\"` replaces\n * the built-in icon tile as what opens the popover.\n */\n children?: React.ReactNode;\n /**\n * Error state - supports both MUI and Fluent patterns:\n * - string: Fluent style - the error message to display\n * - boolean: MUI style - when true, displays helperText as error\n */\n error?: string | boolean;\n /**\n * MUI compatibility: Helper/error text shown below the input.\n * When error={true}, this is displayed as the error message.\n * When error={false}, this is displayed as hint text.\n */\n helperText?: string;\n}\n\nexport const UdpIconPicker: React.FC<UdpIconPickerProps> = ({\n onChange,\n name,\n error,\n helperText,\n hint,\n children,\n ...props\n}) => {\n const handleValueChanged = (e: CustomEvent<string>) => {\n onChange?.(createChangeEvent(e.detail, name, 'select'));\n };\n\n // Normalize error/hint props to support both MUI and Fluent patterns\n const hintStr = typeof hint === 'string' ? hint : undefined;\n\n let normalizedError: string | undefined;\n let normalizedHint: string | undefined;\n\n if (typeof error === 'string') {\n normalizedError = error;\n normalizedHint = hintStr;\n } else if (typeof error === 'boolean') {\n normalizedError = error ? helperText || '' : undefined;\n normalizedHint = !error ? helperText || hintStr : hintStr;\n } else {\n normalizedHint = hintStr ?? helperText;\n }\n\n return (\n <UdpFluentIconPickerWebComponent\n {...props}\n name={name}\n error={normalizedError}\n hint={normalizedHint}\n onValueChanged={handleValueChanged}\n >\n {children}\n </UdpFluentIconPickerWebComponent>\n );\n};\n"],"mappings":";;;;;AAmCA,MAAae,iBAA8CE,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAA,IAAAR;CAAA,IAAAE;CAAA,IAAAC;CAAA,IAAAM;CAAA,IAAAC;CAAA,IAAAZ;CAAA,IAAAa;AAAA,KAAAJ,EAAA,OAAAD,IAAA;AAAC,GAAA,CAAAR,UAAAY,MAAAR,OAAAC,YAAAM,MAAAT,aAAAW,SAAAL;AAQ3DC,IAAA,KAAAD;AAAAC,IAAA,KAAAP;AAAAO,IAAA,KAAAL;AAAAK,IAAA,KAAAJ;AAAAI,IAAA,KAAAE;AAAAF,IAAA,KAAAG;AAAAH,IAAA,KAAAT;AAAAS,IAAA,KAAAI;QAAA;AAAAX,aAAAO,EAAA;AAAAL,UAAAK,EAAA;AAAAJ,eAAAI,EAAA;AAAAE,SAAAF,EAAA;AAAAG,SAAAH,EAAA;AAAAT,aAAAS,EAAA;AAAAI,UAAAJ,EAAA;;CAAA,IAAAK;AAAA,KAAAL,EAAA,OAAAG,QAAAH,EAAA,OAAAT,UAAA;AAC4Bc,QAAAC,MAAA;AACzBf,cAAWL,kBAAkBoB,EAACC,QAASJ,MAAM,SAAS,CAAC;;AACxDH,IAAA,KAAAG;AAAAH,IAAA,KAAAT;AAAAS,IAAA,MAAAK;OAAAA,MAAAL,EAAA;CAFD,MAAAQ,qBAA2BH;CAK3B,MAAAI,UAAgB,OAAOP,SAAS,WAAhBA,OAAAQ,KAAAA;CAEZC,IAAAA;CACAC,IAAAA;AAEJ,KAAI,OAAOjB,UAAU,UAAQ;AAC3BgB,oBAAkBhB;AAClBiB,mBAAiBH;YACR,OAAOd,UAAU,WAAS;AACnCgB,oBAAkBhB,QAAQC,cAAA,KAARc,KAAAA;AAClBE,mBAAiBA,CAACjB,QAAQC,cAAAa,UAATA;OAEjBG,kBAAiBA,WAAAA;CAClB,IAAAC;AAAA,KAAAb,EAAA,QAAAP,YAAAO,EAAA,QAAAQ,sBAAAR,EAAA,QAAAG,QAAAH,EAAA,QAAAW,mBAAAX,EAAA,QAAAY,kBAAAZ,EAAA,QAAAI,OAAA;AAGCS,OAAA,sBAAA,cAAC,qBAAD;GAAgC,GAC1BT;GACED;GACCQ,OAAAA;GACDC,MAAAA;GACUJ,gBAAAA;GAGgB,EAD/Bf,SAC+B;AAAAO,IAAA,MAAAP;AAAAO,IAAA,MAAAQ;AAAAR,IAAA,MAAAG;AAAAH,IAAA,MAAAW;AAAAX,IAAA,MAAAY;AAAAZ,IAAA,MAAAI;AAAAJ,IAAA,MAAAa;OAAAA,MAAAb,EAAA;AAAA,QARlCa"}
|
|
@@ -3,6 +3,12 @@ import { type JSX } from 'udp-react-stencil-component-library';
|
|
|
3
3
|
import type { UdpWrapperBaseProps } from './types';
|
|
4
4
|
interface UdpLinkProps extends Partial<JSX.UdpFluentLink>, UdpWrapperBaseProps {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
|
+
/**
|
|
7
|
+
* Click handler. For in-app navigation keep the `href` too, so the link
|
|
8
|
+
* stays focusable and opens in a new tab, and route in here after
|
|
9
|
+
* `preventDefault()`.
|
|
10
|
+
*/
|
|
11
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
6
12
|
}
|
|
7
13
|
export declare const UdpLink: React.FC<UdpLinkProps>;
|
|
8
14
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UdpLink.d.ts","sourceRoot":"","sources":["../../../src/UI/fluent-web-components/UdpLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,+CAA+C,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,UAAU,YAAa,SAAQ,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,mBAAmB;IAC5E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"UdpLink.d.ts","sourceRoot":"","sources":["../../../src/UI/fluent-web-components/UdpLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,+CAA+C,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,UAAU,YAAa,SAAQ,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,mBAAmB;IAC5E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;CAChD;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAE1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UdpLink.js","sourceRoot":"","sources":["../../../src/UI/fluent-web-components/UdpLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,IAAI,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"UdpLink.js","sourceRoot":"","sources":["../../../src/UI/fluent-web-components/UdpLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,IAAI,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAc3G,MAAM,CAAC,MAAM,OAAO,GAA2B,CAAC,KAAK,EAAE,EAAE,CAAC;IACxD,OAAO,oBAAC,yBAAyB,oBAAK,KAAK,EAAI,CAAC;AAAA,CACjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UdpLink.mjs","names":["React","UdpFluentLink","UdpFluentLinkWebComponent","JSX","UdpWrapperBaseProps","UdpLinkProps","Partial","children","ReactNode","UdpLink","FC","props","$","_c","t0"],"sources":["../../../src/UI/fluent-web-components/UdpLink.tsx"],"sourcesContent":["import React from 'react';\nimport { UdpFluentLink as UdpFluentLinkWebComponent } from '@univerus/udp-react-stencil-component-library';\nimport { type JSX } from '@univerus/udp-react-stencil-component-library';\nimport type { UdpWrapperBaseProps } from './types';\n\ninterface UdpLinkProps extends Partial<JSX.UdpFluentLink>, UdpWrapperBaseProps {\n children?: React.ReactNode;\n}\n\nexport const UdpLink: React.FC<UdpLinkProps> = (props) => {\n return <UdpFluentLinkWebComponent {...props} />;\n};\n"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"UdpLink.mjs","names":["React","UdpFluentLink","UdpFluentLinkWebComponent","JSX","UdpWrapperBaseProps","UdpLinkProps","Partial","children","ReactNode","onClick","MouseEventHandler","HTMLElement","UdpLink","FC","props","$","_c","t0"],"sources":["../../../src/UI/fluent-web-components/UdpLink.tsx"],"sourcesContent":["import React from 'react';\nimport { UdpFluentLink as UdpFluentLinkWebComponent } from '@univerus/udp-react-stencil-component-library';\nimport { type JSX } from '@univerus/udp-react-stencil-component-library';\nimport type { UdpWrapperBaseProps } from './types';\n\ninterface UdpLinkProps extends Partial<JSX.UdpFluentLink>, UdpWrapperBaseProps {\n children?: React.ReactNode;\n /**\n * Click handler. For in-app navigation keep the `href` too, so the link\n * stays focusable and opens in a new tab, and route in here after\n * `preventDefault()`.\n */\n onClick?: React.MouseEventHandler<HTMLElement>;\n}\n\nexport const UdpLink: React.FC<UdpLinkProps> = (props) => {\n return <UdpFluentLinkWebComponent {...props} />;\n};\n"],"mappings":";;;;AAeA,MAAaY,WAAkCE,UAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAC;AAAA,KAAAF,EAAA,OAAAD,OAAA;AACtCG,OAAA,sBAAA,cAAC,eAA8BH,MAAS;AAAAC,IAAA,KAAAD;AAAAC,IAAA,KAAAE;OAAAA,MAAAF,EAAA;AAAA,QAAxCE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/UI/fluent-web-components/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;;;;;;;GAUG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6BAA6B;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iDAAiD;IACjD,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/UI/fluent-web-components/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;;;;;;;GAUG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6BAA6B;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iDAAiD;IACjD,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,0DAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
* field-picker tree.
|
|
12
12
|
*
|
|
13
13
|
* This file contributes the widget shell and the click-to-load wiring —
|
|
14
|
-
* nothing else.
|
|
14
|
+
* nothing else. The wiring is `FindRecords`, the finder with no card, which a
|
|
15
|
+
* code-composed page lays out directly; the widget is that inside a card.
|
|
16
|
+
* Two load contracts, in order of preference:
|
|
15
17
|
*
|
|
16
18
|
* 1. `onLoadRecord` / `onLoadRecords` — the finder's own `onChoose` /
|
|
17
19
|
* `onChooseMany`, handed straight through. The v2 host (`InquiryV2`) passes
|
|
@@ -44,7 +46,9 @@
|
|
|
44
46
|
* the MUI one. There is no double-card to guard against on either path.
|
|
45
47
|
*/
|
|
46
48
|
import React from 'react';
|
|
47
|
-
import { type
|
|
49
|
+
import { type RecordFinderProps } from '../../../../inquiry/v2/search/RecordFinder';
|
|
50
|
+
import { type SearchableEntity } from '../../../../inquiry/v2/search/searchModel';
|
|
51
|
+
import type { InquiryTreeWire } from '../../../../domain/inquiryTree/types';
|
|
48
52
|
import type { CatalogObject } from '../../../../domain/inquiryTree';
|
|
49
53
|
/** The node-to-load an inquiry host replays — v1's `getLoadedNodeObject` shape. */
|
|
50
54
|
interface NodeToLoad {
|
|
@@ -61,7 +65,8 @@ export interface FinderPick {
|
|
|
61
65
|
row: Record<string, unknown>;
|
|
62
66
|
}
|
|
63
67
|
export interface InquiryFindRecordsWidgetParams {
|
|
64
|
-
tree
|
|
68
|
+
/** The tree wire document, as an explore page's host hands it. */
|
|
69
|
+
tree?: InquiryTreeWire | null;
|
|
65
70
|
catalogObjects?: CatalogObject[] | null;
|
|
66
71
|
/** Contract 1: load one finder row (the finder's `onChoose`). */
|
|
67
72
|
onLoadRecord?: (entity: SearchableEntity, row: Record<string, unknown>) => void;
|
|
@@ -80,6 +85,14 @@ export interface InquiryFindRecordsWidgetProps {
|
|
|
80
85
|
style?: React.CSSProperties;
|
|
81
86
|
children?: React.ReactNode;
|
|
82
87
|
}
|
|
88
|
+
export interface FindRecordsProps {
|
|
89
|
+
params?: InquiryFindRecordsWidgetParams;
|
|
90
|
+
/** Passed straight to the finder — see `RecordFinderProps`. */
|
|
91
|
+
defaultListing?: RecordFinderProps['defaultListing'];
|
|
92
|
+
renderLayout?: RecordFinderProps['renderLayout'];
|
|
93
|
+
}
|
|
94
|
+
/** The finder wired to an inquiry host's params, with no card around it. */
|
|
95
|
+
export declare const FindRecords: ({ params, defaultListing, renderLayout }: FindRecordsProps) => string | number | boolean | React.JSX.Element | Iterable<React.ReactNode>;
|
|
83
96
|
export declare const InquiryFindRecordsWidget: (props: InquiryFindRecordsWidgetProps) => React.JSX.Element;
|
|
84
97
|
export default InquiryFindRecordsWidget;
|
|
85
98
|
//# sourceMappingURL=InquiryFindRecordsWidget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InquiryFindRecordsWidget.d.ts","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"InquiryFindRecordsWidget.d.ts","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,OAAO,KAA+B,MAAM,OAAO,CAAC;AAIpD,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,2CAA2C,CAAC;AAEnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAS5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,qFAAmF;AACnF,UAAU,UAAU;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QAAE,mBAAmB,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAChE,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,yEAAuE;AACvE,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,gBAAgB,CAAC;IACzB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,8BAA8B;IAC7C,kEAAkE;IAClE,IAAI,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAC9B,cAAc,CAAC,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;IACxC,iEAAiE;IACjE,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAChF,mFAAmF;IACnF,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IAC9C,oDAAoD;IACpD,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,6BAA6B;IAC5C,MAAM,CAAC,EAAE,8BAA8B,CAAC;IACxC,+EAA6E;IAC7E,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,8BAA8B,CAAC;IACxC,iEAA+D;IAC/D,cAAc,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IACrD,YAAY,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;CAClD;AAED,4EAA4E;AAC5E,eAAO,MAAM,WAAW,2IA+EvB,CAAC;AAEF,eAAO,MAAM,wBAAwB,6DA6BpC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
* field-picker tree.
|
|
12
12
|
*
|
|
13
13
|
* This file contributes the widget shell and the click-to-load wiring —
|
|
14
|
-
* nothing else.
|
|
14
|
+
* nothing else. The wiring is `FindRecords`, the finder with no card, which a
|
|
15
|
+
* code-composed page lays out directly; the widget is that inside a card.
|
|
16
|
+
* Two load contracts, in order of preference:
|
|
15
17
|
*
|
|
16
18
|
* 1. `onLoadRecord` / `onLoadRecords` — the finder's own `onChoose` /
|
|
17
19
|
* `onChooseMany`, handed straight through. The v2 host (`InquiryV2`) passes
|
|
@@ -49,23 +51,23 @@ import { UdpCard } from '../../../fluent-web-components/UdpCard';
|
|
|
49
51
|
import { UdpMessageBar } from '../../../fluent-web-components/UdpMessageBar';
|
|
50
52
|
import { RecordFinder } from '../../../../inquiry/v2/search/RecordFinder';
|
|
51
53
|
import { deriveSearchableEntities, resolveRowLabel } from '../../../../inquiry/v2/search/searchModel';
|
|
54
|
+
import { fromWire } from '../../../../domain/inquiryTree/serialize';
|
|
52
55
|
import { useInstanceParamValues } from '../../../../inquiry/v2/api/useInstanceParamValues';
|
|
56
|
+
import { useLinkedTrees } from '../../../../inquiry/v2/api/queries';
|
|
53
57
|
// The tree's own load-record recipe. Imported rather than re-derived so a row
|
|
54
58
|
// clicked here resolves to exactly the record a tree click or a `?node` deep
|
|
55
59
|
// link resolves to.
|
|
56
60
|
import { buildIdentifierFilterElements } from '../../../../inquiry/v2/tree/useInquiryMenu';
|
|
57
61
|
import { getSearchObject } from '../../../../utilities/search/SearchUtilities';
|
|
58
62
|
import { LogicalSearchOperatorEnums } from '../../../../enums/unitySystemEnums';
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
// bookkeeping the MUI card used to swallow; a web component would put every
|
|
63
|
-
// one of them on the DOM element as an unknown attribute.
|
|
64
|
-
const { children, params, className, style } = props;
|
|
65
|
-
const { tree, catalogObjects, onLoadRecord, onLoadRecords, onLoadedNodeClick, hideWidgetName } = params !== null && params !== void 0 ? params : {};
|
|
63
|
+
/** The finder wired to an inquiry host's params, with no card around it. */
|
|
64
|
+
export const FindRecords = ({ params, defaultListing, renderLayout }) => {
|
|
65
|
+
const { tree, catalogObjects, onLoadRecord, onLoadRecords, onLoadedNodeClick } = params !== null && params !== void 0 ? params : {};
|
|
66
66
|
const { t } = useTranslation();
|
|
67
67
|
const paramValues = useInstanceParamValues();
|
|
68
|
-
const
|
|
68
|
+
const typedTree = useMemo(() => (tree ? fromWire(tree) : null), [tree]);
|
|
69
|
+
const { trees: linkedTrees } = useLinkedTrees(typedTree);
|
|
70
|
+
const entities = useMemo(() => deriveSearchableEntities(typedTree, linkedTrees, paramValues), [typedTree, linkedTrees, paramValues]);
|
|
69
71
|
/**
|
|
70
72
|
* Load the chosen record: name it by its identifier values and hand the
|
|
71
73
|
* host the node-to-load it already knows how to replay.
|
|
@@ -85,17 +87,38 @@ export const InquiryFindRecordsWidget = (props) => {
|
|
|
85
87
|
queryPayload: getSearchObject(filterElements, 1, 1, true, LogicalSearchOperatorEnums.And)
|
|
86
88
|
});
|
|
87
89
|
}, [catalogObjects, onLoadedNodeClick]);
|
|
90
|
+
if (!entities.length) {
|
|
91
|
+
// Nothing to search: the warning stands where the search row would.
|
|
92
|
+
const warning = (React.createElement(UdpMessageBar, { intent: "warning", layout: "multiline" }, t('inquiry.widgets.findRecords.notSearchable', {
|
|
93
|
+
defaultValue: 'This page is not showing an inquiry tree that can be searched.'
|
|
94
|
+
})));
|
|
95
|
+
return renderLayout
|
|
96
|
+
? renderLayout({
|
|
97
|
+
search: warning,
|
|
98
|
+
results: null,
|
|
99
|
+
actions: null,
|
|
100
|
+
idle: true
|
|
101
|
+
})
|
|
102
|
+
: warning;
|
|
103
|
+
}
|
|
104
|
+
return (React.createElement(RecordFinder, { entities: entities, catalogObjects: catalogObjects, onChoose: onLoadRecord !== null && onLoadRecord !== void 0 ? onLoadRecord : handleChoose, onChooseMany: onLoadRecords, defaultListing: defaultListing, renderLayout: renderLayout }));
|
|
105
|
+
};
|
|
106
|
+
export const InquiryFindRecordsWidget = (props) => {
|
|
107
|
+
// Only `className` and `style` reach the card. The rest of the widget
|
|
108
|
+
// contract (`id`, `setParam`, `onDelete`, `widgetType`, `layout`, …) is host
|
|
109
|
+
// bookkeeping the MUI card used to swallow; a web component would put every
|
|
110
|
+
// one of them on the DOM element as an unknown attribute.
|
|
111
|
+
const { children, params, className, style } = props;
|
|
112
|
+
const { t } = useTranslation();
|
|
88
113
|
return (React.createElement(UdpCard, { className: className, style: style,
|
|
89
114
|
// Content-sized: a compact search band idle, the finder's own result
|
|
90
115
|
// area once a search runs. On a JSON page the renderer's cell may be
|
|
91
116
|
// taller; the card simply doesn't fill it.
|
|
92
|
-
label: hideWidgetName
|
|
117
|
+
label: (params === null || params === void 0 ? void 0 : params.hideWidgetName)
|
|
93
118
|
? undefined
|
|
94
119
|
: t('inquiry.widgets.findRecords.title', {
|
|
95
120
|
defaultValue: 'Find records'
|
|
96
|
-
}) },
|
|
97
|
-
defaultValue: 'This page is not showing an inquiry tree that can be searched.'
|
|
98
|
-
}))), children));
|
|
121
|
+
}) }, React.createElement(FindRecords, { params: params }), children));
|
|
99
122
|
};
|
|
100
123
|
export default InquiryFindRecordsWidget;
|
|
101
124
|
//# sourceMappingURL=InquiryFindRecordsWidget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InquiryFindRecordsWidget.js","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"InquiryFindRecordsWidget.js","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.tsx"],"names":[],"mappings":"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"}
|
|
@@ -3,7 +3,9 @@ import { LogicalSearchOperatorEnums } from "../../../../enums/unitySystemEnums.m
|
|
|
3
3
|
import { UdpCard } from "../../../fluent-web-components/UdpCard.mjs";
|
|
4
4
|
import { UdpMessageBar } from "../../../fluent-web-components/UdpMessageBar.mjs";
|
|
5
5
|
import { getSearchObject } from "../../../../utilities/search/SearchUtilities.mjs";
|
|
6
|
+
import { fromWire } from "../../../../domain/inquiryTree/serialize.mjs";
|
|
6
7
|
import { deriveSearchableEntities, resolveRowLabel } from "../../../../inquiry/v2/search/searchModel.mjs";
|
|
8
|
+
import { useLinkedTrees } from "../../../../inquiry/v2/api/queries.mjs";
|
|
7
9
|
import { useInstanceParamValues } from "../../../../inquiry/v2/api/useInstanceParamValues.mjs";
|
|
8
10
|
import { RecordFinder } from "../../../../inquiry/v2/search/RecordFinder.mjs";
|
|
9
11
|
import { buildIdentifierFilterElements } from "../../../../inquiry/v2/tree/useInquiryMenu.mjs";
|
|
@@ -23,7 +25,9 @@ import { useTranslation } from "react-i18next";
|
|
|
23
25
|
* field-picker tree.
|
|
24
26
|
*
|
|
25
27
|
* This file contributes the widget shell and the click-to-load wiring —
|
|
26
|
-
* nothing else.
|
|
28
|
+
* nothing else. The wiring is `FindRecords`, the finder with no card, which a
|
|
29
|
+
* code-composed page lays out directly; the widget is that inside a card.
|
|
30
|
+
* Two load contracts, in order of preference:
|
|
27
31
|
*
|
|
28
32
|
* 1. `onLoadRecord` / `onLoadRecords` — the finder's own `onChoose` /
|
|
29
33
|
* `onChooseMany`, handed straight through. The v2 host (`InquiryV2`) passes
|
|
@@ -55,29 +59,39 @@ import { useTranslation } from "react-i18next";
|
|
|
55
59
|
* own card, and this one does the same — with the fluent `UdpCard` instead of
|
|
56
60
|
* the MUI one. There is no double-card to guard against on either path.
|
|
57
61
|
*/
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
+
/** The finder wired to an inquiry host's params, with no card around it. */
|
|
63
|
+
const FindRecords = (t0) => {
|
|
64
|
+
const $ = c(25);
|
|
65
|
+
const { params, defaultListing, renderLayout } = t0;
|
|
66
|
+
let t1;
|
|
62
67
|
if ($[0] !== params) {
|
|
63
|
-
|
|
68
|
+
t1 = params ?? {};
|
|
64
69
|
$[0] = params;
|
|
65
|
-
$[1] =
|
|
66
|
-
} else
|
|
67
|
-
const { tree, catalogObjects, onLoadRecord, onLoadRecords, onLoadedNodeClick
|
|
70
|
+
$[1] = t1;
|
|
71
|
+
} else t1 = $[1];
|
|
72
|
+
const { tree, catalogObjects, onLoadRecord, onLoadRecords, onLoadedNodeClick } = t1;
|
|
68
73
|
const { t } = useTranslation();
|
|
69
74
|
const paramValues = useInstanceParamValues();
|
|
70
|
-
let t1;
|
|
71
|
-
if ($[2] !== paramValues || $[3] !== tree) {
|
|
72
|
-
t1 = tree ? deriveSearchableEntities(tree, paramValues) : [];
|
|
73
|
-
$[2] = paramValues;
|
|
74
|
-
$[3] = tree;
|
|
75
|
-
$[4] = t1;
|
|
76
|
-
} else t1 = $[4];
|
|
77
|
-
const entities = t1;
|
|
78
75
|
let t2;
|
|
79
|
-
if ($[
|
|
80
|
-
t2 = (
|
|
76
|
+
if ($[2] !== tree) {
|
|
77
|
+
t2 = tree ? fromWire(tree) : null;
|
|
78
|
+
$[2] = tree;
|
|
79
|
+
$[3] = t2;
|
|
80
|
+
} else t2 = $[3];
|
|
81
|
+
const typedTree = t2;
|
|
82
|
+
const { trees: linkedTrees } = useLinkedTrees(typedTree);
|
|
83
|
+
let t3;
|
|
84
|
+
if ($[4] !== linkedTrees || $[5] !== paramValues || $[6] !== typedTree) {
|
|
85
|
+
t3 = deriveSearchableEntities(typedTree, linkedTrees, paramValues);
|
|
86
|
+
$[4] = linkedTrees;
|
|
87
|
+
$[5] = paramValues;
|
|
88
|
+
$[6] = typedTree;
|
|
89
|
+
$[7] = t3;
|
|
90
|
+
} else t3 = $[7];
|
|
91
|
+
const entities = t3;
|
|
92
|
+
let t4;
|
|
93
|
+
if ($[8] !== catalogObjects || $[9] !== onLoadedNodeClick) {
|
|
94
|
+
t4 = (entity, row) => {
|
|
81
95
|
const filterElements = buildIdentifierFilterElements(catalogObjects ?? void 0, entity.entityName, row);
|
|
82
96
|
if (!filterElements.length) return;
|
|
83
97
|
onLoadedNodeClick?.({
|
|
@@ -89,54 +103,97 @@ const InquiryFindRecordsWidget = (props) => {
|
|
|
89
103
|
queryPayload: getSearchObject(filterElements, 1, 1, true, LogicalSearchOperatorEnums.And)
|
|
90
104
|
});
|
|
91
105
|
};
|
|
92
|
-
$[
|
|
93
|
-
$[
|
|
94
|
-
$[
|
|
95
|
-
} else
|
|
96
|
-
const handleChoose =
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
$[8] = catalogObjects;
|
|
107
|
+
$[9] = onLoadedNodeClick;
|
|
108
|
+
$[10] = t4;
|
|
109
|
+
} else t4 = $[10];
|
|
110
|
+
const handleChoose = t4;
|
|
111
|
+
if (!entities.length) {
|
|
112
|
+
let t5;
|
|
113
|
+
if ($[11] !== t) {
|
|
114
|
+
t5 = t("inquiry.widgets.findRecords.notSearchable", { defaultValue: "This page is not showing an inquiry tree that can be searched." });
|
|
115
|
+
$[11] = t;
|
|
116
|
+
$[12] = t5;
|
|
117
|
+
} else t5 = $[12];
|
|
118
|
+
let t6;
|
|
119
|
+
if ($[13] !== t5) {
|
|
120
|
+
t6 = /* @__PURE__ */ React.createElement(UdpMessageBar, {
|
|
121
|
+
intent: "warning",
|
|
122
|
+
layout: "multiline"
|
|
123
|
+
}, t5);
|
|
124
|
+
$[13] = t5;
|
|
125
|
+
$[14] = t6;
|
|
126
|
+
} else t6 = $[14];
|
|
127
|
+
const warning = t6;
|
|
128
|
+
let t7;
|
|
129
|
+
if ($[15] !== renderLayout || $[16] !== warning) {
|
|
130
|
+
t7 = renderLayout ? renderLayout({
|
|
131
|
+
search: warning,
|
|
132
|
+
results: null,
|
|
133
|
+
actions: null,
|
|
134
|
+
idle: true
|
|
135
|
+
}) : warning;
|
|
136
|
+
$[15] = renderLayout;
|
|
137
|
+
$[16] = warning;
|
|
138
|
+
$[17] = t7;
|
|
139
|
+
} else t7 = $[17];
|
|
140
|
+
return t7;
|
|
141
|
+
}
|
|
142
|
+
const t5 = onLoadRecord ?? handleChoose;
|
|
143
|
+
let t6;
|
|
144
|
+
if ($[18] !== catalogObjects || $[19] !== defaultListing || $[20] !== entities || $[21] !== onLoadRecords || $[22] !== renderLayout || $[23] !== t5) {
|
|
145
|
+
t6 = /* @__PURE__ */ React.createElement(RecordFinder, {
|
|
107
146
|
entities,
|
|
108
147
|
catalogObjects,
|
|
109
|
-
onChoose:
|
|
110
|
-
onChooseMany: onLoadRecords
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
117
|
-
$[
|
|
118
|
-
$[
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
148
|
+
onChoose: t5,
|
|
149
|
+
onChooseMany: onLoadRecords,
|
|
150
|
+
defaultListing,
|
|
151
|
+
renderLayout
|
|
152
|
+
});
|
|
153
|
+
$[18] = catalogObjects;
|
|
154
|
+
$[19] = defaultListing;
|
|
155
|
+
$[20] = entities;
|
|
156
|
+
$[21] = onLoadRecords;
|
|
157
|
+
$[22] = renderLayout;
|
|
158
|
+
$[23] = t5;
|
|
159
|
+
$[24] = t6;
|
|
160
|
+
} else t6 = $[24];
|
|
161
|
+
return t6;
|
|
162
|
+
};
|
|
163
|
+
const InquiryFindRecordsWidget = (props) => {
|
|
164
|
+
const $ = c(11);
|
|
165
|
+
const { children, params, className, style } = props;
|
|
166
|
+
const { t } = useTranslation();
|
|
167
|
+
let t0;
|
|
168
|
+
if ($[0] !== params?.hideWidgetName || $[1] !== t) {
|
|
169
|
+
t0 = params?.hideWidgetName ? void 0 : t("inquiry.widgets.findRecords.title", { defaultValue: "Find records" });
|
|
170
|
+
$[0] = params?.hideWidgetName;
|
|
171
|
+
$[1] = t;
|
|
172
|
+
$[2] = t0;
|
|
173
|
+
} else t0 = $[2];
|
|
174
|
+
let t1;
|
|
175
|
+
if ($[3] !== params) {
|
|
176
|
+
t1 = /* @__PURE__ */ React.createElement(FindRecords, { params });
|
|
177
|
+
$[3] = params;
|
|
178
|
+
$[4] = t1;
|
|
179
|
+
} else t1 = $[4];
|
|
180
|
+
let t2;
|
|
181
|
+
if ($[5] !== children || $[6] !== className || $[7] !== style || $[8] !== t0 || $[9] !== t1) {
|
|
182
|
+
t2 = /* @__PURE__ */ React.createElement(UdpCard, {
|
|
126
183
|
className,
|
|
127
184
|
style,
|
|
128
|
-
label:
|
|
129
|
-
},
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
-
$[
|
|
136
|
-
} else
|
|
137
|
-
return
|
|
185
|
+
label: t0
|
|
186
|
+
}, t1, children);
|
|
187
|
+
$[5] = children;
|
|
188
|
+
$[6] = className;
|
|
189
|
+
$[7] = style;
|
|
190
|
+
$[8] = t0;
|
|
191
|
+
$[9] = t1;
|
|
192
|
+
$[10] = t2;
|
|
193
|
+
} else t2 = $[10];
|
|
194
|
+
return t2;
|
|
138
195
|
};
|
|
139
196
|
//#endregion
|
|
140
|
-
export { InquiryFindRecordsWidget as default };
|
|
197
|
+
export { FindRecords, InquiryFindRecordsWidget as default };
|
|
141
198
|
|
|
142
199
|
//# sourceMappingURL=InquiryFindRecordsWidget.mjs.map
|