@wildo-ai/saas-frontend-lib 1.1.17 → 1.1.18
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/LICENSE +114 -26
- package/LICENSE.enterprise +129 -0
- package/dist/esm/companion-exports.d.ts +5 -2
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js +4 -2
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/components/actions/action-bar.d.ts +16 -1
- package/dist/esm/components/actions/action-bar.d.ts.map +1 -1
- package/dist/esm/components/actions/action-bar.js.map +1 -1
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js +6 -14
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js.map +1 -1
- package/dist/esm/components/app/AppLayout_DecisionInbox.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_DecisionInbox.js +2 -4
- package/dist/esm/components/app/AppLayout_DecisionInbox.js.map +1 -1
- package/dist/esm/components/app/AppLayout_Home.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_Home.js +14 -7
- package/dist/esm/components/app/AppLayout_Home.js.map +1 -1
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts +13 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts.map +1 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js +16 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js.map +1 -0
- package/dist/esm/components/app/DecisionInboxSection.d.ts +10 -0
- package/dist/esm/components/app/DecisionInboxSection.d.ts.map +1 -0
- package/dist/esm/components/app/DecisionInboxSection.js +15 -0
- package/dist/esm/components/app/DecisionInboxSection.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts +13 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js +28 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.d.ts +10 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.js +40 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts +16 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js +41 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts +15 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js +268 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts +3 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js +35 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js.map +1 -0
- package/dist/esm/components/auth/Auth_Main.d.ts.map +1 -1
- package/dist/esm/components/auth/Auth_Main.js +5 -0
- package/dist/esm/components/auth/Auth_Main.js.map +1 -1
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts +19 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js +156 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts +3 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js +107 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js.map +1 -0
- package/dist/esm/components/auth/StepUpAuthDialog.d.ts +31 -10
- package/dist/esm/components/auth/StepUpAuthDialog.d.ts.map +1 -1
- package/dist/esm/components/auth/StepUpAuthDialog.js +81 -17
- package/dist/esm/components/auth/StepUpAuthDialog.js.map +1 -1
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.d.ts.map +1 -1
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js +19 -0
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js.map +1 -1
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts +11 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js +25 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts +11 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js +25 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js.map +1 -0
- package/dist/esm/components/billing/billing-pricing-table.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-pricing-table.js +40 -7
- package/dist/esm/components/billing/billing-pricing-table.js.map +1 -1
- package/dist/esm/components/billing/billing-subscription-status.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-subscription-status.js +9 -1
- package/dist/esm/components/billing/billing-subscription-status.js.map +1 -1
- package/dist/esm/components/billing/billing-usage-dashboard.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-usage-dashboard.js +3 -2
- package/dist/esm/components/billing/billing-usage-dashboard.js.map +1 -1
- package/dist/esm/components/data-display/AutomaticDisplayer.d.ts.map +1 -1
- package/dist/esm/components/data-display/AutomaticDisplayer.js +7 -2
- package/dist/esm/components/data-display/AutomaticDisplayer.js.map +1 -1
- package/dist/esm/components/data-display/DisplayField.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayField.js +67 -45
- package/dist/esm/components/data-display/DisplayField.js.map +1 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.js +4 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.js.map +1 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.js +16 -6
- package/dist/esm/components/data-display/DisplayValueDispatcher.js.map +1 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.d.ts.map +1 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js +3 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js.map +1 -1
- package/dist/esm/components/feedback/empty-state-marker.d.ts +16 -0
- package/dist/esm/components/feedback/empty-state-marker.d.ts.map +1 -0
- package/dist/esm/components/feedback/empty-state-marker.js +16 -0
- package/dist/esm/components/feedback/empty-state-marker.js.map +1 -0
- package/dist/esm/components/feedback/empty-state.d.ts.map +1 -1
- package/dist/esm/components/feedback/empty-state.js +2 -1
- package/dist/esm/components/feedback/empty-state.js.map +1 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts +7 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts.map +1 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.js +8 -2
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.js.map +1 -1
- package/dist/esm/components/feedback/resource-empty-state.d.ts.map +1 -1
- package/dist/esm/components/feedback/resource-empty-state.js +2 -1
- package/dist/esm/components/feedback/resource-empty-state.js.map +1 -1
- package/dist/esm/components/flows-actors/approval.d.ts +25 -1
- package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/approval.js +14 -9
- package/dist/esm/components/flows-actors/approval.js.map +1 -1
- package/dist/esm/components/flows-actors/approval.labels.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/approval.labels.js +30 -0
- package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
- package/dist/esm/components/flows-actors/flow-node.labels.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/flow-node.labels.js +4 -1
- package/dist/esm/components/flows-actors/flow-node.labels.js.map +1 -1
- package/dist/esm/components/flows-actors/flow-step-visuals.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/flow-step-visuals.js +8 -2
- package/dist/esm/components/flows-actors/flow-step-visuals.js.map +1 -1
- package/dist/esm/components/flows-actors/human-decision-form.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/human-decision-form.js +4 -1
- package/dist/esm/components/flows-actors/human-decision-form.js.map +1 -1
- package/dist/esm/components/form/Form.d.ts +2 -0
- package/dist/esm/components/form/Form.d.ts.map +1 -1
- package/dist/esm/components/form/Form.js +1 -0
- package/dist/esm/components/form/Form.js.map +1 -1
- package/dist/esm/components/form/automated/AutomatedArrayField.d.ts.map +1 -1
- package/dist/esm/components/form/automated/AutomatedArrayField.js +7 -4
- package/dist/esm/components/form/automated/AutomatedArrayField.js.map +1 -1
- package/dist/esm/components/form/automated/AutosaveContext.d.ts.map +1 -1
- package/dist/esm/components/form/automated/AutosaveContext.js +8 -0
- package/dist/esm/components/form/automated/AutosaveContext.js.map +1 -1
- package/dist/esm/components/form/automated/FormField.d.ts +5 -3
- package/dist/esm/components/form/automated/FormField.d.ts.map +1 -1
- package/dist/esm/components/form/automated/FormField.js +38 -13
- package/dist/esm/components/form/automated/FormField.js.map +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js +31 -18
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.d.ts +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js.map +1 -1
- package/dist/esm/components/form/validation-errors/form-validation.d.ts +5 -7
- package/dist/esm/components/form/validation-errors/form-validation.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/form-validation.js +7 -22
- package/dist/esm/components/form/validation-errors/form-validation.js.map +1 -1
- package/dist/esm/components/form/validation-errors/getFieldError.d.ts +25 -2
- package/dist/esm/components/form/validation-errors/getFieldError.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/getFieldError.js +29 -2
- package/dist/esm/components/form/validation-errors/getFieldError.js.map +1 -1
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts +5 -0
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js +3 -0
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js.map +1 -1
- package/dist/esm/components/form/validation-errors/save-attempt.d.ts +9 -0
- package/dist/esm/components/form/validation-errors/save-attempt.d.ts.map +1 -0
- package/dist/esm/components/form/validation-errors/save-attempt.js +42 -0
- package/dist/esm/components/form/validation-errors/save-attempt.js.map +1 -0
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts +3 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.js +3 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.js.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts +2 -2
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js +3 -0
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js +5 -3
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts +19 -0
- package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js +47 -11
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.js +17 -7
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_List.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_List.js +13 -6
- package/dist/esm/components/resources/ResourceLayout_List.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_Search.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_Search.js +12 -8
- package/dist/esm/components/resources/ResourceLayout_Search.js.map +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js +11 -4
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js.map +1 -1
- package/dist/esm/components/resources/embeds/RelatedResourceSections.d.ts +1 -1
- package/dist/esm/components/resources/embeds/RelatedResourceSections.js.map +1 -1
- package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts +5 -5
- package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts.map +1 -1
- package/dist/esm/components/resources/embeds/ResourceEmbeds.js +21 -14
- package/dist/esm/components/resources/embeds/ResourceEmbeds.js.map +1 -1
- package/dist/esm/components/resources/skeleton/DisplayLayout.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/DisplayLayout.js +40 -4
- package/dist/esm/components/resources/skeleton/DisplayLayout.js.map +1 -1
- package/dist/esm/components/resources/skeleton/FormLayout.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/FormLayout.js +22 -6
- package/dist/esm/components/resources/skeleton/FormLayout.js.map +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.d.ts +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js.map +1 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts +21 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.js +53 -9
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.js.map +1 -1
- package/dist/esm/components/settings/SettingsHub.d.ts +15 -0
- package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
- package/dist/esm/components/settings/SettingsHub.js +14 -4
- package/dist/esm/components/settings/SettingsHub.js.map +1 -1
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts +3 -2
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts.map +1 -1
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.js +4 -3
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.js.map +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts.map +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts +33 -0
- package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartKpiFigure.js +63 -4
- package/dist/esm/components/views/chart-view/ChartKpiFigure.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.js +33 -7
- package/dist/esm/components/views/chart-view/ChartView.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.labels.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.labels.js +69 -3
- package/dist/esm/components/views/chart-view/ChartView.labels.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.js +2 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartWidget.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartWidget.js +12 -4
- package/dist/esm/components/views/chart-view/ChartWidget.js.map +1 -1
- package/dist/esm/components/views/chart-view/chart-export.utils.d.ts +8 -0
- package/dist/esm/components/views/chart-view/chart-export.utils.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/chart-export.utils.js +15 -25
- package/dist/esm/components/views/chart-view/chart-export.utils.js.map +1 -1
- package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts +6 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts.map +1 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.js +6 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.js.map +1 -0
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts +35 -9
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.js +69 -21
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js +6 -7
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js +2 -2
- package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js +7 -7
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js +6 -8
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js +4 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js +13 -13
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.d.ts +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.js +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.js.map +1 -1
- package/dist/esm/components/views/composite-view/CompositeView.d.ts +6 -0
- package/dist/esm/components/views/composite-view/CompositeView.d.ts.map +1 -1
- package/dist/esm/components/views/composite-view/CompositeView.js +6 -2
- package/dist/esm/components/views/composite-view/CompositeView.js.map +1 -1
- package/dist/esm/components/views/execution-view/ExecutionView.d.ts +7 -0
- package/dist/esm/components/views/execution-view/ExecutionView.d.ts.map +1 -1
- package/dist/esm/components/views/execution-view/ExecutionView.js +11 -1
- package/dist/esm/components/views/execution-view/ExecutionView.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +7 -0
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js +6 -2
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
- package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts +7 -0
- package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts.map +1 -1
- package/dist/esm/components/views/full-custom-view/FullCustomView.js +8 -3
- package/dist/esm/components/views/full-custom-view/FullCustomView.js.map +1 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts +7 -0
- package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts.map +1 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.js +11 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.js.map +1 -1
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.d.ts +2 -2
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.js +2 -2
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.js.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts +4 -4
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js +3 -3
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js.map +1 -1
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts +45 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts.map +1 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js +72 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js.map +1 -0
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts +4 -3
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js +4 -3
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts +15 -8
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js +22 -21
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js.map +1 -1
- package/dist/esm/core/billing/BillingContext.d.ts +27 -4
- package/dist/esm/core/billing/BillingContext.d.ts.map +1 -1
- package/dist/esm/core/billing/BillingContext.js +61 -2
- package/dist/esm/core/billing/BillingContext.js.map +1 -1
- package/dist/esm/core/billing/useBillingAction.d.ts.map +1 -1
- package/dist/esm/core/billing/useBillingAction.js +3 -2
- package/dist/esm/core/billing/useBillingAction.js.map +1 -1
- package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts +19 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts.map +1 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.js +23 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.js.map +1 -0
- package/dist/esm/core/components-registry/register-framework-layouts.d.ts.map +1 -1
- package/dist/esm/core/components-registry/register-framework-layouts.js +4 -0
- package/dist/esm/core/components-registry/register-framework-layouts.js.map +1 -1
- package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts +159 -0
- package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/app-configuration-frontend.schemas.js +68 -3
- package/dist/esm/core/config/app-configuration-frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/app-level-components.frontend.schemas.d.ts +2 -2
- package/dist/esm/core/config/app-level-components.frontend.schemas.js +2 -2
- package/dist/esm/core/config/app-level-components.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/chart-view.frontend.schemas.d.ts +59 -18
- package/dist/esm/core/config/chart-view.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/chart-view.frontend.schemas.js +42 -7
- package/dist/esm/core/config/chart-view.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.d.ts +8 -1
- package/dist/esm/core/config/composite-view.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.js +1 -0
- package/dist/esm/core/config/composite-view.schemas.js.map +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.d.ts +6 -0
- package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.js +12 -0
- package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
- package/dist/esm/core/config/execution-view.schemas.d.ts +1 -1
- package/dist/esm/core/config/execution-view.schemas.js.map +1 -1
- package/dist/esm/core/config/identity-portal-settings.frontend.d.ts +17 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.d.ts.map +1 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.js +64 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.js.map +1 -0
- package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts +8 -8
- package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/launcher-items.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.js +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.js.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +17 -6
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/useSettingsHubConfig.d.ts.map +1 -1
- package/dist/esm/core/config/useSettingsHubConfig.js +1 -0
- package/dist/esm/core/config/useSettingsHubConfig.js.map +1 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts +7 -0
- package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts.map +1 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.js +9 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.js.map +1 -1
- package/dist/esm/core/config/verify-launcher-content.d.ts +7 -1
- package/dist/esm/core/config/verify-launcher-content.d.ts.map +1 -1
- package/dist/esm/core/config/verify-launcher-content.js +31 -0
- package/dist/esm/core/config/verify-launcher-content.js.map +1 -1
- package/dist/esm/core/errors/GlobalErrorHandler.d.ts.map +1 -1
- package/dist/esm/core/errors/GlobalErrorHandler.js +10 -0
- package/dist/esm/core/errors/GlobalErrorHandler.js.map +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.d.ts +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.d.ts.map +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.js.map +1 -1
- package/dist/esm/core/events/NotificationContext.d.ts.map +1 -1
- package/dist/esm/core/events/NotificationContext.js +19 -2
- package/dist/esm/core/events/NotificationContext.js.map +1 -1
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts +21 -2
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.js +25 -4
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.js.map +1 -1
- package/dist/esm/core/execution/useExecution.d.ts +3 -3
- package/dist/esm/core/execution/useExecution.js.map +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.d.ts +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js.map +1 -1
- package/dist/esm/core/features/FeatureGate.d.ts +13 -1
- package/dist/esm/core/features/FeatureGate.d.ts.map +1 -1
- package/dist/esm/core/features/FeatureGate.js +6 -1
- package/dist/esm/core/features/FeatureGate.js.map +1 -1
- package/dist/esm/core/features/InPlaceFeatureLock.d.ts +28 -0
- package/dist/esm/core/features/InPlaceFeatureLock.d.ts.map +1 -0
- package/dist/esm/core/features/InPlaceFeatureLock.js +49 -0
- package/dist/esm/core/features/InPlaceFeatureLock.js.map +1 -0
- package/dist/esm/core/features/PlanRefusalPrompt.d.ts +12 -0
- package/dist/esm/core/features/PlanRefusalPrompt.d.ts.map +1 -0
- package/dist/esm/core/features/PlanRefusalPrompt.js +90 -0
- package/dist/esm/core/features/PlanRefusalPrompt.js.map +1 -0
- package/dist/esm/core/features/RequiredFeaturesGate.d.ts +39 -0
- package/dist/esm/core/features/RequiredFeaturesGate.d.ts.map +1 -0
- package/dist/esm/core/features/RequiredFeaturesGate.js +51 -0
- package/dist/esm/core/features/RequiredFeaturesGate.js.map +1 -0
- package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts +6 -0
- package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/features/feature-unavailability.frontend.utils.js +27 -10
- package/dist/esm/core/features/feature-unavailability.frontend.utils.js.map +1 -1
- package/dist/esm/core/features/plan-refusal.frontend.d.ts +43 -0
- package/dist/esm/core/features/plan-refusal.frontend.d.ts.map +1 -0
- package/dist/esm/core/features/plan-refusal.frontend.js +67 -0
- package/dist/esm/core/features/plan-refusal.frontend.js.map +1 -0
- package/dist/esm/core/features/required-features-gate-presentation.d.ts +21 -0
- package/dist/esm/core/features/required-features-gate-presentation.d.ts.map +1 -0
- package/dist/esm/core/features/required-features-gate-presentation.js +26 -0
- package/dist/esm/core/features/required-features-gate-presentation.js.map +1 -0
- package/dist/esm/core/features/useFeatureAvailability.d.ts.map +1 -1
- package/dist/esm/core/features/useFeatureAvailability.js +4 -0
- package/dist/esm/core/features/useFeatureAvailability.js.map +1 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.d.ts +2 -0
- package/dist/esm/core/features/useOperationFeatureAvailability.d.ts.map +1 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.js +6 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.js.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +11 -0
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.js +117 -3
- package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.d.ts.map +1 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js +3 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.js +28 -9
- package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
- package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.d.ts → core/navigation/chart-read-gate.d.ts} +11 -7
- package/dist/esm/core/navigation/chart-read-gate.d.ts.map +1 -0
- package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.js → core/navigation/chart-read-gate.js} +27 -11
- package/dist/esm/core/navigation/chart-read-gate.js.map +1 -0
- package/dist/esm/core/navigation/home-resolution.d.ts +36 -0
- package/dist/esm/core/navigation/home-resolution.d.ts.map +1 -0
- package/dist/esm/core/navigation/home-resolution.js +46 -0
- package/dist/esm/core/navigation/home-resolution.js.map +1 -0
- package/dist/esm/core/navigation/launcher-resolution.d.ts +2 -34
- package/dist/esm/core/navigation/launcher-resolution.d.ts.map +1 -1
- package/dist/esm/core/navigation/launcher-resolution.js +13 -18
- package/dist/esm/core/navigation/launcher-resolution.js.map +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.d.ts +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.d.ts.map +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.js +7 -2
- package/dist/esm/core/navigation/launcher-runtime-availability.js.map +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.d.ts +2 -2
- package/dist/esm/core/navigation/primary-destination-layout.d.ts.map +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.js +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.js.map +1 -1
- package/dist/esm/core/navigation/useChartReadDecision.d.ts +26 -0
- package/dist/esm/core/navigation/useChartReadDecision.d.ts.map +1 -0
- package/dist/esm/core/navigation/useChartReadDecision.js +58 -0
- package/dist/esm/core/navigation/useChartReadDecision.js.map +1 -0
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.js.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.js.map +1 -1
- package/dist/esm/core/navigation/view-title-resolution.d.ts +21 -0
- package/dist/esm/core/navigation/view-title-resolution.d.ts.map +1 -1
- package/dist/esm/core/navigation/view-title-resolution.js +25 -0
- package/dist/esm/core/navigation/view-title-resolution.js.map +1 -1
- package/dist/esm/core/navigation/viewer-field-reader.d.ts +81 -0
- package/dist/esm/core/navigation/viewer-field-reader.d.ts.map +1 -0
- package/dist/esm/core/navigation/viewer-field-reader.js +113 -0
- package/dist/esm/core/navigation/viewer-field-reader.js.map +1 -0
- package/dist/esm/core/navigation/viewer-roles.d.ts +40 -0
- package/dist/esm/core/navigation/viewer-roles.d.ts.map +1 -0
- package/dist/esm/core/navigation/viewer-roles.js +26 -0
- package/dist/esm/core/navigation/viewer-roles.js.map +1 -0
- package/dist/esm/core/requests/user-interaction-clock.d.ts +32 -0
- package/dist/esm/core/requests/user-interaction-clock.d.ts.map +1 -0
- package/dist/esm/core/requests/user-interaction-clock.js +47 -0
- package/dist/esm/core/requests/user-interaction-clock.js.map +1 -0
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.d.ts.map +1 -1
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.js +2 -0
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.js.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +27 -6
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +30 -7
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
- package/dist/esm/core/requests/wildo-http-client.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/requests/wildo-http-client.frontend.service.js +13 -0
- package/dist/esm/core/requests/wildo-http-client.frontend.service.js.map +1 -1
- package/dist/esm/core/resources/hooks/useOperationEnabled.d.ts.map +1 -1
- package/dist/esm/core/resources/hooks/useOperationEnabled.js +4 -0
- package/dist/esm/core/resources/hooks/useOperationEnabled.js.map +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.js.map +1 -1
- package/dist/esm/core/resources/resources-repository.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/resources/resources-repository.frontend.service.js +2 -0
- package/dist/esm/core/resources/resources-repository.frontend.service.js.map +1 -1
- package/dist/esm/core/resources/resources.frontend.schemas.d.ts +29 -23
- package/dist/esm/core/resources/resources.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/resources/resources.frontend.schemas.js +20 -20
- package/dist/esm/core/resources/resources.frontend.schemas.js.map +1 -1
- package/dist/esm/core/resources/rmm/ResourceMutationManager.d.ts.map +1 -1
- package/dist/esm/core/resources/rmm/ResourceMutationManager.js +4 -0
- package/dist/esm/core/resources/rmm/ResourceMutationManager.js.map +1 -1
- package/dist/esm/core/resources/useResourceOperationActions.d.ts.map +1 -1
- package/dist/esm/core/resources/useResourceOperationActions.js +7 -7
- package/dist/esm/core/resources/useResourceOperationActions.js.map +1 -1
- package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
- package/dist/esm/core/runtime/AppRouter.js +11 -33
- package/dist/esm/core/runtime/AppRouter.js.map +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.d.ts +15 -1
- package/dist/esm/core/runtime/ApplicationMainContext.d.ts.map +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.js +41 -23
- package/dist/esm/core/runtime/ApplicationMainContext.js.map +1 -1
- package/dist/esm/core/runtime/IdentityPortalRouter.d.ts +20 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.d.ts.map +1 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.js +31 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.js.map +1 -0
- package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts +9 -0
- package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts.map +1 -1
- package/dist/esm/core/runtime/domain-module.frontend.definitions.js +3 -2
- package/dist/esm/core/runtime/domain-module.frontend.definitions.js.map +1 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts +21 -0
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts.map +1 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.js +19 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.js.map +1 -1
- package/dist/esm/core/runtime/identity-routes.d.ts +13 -0
- package/dist/esm/core/runtime/identity-routes.d.ts.map +1 -0
- package/dist/esm/core/runtime/identity-routes.js +50 -0
- package/dist/esm/core/runtime/identity-routes.js.map +1 -0
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +19 -0
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js +20 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts +3 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.js +2 -0
- package/dist/esm/core/runtime/runtime.frontend.schemas.js.map +1 -1
- package/dist/esm/core/runtime/start-application.frontend.service.d.ts +7 -0
- package/dist/esm/core/runtime/start-application.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/start-application.frontend.service.js +4 -2
- package/dist/esm/core/runtime/start-application.frontend.service.js.map +1 -1
- package/dist/esm/core/security/AuthSessionContext.d.ts.map +1 -1
- package/dist/esm/core/security/AuthSessionContext.js +4 -0
- package/dist/esm/core/security/AuthSessionContext.js.map +1 -1
- package/dist/esm/core/security/StepUpAuthContext.d.ts +3 -2
- package/dist/esm/core/security/StepUpAuthContext.d.ts.map +1 -1
- package/dist/esm/core/security/StepUpAuthContext.js +7 -2
- package/dist/esm/core/security/StepUpAuthContext.js.map +1 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.d.ts +13 -2
- package/dist/esm/core/security/federated-reauthentication.frontend.d.ts.map +1 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.js +21 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.js.map +1 -1
- package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts +24 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts.map +1 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.js +37 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.js.map +1 -0
- package/dist/esm/core/ui/design-token.utils.d.ts +9 -0
- package/dist/esm/core/ui/design-token.utils.d.ts.map +1 -1
- package/dist/esm/core/ui/design-token.utils.js +24 -3
- package/dist/esm/core/ui/design-token.utils.js.map +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.d.ts +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.js +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.js.map +1 -1
- package/dist/esm/core/ui/ui.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/index.d.ts +14 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +17 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/testing/mock-builders.d.ts +1 -1
- package/dist/esm/testing/mock-builders.d.ts.map +1 -1
- package/dist/esm/testing/mock-builders.js +1 -0
- package/dist/esm/testing/mock-builders.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +9 -6
- package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.d.ts.map +0 -1
- package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ResponsiveMaxWidth } from '@wildo-ai/presets-components-models';
|
|
3
3
|
import type { FrontendResourcesRegistry } from '../../core/resources/resources.frontend.schemas';
|
|
4
|
-
import { type LauncherEffectiveRoles } from '../../core/navigation/
|
|
4
|
+
import { type LauncherEffectiveRoles } from '../../core/navigation/viewer-roles';
|
|
5
5
|
import { ComponentPresetProps } from '../../core/components-registry/component-registry.frontend.schemas';
|
|
6
6
|
import { BaseResourcesLayoutProps } from './component-props.resources-layout.frontend.schemas';
|
|
7
7
|
export interface ResourceLayoutPreset_RecordSharing_DefaultProps extends BaseResourcesLayoutProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceLayout_RecordSharing.d.ts","sourceRoot":"","sources":["../../../../src/components/resources/ResourceLayout_RecordSharing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAS7D,OAAO,EAAuD,KAAK,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAanI,OAAO,KAAK,EAA2C,yBAAyB,EAAE,MAAM,+DAA+D,CAAC;
|
|
1
|
+
{"version":3,"file":"ResourceLayout_RecordSharing.d.ts","sourceRoot":"","sources":["../../../../src/components/resources/ResourceLayout_RecordSharing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAS7D,OAAO,EAAuD,KAAK,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAanI,OAAO,KAAK,EAA2C,yBAAyB,EAAE,MAAM,+DAA+D,CAAC;AAYxJ,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAE/F,OAAO,EAAE,oBAAoB,EAAE,MAAM,kFAAkF,CAAC;AAExH,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AAG/F,MAAM,WAAW,+CAAgD,SAAQ,wBAAwB;IAC/F,uEAAuE;IACvE,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+HAA+H;IAC/H,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC;AAQD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC5C,QAAQ,CAAC,QAAQ,EAAE,yBAAyB,GAAG,SAAS,CAAC;IACzD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;IAClD,QAAQ,CAAC,qBAAqB,EAAE,MAAM,GAAG,SAAS,CAAC;IACnD,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;CACzC,GAAG,OAAO,CAcV;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,0CAA0C,GAAI,oEAKxD,+CAA+C,KAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAuMxE,CAAC;AAEF,wBAAgB,4BAA4B,CAAC,EAAE,MAAgC,EAAE,GAAG,KAAK,EAAE,EAAE,+CAA+C,GAAG,oBAAoB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAGtL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceLayout_RecordSharing.js","sourceRoot":"","sources":["../../../../src/components/resources/ResourceLayout_RecordSharing.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,gBAAgB,EAChB,oCAAoC,EACpC,+CAA+C,EAC/C,qCAAqC,GACtC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,qBAAqB,EAA2B,MAAM,qCAAqC,CAAC;AAEnI,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,MAAM,EAAE,MAAM,0DAA0D,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,8CAA8C,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,kEAAkE,CAAC;AAC3G,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,gD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AAC,EAC7C,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,GAC5B,CACH,IACO,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,4BAA4B,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,OAAO,EAAE,GAAG,KAAK,EAA0E;IACjK,MAAM,SAAS,GAAG,uBAAuB,CAAkD,qBAAqB,CAAC,gCAAgC,EAAE,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;IAC3L,OAAO,KAAC,SAAS,OAAK,KAAK,GAAI,CAAC;AAClC,CAAC","sourcesContent":["import React, { useContext, useMemo, useState } from 'react';\nimport { z } from 'zod';\n\nimport {\n CoreResourceType,\n OrganizationRelationships_Operations,\n RELATIONSHIP_COMMON_RECORDS_FORBIDDEN_RESOURCES,\n resourceCarriesRelationshipProvenance,\n} from '@wildo-ai/saas-models';\nimport { ControlSize, CorePresetNames, FrontendComponentType, type ResponsiveMaxWidth } from '@wildo-ai/presets-components-models';\n\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { Select } from '~wildo-frontend-lib/components/form/controls/enum/select';\nimport { Card } from '~wildo-frontend-lib/components/sections/card';\nimport { optionalMaxInlineSizeStyle } from '~wildo-frontend-lib/components/sections/surface';\nimport { Heading } from '~wildo-frontend-lib/components/typography/heading';\nimport { useDocumentHeadingLevel } from '~wildo-frontend-lib/components/typography/document-heading-level';\nimport { Strong, Text, TextSize, TextVariant } from '~wildo-frontend-lib/components/typography/text';\nimport { OperationsConfirmCritical } from '~wildo-frontend-lib/components/feedback/operations-confirm-critical';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { ResourceRegistryContext } from '~wildo-frontend-lib/core/resources/ResourceRegistryContext';\nimport type { FrontendResourceConfiguration_Operation, FrontendResourcesRegistry } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { isRiskyResourceOperation } from '~wildo-frontend-lib/core/resources/operation-semantics.frontend.utils';\nimport { resolveRecordOrganizationId } from '~wildo-frontend-lib/core/resources/resource-addressability.frontend.utils';\nimport {\n RecordSharingReadState,\n findRelationshipOperation,\n useRecordSharing,\n type RecordSharingRelationship,\n} from '~wildo-frontend-lib/core/resources/useRecordSharing';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { useRelationshipSideCapabilities, useViewerEffectiveRolesInOrganization } from '~wildo-frontend-lib/core/navigation/launcher-runtime-availability';\nimport { viewerMayPerformOperation, type LauncherEffectiveRoles } from '~wildo-frontend-lib/core/navigation/launcher-resolution';\nimport { RelationshipSideCapability } from '~wildo-frontend-lib/core/config/relationship-side-capabilities.frontend.utils';\nimport { ComponentPresetProps } from '~wildo-frontend-lib/core/components-registry/component-registry.frontend.schemas';\nimport { createComponentResolver } from '~wildo-frontend-lib/core/components-registry/component-resolver.frontend.helper';\nimport { BaseResourcesLayoutProps } from './component-props.resources-layout.frontend.schemas';\n\n// --- Contract ---\nexport interface ResourceLayoutPreset_RecordSharing_DefaultProps extends BaseResourcesLayoutProps {\n /** The loaded record: its id names the record the sharing is about. */\n currentObject?: Record<string, any>;\n className?: string;\n /** How wide the section may grow, in the framework's shared width vocabulary; unset, the host decides (as the danger zone). */\n responsiveMaxWidth?: ResponsiveMaxWidth;\n}\n\n/** The record's id as the read page loaded it: `_id`, else the resource's own identifier field. */\nfunction recordIdOf(currentObject: Record<string, unknown> | undefined, resourceFieldIdentifier: string | undefined): string | undefined {\n const candidate = currentObject?._id ?? (resourceFieldIdentifier ? currentObject?.[resourceFieldIdentifier] : undefined);\n return (typeof candidate === 'string' || typeof candidate === 'number') && String(candidate).length > 0 ? String(candidate) : undefined;\n}\n\n/**\n * Whether the record page offers its sharing section (#2736). Every condition is one the backend also decides, so the\n * section never offers what the verbs would refuse:\n *\n * - the resource separates its records between relationships (`resourceCarriesRelationshipProvenance`) and is not one\n * that issues or attests authority (`RELATIONSHIP_COMMON_RECORDS_FORBIDDEN_RESOURCES`), exactly the share verbs' rule;\n * - the record belongs to the CURRENT organization and that organization's type grants in some relationship kind: the\n * side capability is derived for the current organization, so a record of another organization (a platform operator\n * reading a tenant from the directory) is not offered;\n * - the sharing read and both share verbs are registered in this frontend;\n * - the viewer may perform the read and the share there, by the registry's own roles (organization administrators,\n * which no relationship confers).\n *\n * A resource the backend still declines (a system of record's rows) is found by the read itself, which answers\n * `RELATIONSHIP_RECORD_NOT_SHAREABLE`: the section then stays hidden.\n */\nexport function isRecordSharingOffered(input: {\n readonly registry: FrontendResourcesRegistry | undefined;\n readonly resourceType: string;\n readonly recordId: string | undefined;\n readonly recordOrganizationId: string | undefined;\n readonly currentOrganizationId: string | undefined;\n readonly grants: boolean;\n readonly viewer: LauncherEffectiveRoles;\n}): boolean {\n const configuration = input.registry?.resourceConfigurations[input.resourceType];\n if (!configuration || !resourceCarriesRelationshipProvenance(input.resourceType, configuration.resourcePrimaryScope)) return false;\n if (RELATIONSHIP_COMMON_RECORDS_FORBIDDEN_RESOURCES.includes(input.resourceType)) return false;\n if (!input.recordId || !input.currentOrganizationId || input.recordOrganizationId !== input.currentOrganizationId) return false;\n if (!input.grants) return false;\n const relationshipsScope = input.registry?.resourceConfigurations[CoreResourceType.ORGANIZATION_RELATIONSHIPS]?.resourcePrimaryScope;\n const may = (operation: FrontendResourceConfiguration_Operation | undefined): boolean => !!operation && viewerMayPerformOperation(\n { ...operation, resourceType: CoreResourceType.ORGANIZATION_RELATIONSHIPS, resourcePrimaryScope: relationshipsScope },\n input.viewer,\n );\n return may(findRelationshipOperation(input.registry, OrganizationRelationships_Operations.READ_RECORD_SHARING))\n && may(findRelationshipOperation(input.registry, OrganizationRelationships_Operations.SHARE_RECORD))\n && !!findRelationshipOperation(input.registry, OrganizationRelationships_Operations.UNSHARE_RECORD);\n}\n\n/**\n * The record page's sharing section (#2736): whose the record is, which of the organization's relationships it is\n * shared with, and the administrator's share / withdraw. Mounted by the default read layout beside the danger zone, and\n * hidden wherever {@link isRecordSharingOffered} is false, while the read is in flight, for a resource the backend does\n * not share, and where there is nothing to say: the organization's own record, with no share to withdraw, none to offer\n * and no relationship reading it. A failed read says so and offers nothing.\n *\n * Every claim is the read's answer, decided by the engine per relationship (`describeRelationshipRecordReach`, #2736\n * review N1, N2): a share is offered only to a relationship whose people it would let read the record (#2617: the\n * organization may share one representing organization's record with another), confirmed first when the share verb is\n * risky (HIGH). A relationship that reads the record without a share (the one it was created through, one whose kind\n * reads the organization's own records, every one for a resource declared common) is named as reading it. A share\n * already made is always listed with its withdraw, marked when it changes nothing: its relationship confers nothing\n * now, reads the record anyway, or cannot read this record at all (its roles, or its units, do not reach it).\n */\nexport const ResourceLayoutPreset_RecordSharing_Default = ({\n resourceContext,\n currentObject,\n className,\n responsiveMaxWidth,\n}: ResourceLayoutPreset_RecordSharing_DefaultProps): React.JSX.Element | null => {\n const { resourceType } = resourceContext;\n // The panel's title takes the outline's level on the record page, never a fixed `h3` under the title's `h1` (#3867).\n const headingLevel = useDocumentHeadingLevel();\n const { tComponent, formatList } = useI18n({ component: FrontendComponentType.RESOURCES_LAYOUTS_RECORD_SHARING, resource: resourceType });\n // Every word here is a declared label (`ResourceLayout_RecordSharing.labels.ts`); an ungenerated one renders as its key.\n const label = (key: string, params?: Record<string, string>): string => tComponent(FrontendComponentType.RESOURCES_LAYOUTS_RECORD_SHARING, key, params);\n\n // The context itself rather than the throwing hook: a read layout rendered outside the registry provider offers nothing.\n const registry = useContext(ResourceRegistryContext)?.registry;\n const currentOrganizationId = useAppScopeSafe()?.currentOrganizationId ?? undefined;\n const recordId = recordIdOf(currentObject, registry?.resourceConfigurations[resourceType]?.resourceFieldIdentifier);\n // The row's own organization, else the one the page's context names. Never assumed to be the current organization: a\n // record nothing places is not offered (#2736 review F6, N9).\n const recordOrganizationId = (typeof currentObject?.organizationId === 'string' && currentObject.organizationId.length > 0 ? currentObject.organizationId : undefined)\n ?? resolveRecordOrganizationId(resourceType, recordId, resourceContext.contextResourceIdentifiers);\n const viewer = useViewerEffectiveRolesInOrganization(recordOrganizationId);\n const grants = useRelationshipSideCapabilities()[RelationshipSideCapability.GRANTS];\n const offered = isRecordSharingOffered({ registry, resourceType, recordId, recordOrganizationId, currentOrganizationId, grants, viewer });\n\n const sharing = useRecordSharing({ enabled: offered, organizationId: recordOrganizationId, resourceType, recordId });\n const [chosen, setChosenRelationshipId] = useState<string | undefined>(undefined);\n const [confirming, setConfirmingRelationshipId] = useState<string | undefined>(undefined);\n const [busy, setBusy] = useState(false);\n // A choice, and an open confirmation, belong to the record they were made on (#2736 review N6, I4, re-review F1). They\n // are cleared DURING the render that meets another record, which React redoes before committing, so no frame shows\n // them there, and coming back to the first record does not bring them back.\n const recordKey = `${resourceType}|${recordId ?? ''}`;\n const [choiceRecordKey, setChoiceRecordKey] = useState(recordKey);\n if (choiceRecordKey !== recordKey) {\n setChoiceRecordKey(recordKey);\n setChosenRelationshipId(undefined);\n setConfirmingRelationshipId(undefined);\n }\n\n const byId = useMemo(\n () => new Map<string, RecordSharingRelationship>(sharing.relationships.map((relationship) => [relationship.relationshipId, relationship])),\n [sharing.relationships],\n );\n const nameOf = (relationshipId: string): string => byId.get(relationshipId)?.name ?? label('unnamedRelationship');\n const shareable = sharing.relationships.filter((relationship) => relationship.wouldReadIfShared\n && !sharing.sharedWithRelationshipIds.includes(relationship.relationshipId));\n // A choice counts only while the latest answer still offers it, so Share never acts on a relationship the screen no\n // longer offers. Once an answer has SETTLED (not loading, not mid re-read), a choice or an open confirmation it does not\n // offer is CLEARED, during this render, not merely hidden: hidden, a later answer offering the relationship again\n // would bring the choice back and reopen the HIGH-risk confirmation with nobody asking (#2736 re-review R1).\n const isOffered = (relationshipId: string | undefined): relationshipId is string =>\n relationshipId !== undefined && shareable.some((relationship) => relationship.relationshipId === relationshipId);\n // Settled: not another record's read, and not a re-read. The hook keeps the last answer unchanged while it re-reads, so\n // today a re-read never withdraws an offer; the condition is kept so a future hook that does cannot clear a choice the\n // person is still looking at (#2736 re-review C).\n const answerSettled = sharing.readState !== RecordSharingReadState.LOADING && !sharing.refreshing;\n if (answerSettled && chosen !== undefined && !isOffered(chosen)) setChosenRelationshipId(undefined);\n if (answerSettled && confirming !== undefined && !isOffered(confirming)) setConfirmingRelationshipId(undefined);\n // No separate filter at read: React redoes this render with the cleared state before committing it, and while an\n // answer is not settled the last one stays on screen (a re-read) or nothing is shown (another record's read), so a\n // choice the screen does not offer is never drawn.\n const chosenRelationshipId = chosen;\n const confirmingRelationshipId = confirming;\n // Those reading the record without a share, the one it was created through aside: its own line names it.\n const alreadyReading = sharing.relationships.filter((relationship) => relationship.readsWithoutShare\n && relationship.relationshipId !== sharing.viaRelationshipId);\n const conferring = sharing.relationships.filter((relationship) => relationship.confersNow);\n const unreadable = !sharing.commonToEveryRelationship && conferring.length > 0 && conferring.every((relationship) => !relationship.rolesReachRecord);\n const creatingRelationship = sharing.viaRelationshipId === null ? undefined : byId.get(sharing.viaRelationshipId);\n /** Why a share already made changes nothing, when it does not. */\n const shareNote = (relationshipId: string): string | undefined => {\n const relationship = byId.get(relationshipId);\n if (!relationship?.confersNow) return label('relationshipInactive');\n if (relationship.readsWithoutShare) return label('readsWithoutShare');\n if (!relationship.rolesReachRecord) return label('shareHasNoEffect');\n return undefined;\n };\n\n if (!offered) return null;\n if (sharing.readState !== RecordSharingReadState.READY && sharing.readState !== RecordSharingReadState.FAILED) return null;\n // The organization's own record, shared with nobody, offered to nobody and read by no relationship: nothing to say.\n if (sharing.readState === RecordSharingReadState.READY && sharing.viaRelationshipId === null\n && sharing.sharedWithRelationshipIds.length === 0 && shareable.length === 0 && alreadyReading.length === 0) return null;\n\n const disabled = busy || sharing.refreshing;\n const run = (action: () => Promise<void>): void => {\n setBusy(true);\n action()\n .then(() => setChosenRelationshipId(undefined))\n // A refusal was reported by the request's own error handling; the section re-reads either way.\n .catch(() => undefined)\n .finally(() => setBusy(false));\n };\n const shareOperation = findRelationshipOperation(registry, OrganizationRelationships_Operations.SHARE_RECORD);\n const requestShare = (relationshipId: string): void => {\n if (isRiskyResourceOperation(shareOperation?.riskLevel)) setConfirmingRelationshipId(relationshipId);\n else run(() => sharing.share(relationshipId));\n };\n\n return (\n <section\n data-slot=\"record-sharing-section\"\n data-inline-size-tier={responsiveMaxWidth}\n className={cn('mr-auto w-full flex flex-col gap-field-sm', className)}\n style={optionalMaxInlineSizeStyle(responsiveMaxWidth)}\n >\n <Heading level={headingLevel}>{label('title')}</Heading>\n <Card className=\"rounded-xl p-0 overflow-hidden divide-y divide-border\">\n {sharing.readState === RecordSharingReadState.FAILED ? (\n <div className=\"px-card py-card\">\n <Text variant={TextVariant.MUTED} size={TextSize.SM}>{label('readFailed')}</Text>\n </div>\n ) : (\n <>\n <div className=\"flex flex-col gap-element-xs px-card py-card\">\n <Text size={TextSize.SM}>\n {sharing.viaRelationshipId === null ? label('ownRecord') : label('createdThrough', { relationship: nameOf(sharing.viaRelationshipId) })}\n </Text>\n {sharing.viaRelationshipId !== null && !creatingRelationship?.confersNow && (\n <Text variant={TextVariant.MUTED} size={TextSize.SM}>{label('relationshipInactive')}</Text>\n )}\n {/* It confers, and its people still cannot read the record (#2736 review I6): created through it is not read by it. */}\n {sharing.viaRelationshipId !== null && creatingRelationship?.confersNow && !creatingRelationship.rolesReachRecord && (\n <Text variant={TextVariant.MUTED} size={TextSize.SM}>{label('creatorCannotRead')}</Text>\n )}\n <Text variant={TextVariant.MUTED} size={TextSize.SM}>\n {sharing.commonToEveryRelationship ? label('commonToEveryRelationship') : unreadable ? label('notReadableByRelationships') : label('description')}\n </Text>\n {alreadyReading.length > 0 && !sharing.commonToEveryRelationship && (\n <Text variant={TextVariant.MUTED} size={TextSize.SM}>\n {label('alreadyReadBy', { relationships: formatList(alreadyReading.map((relationship) => nameOf(relationship.relationshipId))) })}\n </Text>\n )}\n </div>\n {sharing.sharedWithRelationshipIds.length === 0 ? (\n <div className=\"px-card py-card\">\n <Text variant={TextVariant.MUTED} size={TextSize.SM}>{label('notShared')}</Text>\n </div>\n ) : sharing.sharedWithRelationshipIds.map((relationshipId) => {\n const note = shareNote(relationshipId);\n return (\n <div\n key={relationshipId}\n data-slot=\"record-sharing-share\"\n className=\"flex flex-col gap-field px-card py-card sm:flex-row sm:items-center sm:justify-between\"\n >\n <div className=\"flex flex-col gap-element-xs\">\n <Strong>{nameOf(relationshipId)}</Strong>\n {note !== undefined && <Text variant={TextVariant.MUTED} size={TextSize.SM}>{note}</Text>}\n </div>\n <Button\n variant={ButtonVariants_Variant.OUTLINE}\n disabled={disabled}\n onClick={() => run(() => sharing.unshare(relationshipId))}\n className=\"shrink-0 self-start sm:self-auto\"\n >\n {label('withdraw')}\n </Button>\n </div>\n );\n })}\n {shareable.length > 0 && (\n <div className=\"flex flex-col gap-field px-card py-card sm:flex-row sm:items-center\">\n <Select\n name=\"recordSharingRelationship\"\n schema={z.string()}\n options={shareable.map((relationship) => ({ value: relationship.relationshipId, label: nameOf(relationship.relationshipId) }))}\n value={chosenRelationshipId}\n onChange={setChosenRelationshipId}\n placeholder={label('chooseRelationship')}\n size={ControlSize.SM}\n disabled={disabled}\n />\n <Button\n variant={ButtonVariants_Variant.SECONDARY}\n disabled={disabled || !chosenRelationshipId}\n onClick={() => { if (chosenRelationshipId) requestShare(chosenRelationshipId); }}\n className=\"shrink-0 self-start sm:self-auto\"\n >\n {label('share')}\n </Button>\n </div>\n )}\n </>\n )}\n </Card>\n {confirmingRelationshipId !== undefined && (\n <OperationsConfirmCritical\n open\n onOpenChange={(open: boolean) => { if (!open) setConfirmingRelationshipId(undefined); }}\n cancelCallback={() => setConfirmingRelationshipId(undefined)}\n validationCallback={() => {\n const relationshipId = confirmingRelationshipId;\n setConfirmingRelationshipId(undefined);\n run(() => sharing.share(relationshipId));\n }}\n label={label('confirmShareTitle', { relationship: nameOf(confirmingRelationshipId) })}\n description={label('confirmShareDescription')}\n confirmLabel={label('share')}\n />\n )}\n </section>\n );\n};\n\nexport function ResourceLayout_RecordSharing({ preset = CorePresetNames.DEFAULT, ...props }: ResourceLayoutPreset_RecordSharing_DefaultProps & ComponentPresetProps): React.JSX.Element {\n const Component = createComponentResolver<ResourceLayoutPreset_RecordSharing_DefaultProps>(FrontendComponentType.RESOURCES_LAYOUTS_RECORD_SHARING, 'ResourceLayout_RecordSharing')(preset);\n return <Component {...props} />;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ResourceLayout_RecordSharing.js","sourceRoot":"","sources":["../../../../src/components/resources/ResourceLayout_RecordSharing.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,gBAAgB,EAChB,oCAAoC,EACpC,+CAA+C,EAC/C,qCAAqC,GACtC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,qBAAqB,EAA2B,MAAM,qCAAqC,CAAC;AAEnI,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,MAAM,EAAE,MAAM,0DAA0D,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,8CAA8C,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,kEAAkE,CAAC;AAC3G,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AACrG,OAAO,EAAE,yBAAyB,EAAE,MAAM,qEAAqE,CAAC;AAChH,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,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BAAuB,CAAkD,qBAAqB,CAAC,gCAAgC,EAAE,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;IAC3L,OAAO,KAAC,SAAS,OAAK,KAAK,GAAI,CAAC;AAClC,CAAC","sourcesContent":["import React, { useContext, useMemo, useState } from 'react';\nimport { z } from 'zod';\n\nimport {\n CoreResourceType,\n OrganizationRelationships_Operations,\n RELATIONSHIP_COMMON_RECORDS_FORBIDDEN_RESOURCES,\n resourceCarriesRelationshipProvenance,\n} from '@wildo-ai/saas-models';\nimport { ControlSize, CorePresetNames, FrontendComponentType, type ResponsiveMaxWidth } from '@wildo-ai/presets-components-models';\n\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { Select } from '~wildo-frontend-lib/components/form/controls/enum/select';\nimport { Card } from '~wildo-frontend-lib/components/sections/card';\nimport { optionalMaxInlineSizeStyle } from '~wildo-frontend-lib/components/sections/surface';\nimport { Heading } from '~wildo-frontend-lib/components/typography/heading';\nimport { useDocumentHeadingLevel } from '~wildo-frontend-lib/components/typography/document-heading-level';\nimport { Strong, Text, TextSize, TextVariant } from '~wildo-frontend-lib/components/typography/text';\nimport { OperationsConfirmCritical } from '~wildo-frontend-lib/components/feedback/operations-confirm-critical';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { ResourceRegistryContext } from '~wildo-frontend-lib/core/resources/ResourceRegistryContext';\nimport type { FrontendResourceConfiguration_Operation, FrontendResourcesRegistry } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { isRiskyResourceOperation } from '~wildo-frontend-lib/core/resources/operation-semantics.frontend.utils';\nimport { resolveRecordOrganizationId } from '~wildo-frontend-lib/core/resources/resource-addressability.frontend.utils';\nimport {\n RecordSharingReadState,\n findRelationshipOperation,\n useRecordSharing,\n type RecordSharingRelationship,\n} from '~wildo-frontend-lib/core/resources/useRecordSharing';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { useRelationshipSideCapabilities, useViewerEffectiveRolesInOrganization } from '~wildo-frontend-lib/core/navigation/launcher-runtime-availability';\nimport { viewerMayPerformOperation } from '~wildo-frontend-lib/core/navigation/launcher-resolution';\nimport { type LauncherEffectiveRoles } from '~wildo-frontend-lib/core/navigation/viewer-roles';\nimport { RelationshipSideCapability } from '~wildo-frontend-lib/core/config/relationship-side-capabilities.frontend.utils';\nimport { ComponentPresetProps } from '~wildo-frontend-lib/core/components-registry/component-registry.frontend.schemas';\nimport { createComponentResolver } from '~wildo-frontend-lib/core/components-registry/component-resolver.frontend.helper';\nimport { BaseResourcesLayoutProps } from './component-props.resources-layout.frontend.schemas';\n\n// --- Contract ---\nexport interface ResourceLayoutPreset_RecordSharing_DefaultProps extends BaseResourcesLayoutProps {\n /** The loaded record: its id names the record the sharing is about. */\n currentObject?: Record<string, any>;\n className?: string;\n /** How wide the section may grow, in the framework's shared width vocabulary; unset, the host decides (as the danger zone). */\n responsiveMaxWidth?: ResponsiveMaxWidth;\n}\n\n/** The record's id as the read page loaded it: `_id`, else the resource's own identifier field. */\nfunction recordIdOf(currentObject: Record<string, unknown> | undefined, resourceFieldIdentifier: string | undefined): string | undefined {\n const candidate = currentObject?._id ?? (resourceFieldIdentifier ? currentObject?.[resourceFieldIdentifier] : undefined);\n return (typeof candidate === 'string' || typeof candidate === 'number') && String(candidate).length > 0 ? String(candidate) : undefined;\n}\n\n/**\n * Whether the record page offers its sharing section (#2736). Every condition is one the backend also decides, so the\n * section never offers what the verbs would refuse:\n *\n * - the resource separates its records between relationships (`resourceCarriesRelationshipProvenance`) and is not one\n * that issues or attests authority (`RELATIONSHIP_COMMON_RECORDS_FORBIDDEN_RESOURCES`), exactly the share verbs' rule;\n * - the record belongs to the CURRENT organization and that organization's type grants in some relationship kind: the\n * side capability is derived for the current organization, so a record of another organization (a platform operator\n * reading a tenant from the directory) is not offered;\n * - the sharing read and both share verbs are registered in this frontend;\n * - the viewer may perform the read and the share there, by the registry's own roles (organization administrators,\n * which no relationship confers).\n *\n * A resource the backend still declines (a system of record's rows) is found by the read itself, which answers\n * `RELATIONSHIP_RECORD_NOT_SHAREABLE`: the section then stays hidden.\n */\nexport function isRecordSharingOffered(input: {\n readonly registry: FrontendResourcesRegistry | undefined;\n readonly resourceType: string;\n readonly recordId: string | undefined;\n readonly recordOrganizationId: string | undefined;\n readonly currentOrganizationId: string | undefined;\n readonly grants: boolean;\n readonly viewer: LauncherEffectiveRoles;\n}): boolean {\n const configuration = input.registry?.resourceConfigurations[input.resourceType];\n if (!configuration || !resourceCarriesRelationshipProvenance(input.resourceType, configuration.resourcePrimaryScope)) return false;\n if (RELATIONSHIP_COMMON_RECORDS_FORBIDDEN_RESOURCES.includes(input.resourceType)) return false;\n if (!input.recordId || !input.currentOrganizationId || input.recordOrganizationId !== input.currentOrganizationId) return false;\n if (!input.grants) return false;\n const relationshipsScope = input.registry?.resourceConfigurations[CoreResourceType.ORGANIZATION_RELATIONSHIPS]?.resourcePrimaryScope;\n const may = (operation: FrontendResourceConfiguration_Operation | undefined): boolean => !!operation && viewerMayPerformOperation(\n { ...operation, resourceType: CoreResourceType.ORGANIZATION_RELATIONSHIPS, resourcePrimaryScope: relationshipsScope },\n input.viewer,\n );\n return may(findRelationshipOperation(input.registry, OrganizationRelationships_Operations.READ_RECORD_SHARING))\n && may(findRelationshipOperation(input.registry, OrganizationRelationships_Operations.SHARE_RECORD))\n && !!findRelationshipOperation(input.registry, OrganizationRelationships_Operations.UNSHARE_RECORD);\n}\n\n/**\n * The record page's sharing section (#2736): whose the record is, which of the organization's relationships it is\n * shared with, and the administrator's share / withdraw. Mounted by the default read layout beside the danger zone, and\n * hidden wherever {@link isRecordSharingOffered} is false, while the read is in flight, for a resource the backend does\n * not share, and where there is nothing to say: the organization's own record, with no share to withdraw, none to offer\n * and no relationship reading it. A failed read says so and offers nothing.\n *\n * Every claim is the read's answer, decided by the engine per relationship (`describeRelationshipRecordReach`, #2736\n * review N1, N2): a share is offered only to a relationship whose people it would let read the record (#2617: the\n * organization may share one representing organization's record with another), confirmed first when the share verb is\n * risky (HIGH). A relationship that reads the record without a share (the one it was created through, one whose kind\n * reads the organization's own records, every one for a resource declared common) is named as reading it. A share\n * already made is always listed with its withdraw, marked when it changes nothing: its relationship confers nothing\n * now, reads the record anyway, or cannot read this record at all (its roles, or its units, do not reach it).\n */\nexport const ResourceLayoutPreset_RecordSharing_Default = ({\n resourceContext,\n currentObject,\n className,\n responsiveMaxWidth,\n}: ResourceLayoutPreset_RecordSharing_DefaultProps): React.JSX.Element | null => {\n const { resourceType } = resourceContext;\n // The panel's title takes the outline's level on the record page, never a fixed `h3` under the title's `h1` (#3867).\n const headingLevel = useDocumentHeadingLevel();\n const { tComponent, formatList } = useI18n({ component: FrontendComponentType.RESOURCES_LAYOUTS_RECORD_SHARING, resource: resourceType });\n // Every word here is a declared label (`ResourceLayout_RecordSharing.labels.ts`); an ungenerated one renders as its key.\n const label = (key: string, params?: Record<string, string>): string => tComponent(FrontendComponentType.RESOURCES_LAYOUTS_RECORD_SHARING, key, params);\n\n // The context itself rather than the throwing hook: a read layout rendered outside the registry provider offers nothing.\n const registry = useContext(ResourceRegistryContext)?.registry;\n const currentOrganizationId = useAppScopeSafe()?.currentOrganizationId ?? undefined;\n const recordId = recordIdOf(currentObject, registry?.resourceConfigurations[resourceType]?.resourceFieldIdentifier);\n // The row's own organization, else the one the page's context names. Never assumed to be the current organization: a\n // record nothing places is not offered (#2736 review F6, N9).\n const recordOrganizationId = (typeof currentObject?.organizationId === 'string' && currentObject.organizationId.length > 0 ? currentObject.organizationId : undefined)\n ?? resolveRecordOrganizationId(resourceType, recordId, resourceContext.contextResourceIdentifiers);\n const viewer = useViewerEffectiveRolesInOrganization(recordOrganizationId);\n const grants = useRelationshipSideCapabilities()[RelationshipSideCapability.GRANTS];\n const offered = isRecordSharingOffered({ registry, resourceType, recordId, recordOrganizationId, currentOrganizationId, grants, viewer });\n\n const sharing = useRecordSharing({ enabled: offered, organizationId: recordOrganizationId, resourceType, recordId });\n const [chosen, setChosenRelationshipId] = useState<string | undefined>(undefined);\n const [confirming, setConfirmingRelationshipId] = useState<string | undefined>(undefined);\n const [busy, setBusy] = useState(false);\n // A choice, and an open confirmation, belong to the record they were made on (#2736 review N6, I4, re-review F1). They\n // are cleared DURING the render that meets another record, which React redoes before committing, so no frame shows\n // them there, and coming back to the first record does not bring them back.\n const recordKey = `${resourceType}|${recordId ?? ''}`;\n const [choiceRecordKey, setChoiceRecordKey] = useState(recordKey);\n if (choiceRecordKey !== recordKey) {\n setChoiceRecordKey(recordKey);\n setChosenRelationshipId(undefined);\n setConfirmingRelationshipId(undefined);\n }\n\n const byId = useMemo(\n () => new Map<string, RecordSharingRelationship>(sharing.relationships.map((relationship) => [relationship.relationshipId, relationship])),\n [sharing.relationships],\n );\n const nameOf = (relationshipId: string): string => byId.get(relationshipId)?.name ?? label('unnamedRelationship');\n const shareable = sharing.relationships.filter((relationship) => relationship.wouldReadIfShared\n && !sharing.sharedWithRelationshipIds.includes(relationship.relationshipId));\n // A choice counts only while the latest answer still offers it, so Share never acts on a relationship the screen no\n // longer offers. Once an answer has SETTLED (not loading, not mid re-read), a choice or an open confirmation it does not\n // offer is CLEARED, during this render, not merely hidden: hidden, a later answer offering the relationship again\n // would bring the choice back and reopen the HIGH-risk confirmation with nobody asking (#2736 re-review R1).\n const isOffered = (relationshipId: string | undefined): relationshipId is string =>\n relationshipId !== undefined && shareable.some((relationship) => relationship.relationshipId === relationshipId);\n // Settled: not another record's read, and not a re-read. The hook keeps the last answer unchanged while it re-reads, so\n // today a re-read never withdraws an offer; the condition is kept so a future hook that does cannot clear a choice the\n // person is still looking at (#2736 re-review C).\n const answerSettled = sharing.readState !== RecordSharingReadState.LOADING && !sharing.refreshing;\n if (answerSettled && chosen !== undefined && !isOffered(chosen)) setChosenRelationshipId(undefined);\n if (answerSettled && confirming !== undefined && !isOffered(confirming)) setConfirmingRelationshipId(undefined);\n // No separate filter at read: React redoes this render with the cleared state before committing it, and while an\n // answer is not settled the last one stays on screen (a re-read) or nothing is shown (another record's read), so a\n // choice the screen does not offer is never drawn.\n const chosenRelationshipId = chosen;\n const confirmingRelationshipId = confirming;\n // Those reading the record without a share, the one it was created through aside: its own line names it.\n const alreadyReading = sharing.relationships.filter((relationship) => relationship.readsWithoutShare\n && relationship.relationshipId !== sharing.viaRelationshipId);\n const conferring = sharing.relationships.filter((relationship) => relationship.confersNow);\n const unreadable = !sharing.commonToEveryRelationship && conferring.length > 0 && conferring.every((relationship) => !relationship.rolesReachRecord);\n const creatingRelationship = sharing.viaRelationshipId === null ? undefined : byId.get(sharing.viaRelationshipId);\n /** Why a share already made changes nothing, when it does not. */\n const shareNote = (relationshipId: string): string | undefined => {\n const relationship = byId.get(relationshipId);\n if (!relationship?.confersNow) return label('relationshipInactive');\n if (relationship.readsWithoutShare) return label('readsWithoutShare');\n if (!relationship.rolesReachRecord) return label('shareHasNoEffect');\n return undefined;\n };\n\n if (!offered) return null;\n if (sharing.readState !== RecordSharingReadState.READY && sharing.readState !== RecordSharingReadState.FAILED) return null;\n // The organization's own record, shared with nobody, offered to nobody and read by no relationship: nothing to say.\n if (sharing.readState === RecordSharingReadState.READY && sharing.viaRelationshipId === null\n && sharing.sharedWithRelationshipIds.length === 0 && shareable.length === 0 && alreadyReading.length === 0) return null;\n\n const disabled = busy || sharing.refreshing;\n const run = (action: () => Promise<void>): void => {\n setBusy(true);\n action()\n .then(() => setChosenRelationshipId(undefined))\n // A refusal was reported by the request's own error handling; the section re-reads either way.\n .catch(() => undefined)\n .finally(() => setBusy(false));\n };\n const shareOperation = findRelationshipOperation(registry, OrganizationRelationships_Operations.SHARE_RECORD);\n const requestShare = (relationshipId: string): void => {\n if (isRiskyResourceOperation(shareOperation?.riskLevel)) setConfirmingRelationshipId(relationshipId);\n else run(() => sharing.share(relationshipId));\n };\n\n return (\n <section\n data-slot=\"record-sharing-section\"\n data-inline-size-tier={responsiveMaxWidth}\n className={cn('mr-auto w-full flex flex-col gap-field-sm', className)}\n style={optionalMaxInlineSizeStyle(responsiveMaxWidth)}\n >\n <Heading level={headingLevel}>{label('title')}</Heading>\n <Card className=\"rounded-xl p-0 overflow-hidden divide-y divide-border\">\n {sharing.readState === RecordSharingReadState.FAILED ? (\n <div className=\"px-card py-card\">\n <Text variant={TextVariant.MUTED} size={TextSize.SM}>{label('readFailed')}</Text>\n </div>\n ) : (\n <>\n <div className=\"flex flex-col gap-element-xs px-card py-card\">\n <Text size={TextSize.SM}>\n {sharing.viaRelationshipId === null ? label('ownRecord') : label('createdThrough', { relationship: nameOf(sharing.viaRelationshipId) })}\n </Text>\n {sharing.viaRelationshipId !== null && !creatingRelationship?.confersNow && (\n <Text variant={TextVariant.MUTED} size={TextSize.SM}>{label('relationshipInactive')}</Text>\n )}\n {/* It confers, and its people still cannot read the record (#2736 review I6): created through it is not read by it. */}\n {sharing.viaRelationshipId !== null && creatingRelationship?.confersNow && !creatingRelationship.rolesReachRecord && (\n <Text variant={TextVariant.MUTED} size={TextSize.SM}>{label('creatorCannotRead')}</Text>\n )}\n <Text variant={TextVariant.MUTED} size={TextSize.SM}>\n {sharing.commonToEveryRelationship ? label('commonToEveryRelationship') : unreadable ? label('notReadableByRelationships') : label('description')}\n </Text>\n {alreadyReading.length > 0 && !sharing.commonToEveryRelationship && (\n <Text variant={TextVariant.MUTED} size={TextSize.SM}>\n {label('alreadyReadBy', { relationships: formatList(alreadyReading.map((relationship) => nameOf(relationship.relationshipId))) })}\n </Text>\n )}\n </div>\n {sharing.sharedWithRelationshipIds.length === 0 ? (\n <div className=\"px-card py-card\">\n <Text variant={TextVariant.MUTED} size={TextSize.SM}>{label('notShared')}</Text>\n </div>\n ) : sharing.sharedWithRelationshipIds.map((relationshipId) => {\n const note = shareNote(relationshipId);\n return (\n <div\n key={relationshipId}\n data-slot=\"record-sharing-share\"\n className=\"flex flex-col gap-field px-card py-card sm:flex-row sm:items-center sm:justify-between\"\n >\n <div className=\"flex flex-col gap-element-xs\">\n <Strong>{nameOf(relationshipId)}</Strong>\n {note !== undefined && <Text variant={TextVariant.MUTED} size={TextSize.SM}>{note}</Text>}\n </div>\n <Button\n variant={ButtonVariants_Variant.OUTLINE}\n disabled={disabled}\n onClick={() => run(() => sharing.unshare(relationshipId))}\n className=\"shrink-0 self-start sm:self-auto\"\n >\n {label('withdraw')}\n </Button>\n </div>\n );\n })}\n {shareable.length > 0 && (\n <div className=\"flex flex-col gap-field px-card py-card sm:flex-row sm:items-center\">\n <Select\n name=\"recordSharingRelationship\"\n schema={z.string()}\n options={shareable.map((relationship) => ({ value: relationship.relationshipId, label: nameOf(relationship.relationshipId) }))}\n value={chosenRelationshipId}\n onChange={setChosenRelationshipId}\n placeholder={label('chooseRelationship')}\n size={ControlSize.SM}\n disabled={disabled}\n />\n <Button\n variant={ButtonVariants_Variant.SECONDARY}\n disabled={disabled || !chosenRelationshipId}\n onClick={() => { if (chosenRelationshipId) requestShare(chosenRelationshipId); }}\n className=\"shrink-0 self-start sm:self-auto\"\n >\n {label('share')}\n </Button>\n </div>\n )}\n </>\n )}\n </Card>\n {confirmingRelationshipId !== undefined && (\n <OperationsConfirmCritical\n open\n onOpenChange={(open: boolean) => { if (!open) setConfirmingRelationshipId(undefined); }}\n cancelCallback={() => setConfirmingRelationshipId(undefined)}\n validationCallback={() => {\n const relationshipId = confirmingRelationshipId;\n setConfirmingRelationshipId(undefined);\n run(() => sharing.share(relationshipId));\n }}\n label={label('confirmShareTitle', { relationship: nameOf(confirmingRelationshipId) })}\n description={label('confirmShareDescription')}\n confirmLabel={label('share')}\n />\n )}\n </section>\n );\n};\n\nexport function ResourceLayout_RecordSharing({ preset = CorePresetNames.DEFAULT, ...props }: ResourceLayoutPreset_RecordSharing_DefaultProps & ComponentPresetProps): React.JSX.Element {\n const Component = createComponentResolver<ResourceLayoutPreset_RecordSharing_DefaultProps>(FrontendComponentType.RESOURCES_LAYOUTS_RECORD_SHARING, 'ResourceLayout_RecordSharing')(preset);\n return <Component {...props} />;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceLayout_Search.d.ts","sourceRoot":"","sources":["../../../../src/components/resources/ResourceLayout_Search.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ResourceLayout_Search.d.ts","sourceRoot":"","sources":["../../../../src/components/resources/ResourceLayout_Search.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAoBjF,OAAO,EAML,QAAQ,EACT,MAAM,uBAAuB,CAAC;AAwB/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,kFAAkF,CAAA;AAOvH,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAA;AAS9F,MAAM,WAAW,wCAAyC,SAAQ,wBAAwB;IACxF,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AASD,eAAO,MAAM,mCAAmC,GAAI,mFAKjD,wCAAwC,KAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAioBjE,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,wCAAwC,GAAG,oBAAoB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA8B9I"}
|
|
@@ -7,6 +7,8 @@ import { FrontendEvents } from '../../core/events/events.frontend.schemas.js';
|
|
|
7
7
|
import { useIconRegistry } from '../../core/icons/useIconRegistry.js';
|
|
8
8
|
import { useResourceRegistry } from '../../core/resources/useResourceRegistry.js';
|
|
9
9
|
import { frontendResourceUtils, FrontendResourceUtils } from '../../core/resources/frontend-resource.utils.js';
|
|
10
|
+
import { useViewerCollectionControls, useViewerSummaryFields, ViewerFieldReaderProvider } from '../../core/navigation/viewer-field-reader.js';
|
|
11
|
+
import { resolveActionSurfaceOrganizationId } from '../../core/resources/useResourceOperationActions.js';
|
|
10
12
|
import { useResourceOperationSurface } from '../../core/resources/useResourceOperationSurface.js';
|
|
11
13
|
import { FrontendComponentType, UIBehavior, InteractiveVariant } from '@wildo-ai/presets-components-models';
|
|
12
14
|
import { useUI } from '../../core/ui/useUI.js';
|
|
@@ -156,9 +158,8 @@ export const ResourceLayoutPreset_Search_Default = ({ resourceContext, navigatio
|
|
|
156
158
|
// isSearchable defaults to true when a SEARCH operation exists (factory default)
|
|
157
159
|
// When false, the search bar is hidden but filters/sort/results still render
|
|
158
160
|
const isSearchable = useMemo(() => ResourceLayoutUtils.searchOperationAcceptsATerm(operation), [operation]);
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}, [resourceConfig]);
|
|
161
|
+
// Without a field the viewer may not read (`.readableBy`, #4434): no column, rather than a column of empty cells.
|
|
162
|
+
const summaryFields = useViewerSummaryFields(resourceConfig);
|
|
162
163
|
// Resolve i18n field labels for summary fields
|
|
163
164
|
const resultsLabel = useMemo(() => resolveComponentLabel({
|
|
164
165
|
tComponent,
|
|
@@ -191,7 +192,7 @@ export const ResourceLayoutPreset_Search_Default = ({ resourceContext, navigatio
|
|
|
191
192
|
// Transport context: exclude transport-pinned fields (primary-scope FK +
|
|
192
193
|
// selected-route URL parameters) and classify FK fields as reference
|
|
193
194
|
// selectors. See FilterFieldTransportContext.
|
|
194
|
-
const { sortFields, filterFields
|
|
195
|
+
const { sortFields: declaredSortFields, filterFields: declaredFilterFields } = useMemo(() => {
|
|
195
196
|
const searchOp = operation;
|
|
196
197
|
const sortFields = searchOp?.sortFields ?? [];
|
|
197
198
|
const filterFields = ResourceLayoutUtils.parseFilterFieldDefinitions(searchOp?.filterFields, resourceConfig
|
|
@@ -205,10 +206,12 @@ export const ResourceLayoutPreset_Search_Default = ({ resourceContext, navigatio
|
|
|
205
206
|
: undefined);
|
|
206
207
|
// A field the host pinned is not the reader's to filter (#1630): its value is fixed on every fetch.
|
|
207
208
|
const readerFilterFields = ResourceLayoutUtils.withoutPinnedFilterFields(filterFields, resourceContext.pinnedFilters);
|
|
208
|
-
|
|
209
|
-
const filtersEnabled = readerFilterFields.length > 0;
|
|
210
|
-
return { sortFields, filterFields: readerFilterFields, filtersEnabled };
|
|
209
|
+
return { sortFields, filterFields: readerFilterFields };
|
|
211
210
|
}, [operation, registry, resourceConfig, contextualParameters, resourceContext.parentResourcesRequirements, resourceContext.pinnedFilters]);
|
|
211
|
+
// Without a field the viewer may not read (`.readableBy`, #4434): no sort key and no filter.
|
|
212
|
+
const { sortFields, filterFields } = useViewerCollectionControls(resourceConfig, declaredSortFields, declaredFilterFields);
|
|
213
|
+
// SEARCH doesn't have filtersEnabled; show filters when filterFields exist
|
|
214
|
+
const filtersEnabled = filterFields.length > 0;
|
|
212
215
|
// Extract dataMode: Component prop > Query param > Backend default
|
|
213
216
|
const dataMode = useMemo(() => {
|
|
214
217
|
return frontendResourceUtils.extractDataMode(searchParams, propDataMode);
|
|
@@ -449,6 +452,7 @@ export function ResourceLayout_Search({ preset, ...props }) {
|
|
|
449
452
|
// the spacing a parent puts between its children; a flex column that grows, so a destination declaring
|
|
450
453
|
// `zoneContentFillsHeight` still reaches a preset or custom view whose root fills it (`flex-1 min-h-0`).
|
|
451
454
|
// Inside an ordinary block parent `flex-1` does nothing.
|
|
452
|
-
|
|
455
|
+
// The field reader is provided for the organization the search is addressed in (#4434 review F2), as in the list.
|
|
456
|
+
return (_jsx(InPlaceOperationProvider, { resourceType: props.resourceContext.resourceType, children: _jsx(ViewerFieldReaderProvider, { organizationId: resolveActionSurfaceOrganizationId(props.resourceContext.contextResourceIdentifiers, undefined) ?? undefined, children: _jsx("div", { className: "flex min-h-0 flex-1 flex-col", [COLLECTION_SURFACE_ATTRIBUTE]: true, children: body }) }) }));
|
|
453
457
|
}
|
|
454
458
|
//# sourceMappingURL=ResourceLayout_Search.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceLayout_Search.js","sourceRoot":"","sources":["../../../../src/components/resources/ResourceLayout_Search.tsx"],"names":[],"mappings":";AAA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C,KAAK,CAAC,aAAa,CACjB,uBAAuB,CAA2C,qBAAqB,CAAC,wBAAwB,EAAE,uBAAuB,CAAC,CAAC,cAAc,CAAC,EAC1J,KAAK,CACN,CAAC;IAEN,kGAAkG;IAClG,mGAAmG;IACnG,+FAA+F;IAC/F,kGAAkG;IAClG,mHAAmH;IACnH,mHAAmH;IACnH,qHAAqH;IACrH,uGAAuG;IACvG,yGAAyG;IACzG,yDAAyD;IACzD,OAAO,CACL,KAAC,wBAAwB,IAAC,YAAY,EAAE,KAAK,CAAC,eAAe,CAAC,YAAY,YACxE,cAAK,SAAS,EAAC,8BAA8B,EAAO,CAAC,4BAA4B,CAAC,EAAE,IAAI,YAAK,IAAI,GAAO,GAC/E,CAC5B,CAAC;AACJ,CAAC","sourcesContent":["import React, { useCallback, useMemo, useEffect, useState, useRef } from 'react';\n\nimport { COLLECTION_SURFACE_ATTRIBUTE } from '~wildo-frontend-lib/components/resources/skeleton/DisplayLayout';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { useEventBus } from '~wildo-frontend-lib/core/events/useEventBus';\nimport { FrontendEvents } from '~wildo-frontend-lib/core/events/events.frontend.schemas';\nimport { useIconRegistry } from '~wildo-frontend-lib/core/icons/useIconRegistry';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { frontendResourceUtils, FrontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { useResourceOperationSurface } from '~wildo-frontend-lib/core/resources/useResourceOperationSurface';\nimport { FrontendComponentType, UIBehavior, InteractiveVariant } from '@wildo-ai/presets-components-models';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport { Button } from '~wildo-frontend-lib/components/actions/button';\nimport { InputRoot } from '~wildo-frontend-lib/components/form/controls/input';\nimport { ResourceListItemRenderer } from '~wildo-frontend-lib/components/resources/ResourceListItemRenderer';\nimport { ResourceInPlaceOperationRow } from '~wildo-frontend-lib/components/resources/ResourceInPlaceOperationRow';\nimport { InPlaceOperationProvider, useInPlaceOperation } from '~wildo-frontend-lib/core/resources/in-place/InPlaceOperationContext';\nimport { ResourceLayoutUtils } from '~wildo-frontend-lib/components/resources/resourceLayout.utils';\nimport {\n CoreResourceOperation,\n ResourcesConfig_OperationPathUtils,\n ErrorCustomMessageReference,\n type Resources_PaginationMetadata,\n type Resources_PaginatedResult,\n DataMode,\n} from '@wildo-ai/saas-models';\nimport {\n CardLayoutStyle,\n} from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { useResourceSelection } from '~wildo-frontend-lib/core/resources/useResourceSelection';\nimport { ResourceLayout_OperationBulk } from '~wildo-frontend-lib/components/resources/ResourceLayout_OperationBulk';\nimport { CollectionSelectionControls } from '~wildo-frontend-lib/components/resources/CollectionSelectionControls';\nimport { CollectionSelectionBarDensityProvider, SelectionBarBackgroundRunState, useMeasuredSelectionBarDensity, useSelectionBarBulkHost } from '~wildo-frontend-lib/components/resources/collection-selection-bar-density';\nimport { CollectionSelectAllCheckbox, resolveCollectionSelectAllState } from '~wildo-frontend-lib/components/resources/CollectionSelectAllCheckbox';\nimport { resolveCardsContainerClass, resolveCardsGridStyle, CARDS_GRID_CELL_CLASS } from '~wildo-frontend-lib/components/resources/collection-card-layout.utils';\nimport { ResourceLayout_Header } from '~wildo-frontend-lib/components/resources/ResourceLayout_Header';\nimport { StandardIconReference, IconSize } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { ResourcesConfigOperationsUrlsBuilderUtils } from '@wildo-ai/saas-models';\nimport { ResourceSearchCallParameters } from '~wildo-frontend-lib/core/requests/wildo-http-client-resources.frontend.service';\nimport { useSearchParams } from 'react-router';\nimport { type DisplayableError, extractErrorInfo } from '~wildo-frontend-lib/core/errors/errors.frontend.schemas';\nimport { useUserFacingErrorMessage } from '~wildo-frontend-lib/core/errors/useUserFacingErrorMessage';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\nimport { ResourceLayout_Pagination } from '~wildo-frontend-lib/components/resources/ResourceLayout_Pagination';\nimport { ResourceLayout_SortControl, type SortState } from '~wildo-frontend-lib/components/resources/ResourceLayout_SortControl';\nimport { ResourceLayout_FiltersControl, type FilterValues } from '~wildo-frontend-lib/components/resources/ResourceLayout_FiltersControl';\nimport { ErrorDisplay } from '~wildo-frontend-lib/components/feedback/error-display';\nimport { Skeleton } from '~wildo-frontend-lib/components/feedback/skeleton';\n\nimport { ComponentPresetProps } from '~wildo-frontend-lib/core/components-registry/component-registry.frontend.schemas'\nimport { createComponentResolver } from '~wildo-frontend-lib/core/components-registry/component-resolver.frontend.helper'\nimport { CorePreset_ResourceLayout_Search } from '@wildo-ai/presets-components-models'\nimport {\n resolveResourceOperationPresetKey,\n resolveResourceOperationCustomView,\n} from '~wildo-frontend-lib/core/resources/resource-operation-view.frontend.utils';\nimport { BaseResourcesLayoutProps } from './component-props.resources-layout.frontend.schemas'\nimport { LoadingGate } from '~wildo-frontend-lib/core/loading/LoadingGate';\nimport { useComponentLoading } from '~wildo-frontend-lib/core/loading/useComponentLoading';\nimport { buildResourceLoadingScope } from '~wildo-frontend-lib/core/loading/loading-scope.frontend.utils';\nimport { resolveComponentLabel } from '~wildo-frontend-lib/core/i18n/component-label-resolution.utils';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { pickPreferredOperationForCoreSemanticAddressability } from '~wildo-frontend-lib/core/resources/resource-addressability.frontend.utils';\n\n// --- Contract ---\nexport interface ResourceLayoutPreset_Search_DefaultProps extends BaseResourcesLayoutProps {\n dataMode?: DataMode;\n}\n\nconst logger = LoggerFrontendService.getLogger();\n\ninterface SearchResult {\n id: string;\n [key: string]: any;\n}\n\nexport const ResourceLayoutPreset_Search_Default = ({\n resourceContext,\n navigationZone,\n navigationInitiator,\n dataMode: propDataMode,\n}: ResourceLayoutPreset_Search_DefaultProps): React.JSX.Element | null => {\n const {\n resourceType,\n operation,\n resourceConfig,\n operationInitiator,\n contextualParameters,\n navigateToResourceOperation,\n } = useResourceOperationSurface({\n resourceContext,\n navigationZone,\n navigationInitiator,\n });\n const { tComponent, tResourceFieldDisplay, tResourceFieldEnumValue } = useI18n({\n // LIST's vocabulary too: a search that matched nothing uses the same \"no matching items\" words the\n // list shows for its own narrowed-empty state.\n component: [FrontendComponentType.RESOURCES_LAYOUTS_SEARCH, FrontendComponentType.RESOURCES_LAYOUTS_LIST],\n resource: resourceType,\n });\n // Stable identity, so the search effect may call it without listing it.\n const toUserFacingErrorMessage = useUserFacingErrorMessage();\n const tc = (key: string) => tComponent(FrontendComponentType.RESOURCES_LAYOUTS_SEARCH, key);\n const { renderIcon } = useIconRegistry();\n const { getRecipe } = useUI();\n const ghostRecipe = getRecipe(UIBehavior.INTERACTIVE, InteractiveVariant.GHOST);\n const { registry, doOperation } = useResourceRegistry();\n const [searchParams] = useSearchParams();\n\n // Cards presentation + selection, authored on the SEARCH operation's\n // `collectionDisplayConfig` (parity with the LIST view). Search is cards-only\n // (no table body), so `cardLayout`/`selectable` apply directly to the results\n // list; `cardActionPlacement` is inert here (search cards render no per-item\n // operations today) but threaded for symmetry.\n const collectionDisplayConfig = operation.operationFrontendConfig?.collectionDisplayConfig;\n const cardLayout = collectionDisplayConfig?.cardLayout;\n const cardActionPlacement = collectionDisplayConfig?.cardActionPlacement;\n const selectionEnabled = collectionDisplayConfig?.selectable ?? false;\n const isCardGrid = cardLayout?.style === CardLayoutStyle.GRID;\n // Narrow the union once, then feed both the container class and the intrinsic\n // grid-template-columns style (container-responsive; collapses in narrow panes).\n const cardGridColumns = cardLayout?.style === CardLayoutStyle.GRID ? cardLayout.columns : undefined;\n // Key selection on the resource's addressable identifier (same field\n // navigation + the bulk payload use) — threaded to BOTH the hook and the bulk\n // bar so selection identity and bulk-target identity can never diverge.\n const selectionIdField = resourceConfig?.resourceFieldIdentifier as string | undefined;\n const selection = useResourceSelection<SearchResult>({ idField: selectionIdField });\n // Which result row, if any, is transformed by an INLINE action. Provided by the wrapper below.\n const inPlaceHost = useInPlaceOperation();\n\n // State\n const [searchQuery, setSearchQuery] = useState('');\n const [debouncedQuery, setDebouncedQuery] = useState('');\n const [results, setResults] = useState<SearchResult[]>([]);\n // The selection row never wraps: the count and the bulk actions it drives stay on one line, the actions\n // drawn denser until they fit (see `collection-selection-bar-density`), exactly as in the LIST toolbar.\n const selectionRowRef = useRef<HTMLDivElement>(null);\n const selectionBar = useMeasuredSelectionBarDensity(selectionRowRef, selection.selectionCount > 0);\n // The bulk bar outlives the selection: a background run it starts clears the selection and reports\n // its progress afterwards (`useSelectionBarBulkHost`, #1461).\n const bulkHost = useSelectionBarBulkHost(selection.selectionCount > 0);\n // Current-page select-all (additive; preserves any cross-page selection).\n const currentPageAllSelected = results.length > 0 && results.every((r) => selection.isSelected(r));\n const handleToggleAllCurrentPage = useCallback(() => {\n if (results.length > 0 && results.every((r) => selection.isSelected(r))) {\n results.forEach((r) => selection.deselectItem(r));\n } else {\n results.forEach((r) => selection.selectItem(r));\n }\n }, [results, selection]);\n const [error, setError] = useState<DisplayableError | null>(null);\n const [hasSearched, setHasSearched] = useState(false);\n const [pagination, setPagination] = useState<Resources_PaginationMetadata>(() => {\n const searchOp = operation as { pageSize?: number; maxPaginatedResultPerPageLimit?: number };\n const configuredPageSize = searchOp?.pageSize ?? 20;\n const maxLimit = searchOp?.maxPaginatedResultPerPageLimit;\n const pageSize = maxLimit ? Math.min(configuredPageSize, maxLimit) : configuredPageSize;\n return { page: 1, limit: pageSize, total: 0, totalPages: 0 };\n });\n const [isFetching, setIsFetching] = useState(false);\n // Multi-field sort, highest priority first. Empty = no sorting.\n const [sortStates, setSortStates] = useState<SortState[]>([]);\n const [filterValues, setFilterValues] = useState<FilterValues>({});\n\n // Clear selection when the visible result set is redefined by a new query or a\n // filter change — a stale selection would let the bulk bar act on records that\n // no longer match / are no longer shown. Pagination is intentionally excluded.\n useEffect(() => {\n selection.clearSelection();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [debouncedQuery, filterValues]);\n\n const i18nKeys = useMemo(() => [\n `resources.${resourceType}`,\n `components.${FrontendComponentType.RESOURCES_LAYOUTS_SEARCH}`,\n ], [resourceType]);\n\n // L-1: Tier-2 derived loading state. Distinguishes initial load (skeleton)\n // from refresh (subtle dim). Driven by the http client's resource loading\n // events (LOADING_RESOURCE_START/END) for this exact resource+operation.\n const operationIdForLoading = (operation as { operationIdentifier?: string })?.operationIdentifier ?? CoreResourceOperation.SEARCH;\n const { isInitialLoad, isRefreshing } = useComponentLoading(\n buildResourceLoadingScope({\n resourceType,\n operation: operationIdForLoading,\n }),\n );\n\n // Refs for stable function references and objects (avoid infinite loops)\n const doOperationRef = useRef(doOperation);\n const resourceContextRef = useRef(resourceContext);\n\n const sortStatesRef = useRef(sortStates);\n const filterValuesRef = useRef(filterValues);\n\n // Keep refs updated\n doOperationRef.current = doOperation;\n resourceContextRef.current = resourceContext;\n sortStatesRef.current = sortStates;\n filterValuesRef.current = filterValues;\n\n // Build stable key for context identifiers\n const contextResourceIdentifiersKey = useMemo(() => {\n return FrontendResourceUtils.buildContextResourceIdentifiersKey(resourceContext.contextResourceIdentifiers);\n }, [resourceContext.contextResourceIdentifiers]);\n\n // Determine if free-text search is enabled on this SEARCH operation\n // isSearchable defaults to true when a SEARCH operation exists (factory default)\n // When false, the search bar is hidden but filters/sort/results still render\n const isSearchable = useMemo(() => ResourceLayoutUtils.searchOperationAcceptsATerm(operation), [operation]);\n\n const summaryFields = useMemo<string[]>(() => {\n return ResourceLayoutUtils.detectSummaryFields(resourceConfig);\n }, [resourceConfig]);\n\n // Resolve i18n field labels for summary fields\n const resultsLabel = useMemo(\n () => resolveComponentLabel({\n tComponent,\n componentType: FrontendComponentType.RESOURCES_LAYOUTS_SEARCH,\n key: 'resultsLabel',\n }),\n [tComponent],\n );\n\n const fieldLabelsMap = useMemo<Record<string, string>>(() => {\n const result: Record<string, string> = {};\n for (const fieldName of summaryFields) {\n result[fieldName] = tResourceFieldDisplay(resourceType, fieldName, 'label');\n }\n return result;\n }, [summaryFields, resourceType, tResourceFieldDisplay]);\n\n const resolveReadOperationForIdentifiers = useCallback((\n contextResourceIdentifiers: typeof resourceContext.contextResourceIdentifiers,\n ) => {\n if (!resourceConfig) {\n return null;\n }\n\n return pickPreferredOperationForCoreSemanticAddressability({\n resourceConfig,\n operations: resourceConfig.operations ?? [],\n coreOperation: CoreResourceOperation.READ,\n registry,\n hasResourceId: frontendResourceUtils.getResourceId(contextResourceIdentifiers[resourceType]).length > 0,\n requireFrontendAddressable: true,\n contextResourceIdentifiers,\n contextualParameters: FrontendResourceUtils.buildContextualParameters(\n contextResourceIdentifiers,\n registry,\n ),\n }) ?? null;\n }, [registry, resourceConfig, resourceType]);\n\n // Read sortFields and filterFields from SEARCH operation directly.\n // Transport context: exclude transport-pinned fields (primary-scope FK +\n // selected-route URL parameters) and classify FK fields as reference\n // selectors. See FilterFieldTransportContext.\n const { sortFields, filterFields, filtersEnabled } = useMemo(() => {\n const searchOp = operation as { sortFields?: readonly string[]; filterFields?: Record<string, unknown> };\n const sortFields = searchOp?.sortFields ?? [];\n const filterFields = ResourceLayoutUtils.parseFilterFieldDefinitions(\n searchOp?.filterFields,\n resourceConfig\n ? {\n registry,\n resourceConfig,\n operation,\n contextualParameters,\n parentResourcesRequirements: resourceContext.parentResourcesRequirements,\n }\n : undefined,\n );\n // A field the host pinned is not the reader's to filter (#1630): its value is fixed on every fetch.\n const readerFilterFields = ResourceLayoutUtils.withoutPinnedFilterFields(filterFields, resourceContext.pinnedFilters);\n // SEARCH doesn't have filtersEnabled; show filters when filterFields exist\n const filtersEnabled = readerFilterFields.length > 0;\n return { sortFields, filterFields: readerFilterFields, filtersEnabled };\n }, [operation, registry, resourceConfig, contextualParameters, resourceContext.parentResourcesRequirements, resourceContext.pinnedFilters]);\n\n // Extract dataMode: Component prop > Query param > Backend default\n const dataMode = useMemo(() => {\n return frontendResourceUtils.extractDataMode(searchParams, propDataMode);\n }, [searchParams, propDataMode]);\n\n // Build operation path for SEARCH from the operation object on context\n const operationPathKey = useMemo(() => {\n return ResourcesConfig_OperationPathUtils.createOperationPathKeyFromOperation(operation);\n }, [operation]);\n // The listing \"select all matching\" names (#2718); none for a custom search-like operation, which offers no such\n // selection.\n const matchListing = ResourceLayoutUtils.matchListingOf(operation);\n\n // Debounce search query\n useEffect(() => {\n const timer = setTimeout(() => {\n setDebouncedQuery(searchQuery);\n }, 300);\n return () => clearTimeout(timer);\n }, [searchQuery]);\n\n // Stable sort key for fetch dedup\n const sortKey = sortStates.map(s => `${s.field}:${s.direction}`).join(',');\n const filterKey = useMemo(() => JSON.stringify(filterValues), [filterValues]);\n // Host-pinned filters (#1630) are part of the fetch identity: a host that re-pins refetches.\n const pinnedFiltersKey = useMemo(() => JSON.stringify(resourceContext.pinnedFilters ?? {}), [resourceContext.pinnedFilters]);\n\n // Announce this collection surface's ACTIVE FILTER SET. The surface states a\n // fact about itself and owns no scope semantics — `AppScopeContext` decides\n // whether a filter lands on a declared app-scope field (so the app-shell\n // scope control mirrors a listing filtered to one record).\n //\n // Emitted from ONE effect keyed on the serialized filter set rather than from\n // each setter: the panel, the quick-filter tabs and any future filter writer\n // all flow through this single announcement by construction, so a new setter\n // cannot silently stop announcing.\n const { emit: emitFrontendEvent } = useEventBus();\n // The READER's filters only, not the host's pins (#1630): the announcement mirrors a reader's choice.\n useEffect(() => {\n emitFrontendEvent(FrontendEvents.RESOURCE_COLLECTION_FILTERS_CHANGED, {\n resourceType,\n filterValues: filterValuesRef.current as Record<string, unknown>,\n });\n // `filterKey` is the serialized filter set — the value identity that must\n // drive the announcement (the object identity changes on every render).\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [filterKey, resourceType, emitFrontendEvent]);\n const fetchKey = `${resourceType}|${operationPathKey}|${contextResourceIdentifiersKey}|${debouncedQuery}|${pagination.page}|${pagination.limit}|${sortKey}|${filterKey}|${pinnedFiltersKey}|${isSearchable}`;\n\n // Execute search when debounced query changes - use refs to avoid infinite loops.\n // When isSearchable is false, auto-trigger an initial filter/sort-only search.\n // StrictMode double-mounts run this effect twice; the `cancelled` flag plus\n // cleanup disposes of the first mount's in-flight search so the second\n // mount's result lands in state. Do NOT add a per-fetchKey dedup Set —\n // entries that survive cleanup turn the second mount into a no-op while the\n // first mount's result is silently dropped by `if (cancelled) return`,\n // leaving the surface stuck in `isFetching` forever.\n useEffect(() => {\n if (!debouncedQuery && !hasSearched && isSearchable) return;\n\n let cancelled = false;\n let loadingStopped = false;\n\n const stopLoading = () => {\n if (!loadingStopped) {\n loadingStopped = true;\n setIsFetching(false);\n }\n };\n\n const executeSearch = async () => {\n setIsFetching(true);\n setError(null);\n setHasSearched(true);\n\n try {\n // Build filters — only include non-empty values. The host's pins apply on top, and win on a shared key.\n const mergedFilters = ResourceLayoutUtils.withPinnedFilters(filterValuesRef.current, resourceContextRef.current.pinnedFilters);\n const activeFilters = Object.keys(mergedFilters).length > 0\n ? mergedFilters\n : undefined;\n\n const searchParams: ResourceSearchCallParameters = {\n contextualParameters,\n searchQuery: debouncedQuery || undefined,\n filters: activeFilters,\n pagination: {\n page: pagination.page,\n limit: pagination.limit,\n },\n sort: sortStatesRef.current.length ? [...sortStatesRef.current] : undefined,\n parentResourcesRequirements: resourceContextRef.current.parentResourcesRequirements,\n dataMode, // Pass dataMode to API call\n };\n\n const result = await doOperationRef.current(operationPathKey, searchParams);\n\n if (cancelled) return;\n\n // Handle paginated response format (Resources_PaginatedResult)\n if (result && typeof result === 'object' && 'data' in result && 'pagination' in result) {\n const paginatedResult = result as Resources_PaginatedResult<SearchResult>;\n setResults(paginatedResult.data);\n setPagination(paginatedResult.pagination);\n } else if (Array.isArray(result)) {\n // Legacy: raw array response (internal calls)\n setResults(result);\n setPagination(prev => ({ ...prev, total: result.length, totalPages: 1 }));\n }\n } catch (err) {\n if (cancelled) return;\n const errorInfo = extractErrorInfo(err);\n // Rendered to the person: localized text only — never the reference, the raw message (#1160), or the\n // technical code, which goes to the log below and nowhere else (#2072).\n setError({ message: toUserFacingErrorMessage(err) });\n logger.error('[ResourceLayoutPreset_Search_Default] Search error:', { ...errorInfo, error: err });\n } finally {\n if (!cancelled) {\n stopLoading();\n }\n }\n };\n\n executeSearch();\n\n return () => {\n cancelled = true;\n stopLoading();\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps -- using refs for unstable functions/objects; fetchKey handles all deps\n }, [fetchKey]);\n\n // Handle navigation to READ (result click)\n // Uses resourceContextRef to avoid unstable resourceContext object in deps\n const handleResultClick = useCallback((item: SearchResult) => {\n if (!resourceConfig) return;\n\n const itemId = FrontendResourceUtils.getResourceObjectId(\n item as Record<string, unknown>,\n resourceConfig.resourceFieldIdentifier as string,\n );\n // Fail closed: a result whose id cannot be resolved must NOT navigate to\n // `/<resource>/undefined` — an unrenderable, CPU-pegging detail surface.\n if (!itemId) {\n logger.error('[ResourceLayoutPreset_Search] Result click ignored: could not resolve resource id from search result.', {\n resourceType,\n fieldIdentifier: resourceConfig.resourceFieldIdentifier,\n itemKeys: Object.keys(item ?? {}),\n });\n return;\n }\n\n const contextResourceIdentifiers = frontendResourceUtils.buildRecordIdentifiersFromCollection(\n resourceContextRef.current.contextResourceIdentifiers,\n resourceType,\n itemId,\n );\n const itemReadOperation = resolveReadOperationForIdentifiers(contextResourceIdentifiers);\n if (!itemReadOperation) return;\n\n navigateToResourceOperation({\n operation: itemReadOperation,\n contextResourceIdentifiers,\n parentResourcesRequirements: resourceContextRef.current.parentResourcesRequirements,\n initiatorOverride: operationInitiator,\n });\n }, [resourceConfig, resourceConfig?.resourceFieldIdentifier, resourceType, navigateToResourceOperation, operationInitiator, resolveReadOperationForIdentifiers]);\n\n // Handle sort change — stable callback for the sort control.\n const handleSortChange = useCallback((newSorts: SortState[]) => {\n setSortStates(newSorts);\n setPagination(prev => ({ ...prev, page: 1 }));\n }, []);\n\n // Handle filter change — stable callback for FiltersControl\n const handleFiltersChange = useCallback((newFilters: FilterValues) => {\n setFilterValues(newFilters);\n setPagination(prev => ({ ...prev, page: 1 }));\n }, []);\n\n // Handle search form submit\n const handleSubmit = useCallback((e: React.SubmitEvent<HTMLFormElement>) => {\n e.preventDefault();\n setDebouncedQuery(searchQuery);\n }, [searchQuery]);\n\n // Render icons\n const searchIcon = renderIcon(\n StandardIconReference.SEARCH,\n { size: IconSize.SM }\n );\n\n return (\n <LoadingGate\n i18nKeys={i18nKeys}\n readiness={[{ id: 'search-initial-load', isReady: !isInitialLoad }]}\n renderLoading={() => (\n <Skeleton\n template=\"list\"\n density=\"auto\"\n role=\"status\"\n aria-live=\"polite\"\n aria-busy=\"true\"\n aria-label=\"Loading\"\n />\n )}\n >\n <div className=\"space-y-section\">\n {/* Header with back button */}\n <ResourceLayout_Header\n resourceContext={resourceContext}\n navigationZone={navigationZone}\n navigationInitiator={navigationInitiator}\n />\n\n {/* Search form — hidden when isSearchable is false on the SEARCH operation */}\n {isSearchable && (\n <form onSubmit={handleSubmit} role=\"search\" className=\"flex gap-element\">\n <div className=\"flex-1\">\n <InputRoot\n type=\"text\"\n value={searchQuery}\n onChange={(e) => setSearchQuery(e.target.value)}\n placeholder={tc('placeholder')}\n aria-label={tc('placeholder')}\n prefix={searchIcon}\n />\n </div>\n <Button type=\"submit\" disabled={isFetching}>\n {tc('search')}\n </Button>\n </form>\n )}\n\n {/* Filters and Sort controls — shown between search form and results */}\n {(filtersEnabled || (sortFields.length > 0 && hasSearched)) && (\n <div className=\"flex flex-col gap-element-sm\">\n {/* Filter controls — shown when filter fields exist */}\n {filtersEnabled && filterFields.length > 0 && (\n <ResourceLayout_FiltersControl\n resourceType={resourceType}\n filterFields={filterFields}\n currentFilters={filterValues}\n onFiltersChange={handleFiltersChange}\n />\n )}\n {/* Sort control — shown when sortFields exist and results are present */}\n {sortFields.length > 0 && hasSearched && (\n <ResourceLayout_SortControl\n resourceType={resourceType}\n sortFields={sortFields}\n currentSorts={sortStates}\n onSortChange={handleSortChange}\n />\n )}\n </div>\n )}\n\n {/* Selection + bulk actions — LOCAL to this search view (no global bar).\n The select-all/count/clear cluster leads; the contextual bulk actions\n trail (Search has no Create action to replace, so they simply appear\n while a selection is active). */}\n {/* Show the cluster whenever there ARE results OR a selection is still live\n (cross-page): otherwise paginating to an empty page would strip the\n clear/bulk affordances while items remain selected. */}\n {selectionEnabled && hasSearched && (results.length > 0 || selection.selectionCount > 0 || bulkHost.backgroundRunState !== SelectionBarBackgroundRunState.NONE) && (\n <div ref={selectionRowRef} className=\"flex flex-nowrap items-center gap-element\" data-slot=\"collection-selection-row\">\n {/* The select-all leads the row, inset into the results' checkbox column — the same\n control and the same place as the LIST toolbar (see `CollectionSelectAllCheckbox`). */}\n {results.length > 0 && (\n <CollectionSelectAllCheckbox\n state={resolveCollectionSelectAllState(results.length, results.filter((r) => selection.isSelected(r)).length)}\n onToggle={handleToggleAllCurrentPage}\n />\n )}\n <CollectionSelectionControls\n count={selection.selectionCount}\n onClear={selection.clearSelection}\n {...(currentPageAllSelected && !selection.matchAllSelection && pagination.total > results.length && matchListing\n ? {\n matchAllOffer: {\n matchedCount: pagination.total,\n // Search is where the offer earns its place: a person narrows to a population\n // and then wants to act on it, not on the twenty rows that fit. The query it\n // carries is this search — its term AND its filters — so the server\n // re-evaluates exactly what produced these results (#1461).\n onSelectAllMatching: () => selection.selectAllMatching({\n // The host's pins included (#1630): \"all matching\" is what this listing matches.\n filters: ResourceLayoutUtils.withPinnedFilters(filterValues, resourceContext.pinnedFilters) as Record<string, unknown>,\n ...(debouncedQuery ? { search: debouncedQuery } : {}),\n // This view ran its search operation, with a term or without one, so the server re-runs it (#2718).\n listing: matchListing,\n matchedCount: pagination.total,\n }),\n },\n }\n : {})}\n {...(selection.matchAllSelection ? { isMatchAllSelected: true } : {})}\n />\n {bulkHost.isBulkBarMounted && (\n <div className=\"ms-auto min-w-0\">\n <CollectionSelectionBarDensityProvider\n density={selectionBar.density}\n onActionSetChange={selectionBar.reportActionSet}\n onBackgroundRunChange={bulkHost.onBackgroundRunChange}\n >\n <ResourceLayout_OperationBulk\n resourceContext={resourceContext}\n navigationZone={navigationZone}\n navigationInitiator={navigationInitiator}\n selectedItems={selection.selectedItems}\n // `undefined` when the backend's default applies: the mode is then unknown and nothing is reported (#2467).\n selectedItemsDataMode={dataMode}\n matchAllSelection={selection.matchAllSelection}\n explicitIdSelection={selection.explicitIdSelection}\n onSelectIds={selection.selectIds}\n idField={selectionIdField}\n onSelectionClear={selection.clearSelection}\n onSelectionReplace={selection.selectAll}\n />\n </CollectionSelectionBarDensityProvider>\n </div>\n )}\n </div>\n )}\n\n {/* Error state — E-2: replaced inline alert with ErrorDisplay */}\n {error && (\n <ErrorDisplay\n variant=\"error\"\n iconRef={StandardIconReference.ERROR_APPLICATION}\n title={resolveComponentLabel({\n tComponent,\n componentType: FrontendComponentType.RESOURCES_LAYOUTS_SEARCH,\n key: 'errorLoading',\n })}\n message={error.message}\n />\n )}\n\n {/* A CREATE hosted IN PLACE — above the results, for the same reasons as the list host: it is\n an ADDITION rather than a replacement, and a form is not a list item. Outside the\n `hasSearched` gate deliberately, so authoring a new record does not vanish the moment the\n query is cleared. */}\n {inPlaceHost.isCreateActive && (\n <ResourceInPlaceOperationRow navigationZone={navigationZone} className=\"border border-border rounded-lg\" />\n )}\n\n {/* Results */}\n {hasSearched && !error && (\n <>\n {results.length === 0 ? (\n /* A search that matched nothing is not an empty collection. The resource's empty state\n says there are none YET and offers the first one, which is false here; this says the\n query matched nothing, in the list's own words for the same case. */\n <div className=\"text-center py-section text-muted-foreground text-sm\" role=\"status\">\n {resolveComponentLabel({\n tComponent,\n componentType: FrontendComponentType.RESOURCES_LAYOUTS_LIST,\n key: 'noSearchResults',\n })}\n </div>\n ) : (\n /* Same contract as the LIST host: the select-all leads the selection row above, in the\n rows' own checkbox column. */\n <div className=\"space-y-item-sm\">\n <ul\n role=\"list\"\n aria-label={resultsLabel}\n style={resolveCardsGridStyle(cardGridColumns)}\n className={cn(\n resolveCardsContainerClass(cardGridColumns),\n // L-1: subtle refresh affordance (results stay visible while updating)\n isRefreshing && \"opacity-70 transition-opacity duration-150 motion-reduce:transition-none\",\n )}\n aria-busy={isInitialLoad || isRefreshing || undefined}\n >\n {results.map((item, index) => {\n const fieldIdentifier = resourceConfig?.resourceFieldIdentifier as string;\n if (!fieldIdentifier) {\n throw FrontendResourceUtils.buildConfigurationError(\n ErrorCustomMessageReference.FRONTEND_RESOURCE_FIELD_IDENTIFIER_NOT_FOUND,\n { resourceType, component: 'ResourceLayoutPreset_Search' }\n );\n }\n const itemId = FrontendResourceUtils.getResourceObjectId(item, fieldIdentifier);\n\n if (inPlaceHost.isElementActive(itemId)) {\n return (\n <li key={itemId || index} className={cn('list-none', isCardGrid && CARDS_GRID_CELL_CLASS)}>\n <ResourceInPlaceOperationRow navigationZone={navigationZone} />\n </li>\n );\n }\n\n return (\n <li key={itemId || index} className={cn('list-none', isCardGrid && CARDS_GRID_CELL_CLASS)}>\n <ResourceListItemRenderer\n item={item}\n resourceType={resourceType}\n resourceConfig={resourceConfig!}\n registry={registry}\n collectionContextResourceIdentifiers={resourceContext.contextResourceIdentifiers}\n summaryFields={summaryFields}\n fieldLabelsMap={fieldLabelsMap}\n tResourceFieldEnumValue={tResourceFieldEnumValue}\n onItemClick={handleResultClick}\n cardActionPlacement={cardActionPlacement}\n selectable={selectionEnabled}\n isSelected={selection.isSelected(item)}\n selectionActive={selection.selectionCount > 0}\n onToggleSelect={selection.toggleSelection}\n // Selection labels live in the LIST namespace and are reused\n // across surfaces (as CollectionSelectionControls does for\n // `selectAll`); gives the checkbox a \"Select row N\" name\n // instead of falling back to the item title.\n selectAriaLabel={tComponent(FrontendComponentType.RESOURCES_LAYOUTS_LIST, 'selectRow', { row: index + 1 })}\n interactiveClasses={{\n hover: ghostRecipe.states.hover,\n transition: ghostRecipe.motion.transition,\n }}\n />\n </li>\n );\n })}\n </ul>\n </div>\n )}\n\n {/* Pagination */}\n {/* (kept inside the `hasSearched && !error` branch so it stays in sync with results) */}\n <ResourceLayout_Pagination\n pagination={pagination}\n onPaginationChange={setPagination}\n />\n </>\n )}\n </div>\n </LoadingGate>\n );\n};\n\nexport function ResourceLayout_Search({ preset, ...props }: ResourceLayoutPreset_Search_DefaultProps & ComponentPresetProps): React.JSX.Element {\n const ComponentOverride = resolveResourceOperationCustomView<ResourceLayoutPreset_Search_DefaultProps>(props.resourceContext.operation);\n const operationPreset = resolveResourceOperationPresetKey(props.resourceContext.operation);\n const resolvedPreset = preset ?? operationPreset ?? CorePreset_ResourceLayout_Search.DEFAULT;\n\n const body = ComponentOverride\n ? <ComponentOverride {...props} />\n : React.createElement(\n createComponentResolver<ResourceLayoutPreset_Search_DefaultProps>(FrontendComponentType.RESOURCES_LAYOUTS_SEARCH, 'ResourceLayout_Search')(resolvedPreset),\n props,\n );\n\n // SEARCH is a collection surface too — it renders rows, it offers selection, and each row carries\n // an action bar. Without the host here, the same INLINE action would transform its row in the LIST\n // and quietly degrade to an overlay in SEARCH: one operation, two behaviours, decided by which\n // screen the user happened to be on. Same reasoning as the cards↔table pair inside the list host.\n // The collection marker sits HERE, around whatever renders the collection — the default preset, an app preset or a\n // custom view — and from the first paint, before the collection's own labels have loaded, so a record body holding\n // it is wide from the start (`DisplayLayout`'s derived width). A real box, not `display: contents`, which would drop\n // the spacing a parent puts between its children; a flex column that grows, so a destination declaring\n // `zoneContentFillsHeight` still reaches a preset or custom view whose root fills it (`flex-1 min-h-0`).\n // Inside an ordinary block parent `flex-1` does nothing.\n return (\n <InPlaceOperationProvider resourceType={props.resourceContext.resourceType}>\n <div className=\"flex min-h-0 flex-1 flex-col\" {...{ [COLLECTION_SURFACE_ATTRIBUTE]: true }}>{body}</div>\n </InPlaceOperationProvider>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ResourceLayout_Search.js","sourceRoot":"","sources":["../../../../src/components/resources/ResourceLayout_Search.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AA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BAAiB;QAC5B,CAAC,CAAC,KAAC,iBAAiB,OAAK,KAAK,GAAI;QAClC,CAAC,CAAC,KAAK,CAAC,aAAa,CACjB,uBAAuB,CAA2C,qBAAqB,CAAC,wBAAwB,EAAE,uBAAuB,CAAC,CAAC,cAAc,CAAC,EAC1J,KAAK,CACN,CAAC;IAEN,kGAAkG;IAClG,mGAAmG;IACnG,+FAA+F;IAC/F,kGAAkG;IAClG,mHAAmH;IACnH,mHAAmH;IACnH,qHAAqH;IACrH,uGAAuG;IACvG,yGAAyG;IACzG,yDAAyD;IACzD,kHAAkH;IAClH,OAAO,CACL,KAAC,wBAAwB,IAAC,YAAY,EAAE,KAAK,CAAC,eAAe,CAAC,YAAY,YACxE,KAAC,yBAAyB,IAAC,cAAc,EAAE,kCAAkC,CAAC,KAAK,CAAC,eAAe,CAAC,0BAA0B,EAAE,SAAS,CAAC,IAAI,SAAS,YACrJ,cAAK,SAAS,EAAC,8BAA8B,EAAO,CAAC,4BAA4B,CAAC,EAAE,IAAI,YAAK,IAAI,GAAO,GAC9E,GACH,CAC5B,CAAC;AACJ,CAAC","sourcesContent":["import React, { useCallback, useMemo, useEffect, useState, useRef } from 'react';\n\nimport { COLLECTION_SURFACE_ATTRIBUTE } from '~wildo-frontend-lib/components/resources/skeleton/DisplayLayout';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { useEventBus } from '~wildo-frontend-lib/core/events/useEventBus';\nimport { FrontendEvents } from '~wildo-frontend-lib/core/events/events.frontend.schemas';\nimport { useIconRegistry } from '~wildo-frontend-lib/core/icons/useIconRegistry';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { frontendResourceUtils, FrontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { useViewerCollectionControls, useViewerSummaryFields, ViewerFieldReaderProvider } from '~wildo-frontend-lib/core/navigation/viewer-field-reader';\nimport { resolveActionSurfaceOrganizationId } from '~wildo-frontend-lib/core/resources/useResourceOperationActions';\nimport { useResourceOperationSurface } from '~wildo-frontend-lib/core/resources/useResourceOperationSurface';\nimport { FrontendComponentType, UIBehavior, InteractiveVariant } from '@wildo-ai/presets-components-models';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport { Button } from '~wildo-frontend-lib/components/actions/button';\nimport { InputRoot } from '~wildo-frontend-lib/components/form/controls/input';\nimport { ResourceListItemRenderer } from '~wildo-frontend-lib/components/resources/ResourceListItemRenderer';\nimport { ResourceInPlaceOperationRow } from '~wildo-frontend-lib/components/resources/ResourceInPlaceOperationRow';\nimport { InPlaceOperationProvider, useInPlaceOperation } from '~wildo-frontend-lib/core/resources/in-place/InPlaceOperationContext';\nimport { ResourceLayoutUtils } from '~wildo-frontend-lib/components/resources/resourceLayout.utils';\nimport {\n CoreResourceOperation,\n ResourcesConfig_OperationPathUtils,\n ErrorCustomMessageReference,\n type Resources_PaginationMetadata,\n type Resources_PaginatedResult,\n DataMode,\n} from '@wildo-ai/saas-models';\nimport {\n CardLayoutStyle,\n} from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { useResourceSelection } from '~wildo-frontend-lib/core/resources/useResourceSelection';\nimport { ResourceLayout_OperationBulk } from '~wildo-frontend-lib/components/resources/ResourceLayout_OperationBulk';\nimport { CollectionSelectionControls } from '~wildo-frontend-lib/components/resources/CollectionSelectionControls';\nimport { CollectionSelectionBarDensityProvider, SelectionBarBackgroundRunState, useMeasuredSelectionBarDensity, useSelectionBarBulkHost } from '~wildo-frontend-lib/components/resources/collection-selection-bar-density';\nimport { CollectionSelectAllCheckbox, resolveCollectionSelectAllState } from '~wildo-frontend-lib/components/resources/CollectionSelectAllCheckbox';\nimport { resolveCardsContainerClass, resolveCardsGridStyle, CARDS_GRID_CELL_CLASS } from '~wildo-frontend-lib/components/resources/collection-card-layout.utils';\nimport { ResourceLayout_Header } from '~wildo-frontend-lib/components/resources/ResourceLayout_Header';\nimport { StandardIconReference, IconSize } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { ResourcesConfigOperationsUrlsBuilderUtils } from '@wildo-ai/saas-models';\nimport { ResourceSearchCallParameters } from '~wildo-frontend-lib/core/requests/wildo-http-client-resources.frontend.service';\nimport { useSearchParams } from 'react-router';\nimport { type DisplayableError, extractErrorInfo } from '~wildo-frontend-lib/core/errors/errors.frontend.schemas';\nimport { useUserFacingErrorMessage } from '~wildo-frontend-lib/core/errors/useUserFacingErrorMessage';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\nimport { ResourceLayout_Pagination } from '~wildo-frontend-lib/components/resources/ResourceLayout_Pagination';\nimport { ResourceLayout_SortControl, type SortState } from '~wildo-frontend-lib/components/resources/ResourceLayout_SortControl';\nimport { ResourceLayout_FiltersControl, type FilterValues } from '~wildo-frontend-lib/components/resources/ResourceLayout_FiltersControl';\nimport { ErrorDisplay } from '~wildo-frontend-lib/components/feedback/error-display';\nimport { Skeleton } from '~wildo-frontend-lib/components/feedback/skeleton';\n\nimport { ComponentPresetProps } from '~wildo-frontend-lib/core/components-registry/component-registry.frontend.schemas'\nimport { createComponentResolver } from '~wildo-frontend-lib/core/components-registry/component-resolver.frontend.helper'\nimport { CorePreset_ResourceLayout_Search } from '@wildo-ai/presets-components-models'\nimport {\n resolveResourceOperationPresetKey,\n resolveResourceOperationCustomView,\n} from '~wildo-frontend-lib/core/resources/resource-operation-view.frontend.utils';\nimport { BaseResourcesLayoutProps } from './component-props.resources-layout.frontend.schemas'\nimport { LoadingGate } from '~wildo-frontend-lib/core/loading/LoadingGate';\nimport { useComponentLoading } from '~wildo-frontend-lib/core/loading/useComponentLoading';\nimport { buildResourceLoadingScope } from '~wildo-frontend-lib/core/loading/loading-scope.frontend.utils';\nimport { resolveComponentLabel } from '~wildo-frontend-lib/core/i18n/component-label-resolution.utils';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { pickPreferredOperationForCoreSemanticAddressability } from '~wildo-frontend-lib/core/resources/resource-addressability.frontend.utils';\n\n// --- Contract ---\nexport interface ResourceLayoutPreset_Search_DefaultProps extends BaseResourcesLayoutProps {\n dataMode?: DataMode;\n}\n\nconst logger = LoggerFrontendService.getLogger();\n\ninterface SearchResult {\n id: string;\n [key: string]: any;\n}\n\nexport const ResourceLayoutPreset_Search_Default = ({\n resourceContext,\n navigationZone,\n navigationInitiator,\n dataMode: propDataMode,\n}: ResourceLayoutPreset_Search_DefaultProps): React.JSX.Element | null => {\n const {\n resourceType,\n operation,\n resourceConfig,\n operationInitiator,\n contextualParameters,\n navigateToResourceOperation,\n } = useResourceOperationSurface({\n resourceContext,\n navigationZone,\n navigationInitiator,\n });\n const { tComponent, tResourceFieldDisplay, tResourceFieldEnumValue } = useI18n({\n // LIST's vocabulary too: a search that matched nothing uses the same \"no matching items\" words the\n // list shows for its own narrowed-empty state.\n component: [FrontendComponentType.RESOURCES_LAYOUTS_SEARCH, FrontendComponentType.RESOURCES_LAYOUTS_LIST],\n resource: resourceType,\n });\n // Stable identity, so the search effect may call it without listing it.\n const toUserFacingErrorMessage = useUserFacingErrorMessage();\n const tc = (key: string) => tComponent(FrontendComponentType.RESOURCES_LAYOUTS_SEARCH, key);\n const { renderIcon } = useIconRegistry();\n const { getRecipe } = useUI();\n const ghostRecipe = getRecipe(UIBehavior.INTERACTIVE, InteractiveVariant.GHOST);\n const { registry, doOperation } = useResourceRegistry();\n const [searchParams] = useSearchParams();\n\n // Cards presentation + selection, authored on the SEARCH operation's\n // `collectionDisplayConfig` (parity with the LIST view). Search is cards-only\n // (no table body), so `cardLayout`/`selectable` apply directly to the results\n // list; `cardActionPlacement` is inert here (search cards render no per-item\n // operations today) but threaded for symmetry.\n const collectionDisplayConfig = operation.operationFrontendConfig?.collectionDisplayConfig;\n const cardLayout = collectionDisplayConfig?.cardLayout;\n const cardActionPlacement = collectionDisplayConfig?.cardActionPlacement;\n const selectionEnabled = collectionDisplayConfig?.selectable ?? false;\n const isCardGrid = cardLayout?.style === CardLayoutStyle.GRID;\n // Narrow the union once, then feed both the container class and the intrinsic\n // grid-template-columns style (container-responsive; collapses in narrow panes).\n const cardGridColumns = cardLayout?.style === CardLayoutStyle.GRID ? cardLayout.columns : undefined;\n // Key selection on the resource's addressable identifier (same field\n // navigation + the bulk payload use) — threaded to BOTH the hook and the bulk\n // bar so selection identity and bulk-target identity can never diverge.\n const selectionIdField = resourceConfig?.resourceFieldIdentifier as string | undefined;\n const selection = useResourceSelection<SearchResult>({ idField: selectionIdField });\n // Which result row, if any, is transformed by an INLINE action. Provided by the wrapper below.\n const inPlaceHost = useInPlaceOperation();\n\n // State\n const [searchQuery, setSearchQuery] = useState('');\n const [debouncedQuery, setDebouncedQuery] = useState('');\n const [results, setResults] = useState<SearchResult[]>([]);\n // The selection row never wraps: the count and the bulk actions it drives stay on one line, the actions\n // drawn denser until they fit (see `collection-selection-bar-density`), exactly as in the LIST toolbar.\n const selectionRowRef = useRef<HTMLDivElement>(null);\n const selectionBar = useMeasuredSelectionBarDensity(selectionRowRef, selection.selectionCount > 0);\n // The bulk bar outlives the selection: a background run it starts clears the selection and reports\n // its progress afterwards (`useSelectionBarBulkHost`, #1461).\n const bulkHost = useSelectionBarBulkHost(selection.selectionCount > 0);\n // Current-page select-all (additive; preserves any cross-page selection).\n const currentPageAllSelected = results.length > 0 && results.every((r) => selection.isSelected(r));\n const handleToggleAllCurrentPage = useCallback(() => {\n if (results.length > 0 && results.every((r) => selection.isSelected(r))) {\n results.forEach((r) => selection.deselectItem(r));\n } else {\n results.forEach((r) => selection.selectItem(r));\n }\n }, [results, selection]);\n const [error, setError] = useState<DisplayableError | null>(null);\n const [hasSearched, setHasSearched] = useState(false);\n const [pagination, setPagination] = useState<Resources_PaginationMetadata>(() => {\n const searchOp = operation as { pageSize?: number; maxPaginatedResultPerPageLimit?: number };\n const configuredPageSize = searchOp?.pageSize ?? 20;\n const maxLimit = searchOp?.maxPaginatedResultPerPageLimit;\n const pageSize = maxLimit ? Math.min(configuredPageSize, maxLimit) : configuredPageSize;\n return { page: 1, limit: pageSize, total: 0, totalPages: 0 };\n });\n const [isFetching, setIsFetching] = useState(false);\n // Multi-field sort, highest priority first. Empty = no sorting.\n const [sortStates, setSortStates] = useState<SortState[]>([]);\n const [filterValues, setFilterValues] = useState<FilterValues>({});\n\n // Clear selection when the visible result set is redefined by a new query or a\n // filter change — a stale selection would let the bulk bar act on records that\n // no longer match / are no longer shown. Pagination is intentionally excluded.\n useEffect(() => {\n selection.clearSelection();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [debouncedQuery, filterValues]);\n\n const i18nKeys = useMemo(() => [\n `resources.${resourceType}`,\n `components.${FrontendComponentType.RESOURCES_LAYOUTS_SEARCH}`,\n ], [resourceType]);\n\n // L-1: Tier-2 derived loading state. Distinguishes initial load (skeleton)\n // from refresh (subtle dim). Driven by the http client's resource loading\n // events (LOADING_RESOURCE_START/END) for this exact resource+operation.\n const operationIdForLoading = (operation as { operationIdentifier?: string })?.operationIdentifier ?? CoreResourceOperation.SEARCH;\n const { isInitialLoad, isRefreshing } = useComponentLoading(\n buildResourceLoadingScope({\n resourceType,\n operation: operationIdForLoading,\n }),\n );\n\n // Refs for stable function references and objects (avoid infinite loops)\n const doOperationRef = useRef(doOperation);\n const resourceContextRef = useRef(resourceContext);\n\n const sortStatesRef = useRef(sortStates);\n const filterValuesRef = useRef(filterValues);\n\n // Keep refs updated\n doOperationRef.current = doOperation;\n resourceContextRef.current = resourceContext;\n sortStatesRef.current = sortStates;\n filterValuesRef.current = filterValues;\n\n // Build stable key for context identifiers\n const contextResourceIdentifiersKey = useMemo(() => {\n return FrontendResourceUtils.buildContextResourceIdentifiersKey(resourceContext.contextResourceIdentifiers);\n }, [resourceContext.contextResourceIdentifiers]);\n\n // Determine if free-text search is enabled on this SEARCH operation\n // isSearchable defaults to true when a SEARCH operation exists (factory default)\n // When false, the search bar is hidden but filters/sort/results still render\n const isSearchable = useMemo(() => ResourceLayoutUtils.searchOperationAcceptsATerm(operation), [operation]);\n\n // Without a field the viewer may not read (`.readableBy`, #4434): no column, rather than a column of empty cells.\n const summaryFields = useViewerSummaryFields(resourceConfig);\n\n // Resolve i18n field labels for summary fields\n const resultsLabel = useMemo(\n () => resolveComponentLabel({\n tComponent,\n componentType: FrontendComponentType.RESOURCES_LAYOUTS_SEARCH,\n key: 'resultsLabel',\n }),\n [tComponent],\n );\n\n const fieldLabelsMap = useMemo<Record<string, string>>(() => {\n const result: Record<string, string> = {};\n for (const fieldName of summaryFields) {\n result[fieldName] = tResourceFieldDisplay(resourceType, fieldName, 'label');\n }\n return result;\n }, [summaryFields, resourceType, tResourceFieldDisplay]);\n\n const resolveReadOperationForIdentifiers = useCallback((\n contextResourceIdentifiers: typeof resourceContext.contextResourceIdentifiers,\n ) => {\n if (!resourceConfig) {\n return null;\n }\n\n return pickPreferredOperationForCoreSemanticAddressability({\n resourceConfig,\n operations: resourceConfig.operations ?? [],\n coreOperation: CoreResourceOperation.READ,\n registry,\n hasResourceId: frontendResourceUtils.getResourceId(contextResourceIdentifiers[resourceType]).length > 0,\n requireFrontendAddressable: true,\n contextResourceIdentifiers,\n contextualParameters: FrontendResourceUtils.buildContextualParameters(\n contextResourceIdentifiers,\n registry,\n ),\n }) ?? null;\n }, [registry, resourceConfig, resourceType]);\n\n // Read sortFields and filterFields from SEARCH operation directly.\n // Transport context: exclude transport-pinned fields (primary-scope FK +\n // selected-route URL parameters) and classify FK fields as reference\n // selectors. See FilterFieldTransportContext.\n const { sortFields: declaredSortFields, filterFields: declaredFilterFields } = useMemo(() => {\n const searchOp = operation as { sortFields?: readonly string[]; filterFields?: Record<string, unknown> };\n const sortFields = searchOp?.sortFields ?? [];\n const filterFields = ResourceLayoutUtils.parseFilterFieldDefinitions(\n searchOp?.filterFields,\n resourceConfig\n ? {\n registry,\n resourceConfig,\n operation,\n contextualParameters,\n parentResourcesRequirements: resourceContext.parentResourcesRequirements,\n }\n : undefined,\n );\n // A field the host pinned is not the reader's to filter (#1630): its value is fixed on every fetch.\n const readerFilterFields = ResourceLayoutUtils.withoutPinnedFilterFields(filterFields, resourceContext.pinnedFilters);\n return { sortFields, filterFields: readerFilterFields };\n }, [operation, registry, resourceConfig, contextualParameters, resourceContext.parentResourcesRequirements, resourceContext.pinnedFilters]);\n // Without a field the viewer may not read (`.readableBy`, #4434): no sort key and no filter.\n const { sortFields, filterFields } = useViewerCollectionControls(resourceConfig, declaredSortFields, declaredFilterFields);\n // SEARCH doesn't have filtersEnabled; show filters when filterFields exist\n const filtersEnabled = filterFields.length > 0;\n\n // Extract dataMode: Component prop > Query param > Backend default\n const dataMode = useMemo(() => {\n return frontendResourceUtils.extractDataMode(searchParams, propDataMode);\n }, [searchParams, propDataMode]);\n\n // Build operation path for SEARCH from the operation object on context\n const operationPathKey = useMemo(() => {\n return ResourcesConfig_OperationPathUtils.createOperationPathKeyFromOperation(operation);\n }, [operation]);\n // The listing \"select all matching\" names (#2718); none for a custom search-like operation, which offers no such\n // selection.\n const matchListing = ResourceLayoutUtils.matchListingOf(operation);\n\n // Debounce search query\n useEffect(() => {\n const timer = setTimeout(() => {\n setDebouncedQuery(searchQuery);\n }, 300);\n return () => clearTimeout(timer);\n }, [searchQuery]);\n\n // Stable sort key for fetch dedup\n const sortKey = sortStates.map(s => `${s.field}:${s.direction}`).join(',');\n const filterKey = useMemo(() => JSON.stringify(filterValues), [filterValues]);\n // Host-pinned filters (#1630) are part of the fetch identity: a host that re-pins refetches.\n const pinnedFiltersKey = useMemo(() => JSON.stringify(resourceContext.pinnedFilters ?? {}), [resourceContext.pinnedFilters]);\n\n // Announce this collection surface's ACTIVE FILTER SET. The surface states a\n // fact about itself and owns no scope semantics — `AppScopeContext` decides\n // whether a filter lands on a declared app-scope field (so the app-shell\n // scope control mirrors a listing filtered to one record).\n //\n // Emitted from ONE effect keyed on the serialized filter set rather than from\n // each setter: the panel, the quick-filter tabs and any future filter writer\n // all flow through this single announcement by construction, so a new setter\n // cannot silently stop announcing.\n const { emit: emitFrontendEvent } = useEventBus();\n // The READER's filters only, not the host's pins (#1630): the announcement mirrors a reader's choice.\n useEffect(() => {\n emitFrontendEvent(FrontendEvents.RESOURCE_COLLECTION_FILTERS_CHANGED, {\n resourceType,\n filterValues: filterValuesRef.current as Record<string, unknown>,\n });\n // `filterKey` is the serialized filter set — the value identity that must\n // drive the announcement (the object identity changes on every render).\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [filterKey, resourceType, emitFrontendEvent]);\n const fetchKey = `${resourceType}|${operationPathKey}|${contextResourceIdentifiersKey}|${debouncedQuery}|${pagination.page}|${pagination.limit}|${sortKey}|${filterKey}|${pinnedFiltersKey}|${isSearchable}`;\n\n // Execute search when debounced query changes - use refs to avoid infinite loops.\n // When isSearchable is false, auto-trigger an initial filter/sort-only search.\n // StrictMode double-mounts run this effect twice; the `cancelled` flag plus\n // cleanup disposes of the first mount's in-flight search so the second\n // mount's result lands in state. Do NOT add a per-fetchKey dedup Set —\n // entries that survive cleanup turn the second mount into a no-op while the\n // first mount's result is silently dropped by `if (cancelled) return`,\n // leaving the surface stuck in `isFetching` forever.\n useEffect(() => {\n if (!debouncedQuery && !hasSearched && isSearchable) return;\n\n let cancelled = false;\n let loadingStopped = false;\n\n const stopLoading = () => {\n if (!loadingStopped) {\n loadingStopped = true;\n setIsFetching(false);\n }\n };\n\n const executeSearch = async () => {\n setIsFetching(true);\n setError(null);\n setHasSearched(true);\n\n try {\n // Build filters — only include non-empty values. The host's pins apply on top, and win on a shared key.\n const mergedFilters = ResourceLayoutUtils.withPinnedFilters(filterValuesRef.current, resourceContextRef.current.pinnedFilters);\n const activeFilters = Object.keys(mergedFilters).length > 0\n ? mergedFilters\n : undefined;\n\n const searchParams: ResourceSearchCallParameters = {\n contextualParameters,\n searchQuery: debouncedQuery || undefined,\n filters: activeFilters,\n pagination: {\n page: pagination.page,\n limit: pagination.limit,\n },\n sort: sortStatesRef.current.length ? [...sortStatesRef.current] : undefined,\n parentResourcesRequirements: resourceContextRef.current.parentResourcesRequirements,\n dataMode, // Pass dataMode to API call\n };\n\n const result = await doOperationRef.current(operationPathKey, searchParams);\n\n if (cancelled) return;\n\n // Handle paginated response format (Resources_PaginatedResult)\n if (result && typeof result === 'object' && 'data' in result && 'pagination' in result) {\n const paginatedResult = result as Resources_PaginatedResult<SearchResult>;\n setResults(paginatedResult.data);\n setPagination(paginatedResult.pagination);\n } else if (Array.isArray(result)) {\n // Legacy: raw array response (internal calls)\n setResults(result);\n setPagination(prev => ({ ...prev, total: result.length, totalPages: 1 }));\n }\n } catch (err) {\n if (cancelled) return;\n const errorInfo = extractErrorInfo(err);\n // Rendered to the person: localized text only — never the reference, the raw message (#1160), or the\n // technical code, which goes to the log below and nowhere else (#2072).\n setError({ message: toUserFacingErrorMessage(err) });\n logger.error('[ResourceLayoutPreset_Search_Default] Search error:', { ...errorInfo, error: err });\n } finally {\n if (!cancelled) {\n stopLoading();\n }\n }\n };\n\n executeSearch();\n\n return () => {\n cancelled = true;\n stopLoading();\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps -- using refs for unstable functions/objects; fetchKey handles all deps\n }, [fetchKey]);\n\n // Handle navigation to READ (result click)\n // Uses resourceContextRef to avoid unstable resourceContext object in deps\n const handleResultClick = useCallback((item: SearchResult) => {\n if (!resourceConfig) return;\n\n const itemId = FrontendResourceUtils.getResourceObjectId(\n item as Record<string, unknown>,\n resourceConfig.resourceFieldIdentifier as string,\n );\n // Fail closed: a result whose id cannot be resolved must NOT navigate to\n // `/<resource>/undefined` — an unrenderable, CPU-pegging detail surface.\n if (!itemId) {\n logger.error('[ResourceLayoutPreset_Search] Result click ignored: could not resolve resource id from search result.', {\n resourceType,\n fieldIdentifier: resourceConfig.resourceFieldIdentifier,\n itemKeys: Object.keys(item ?? {}),\n });\n return;\n }\n\n const contextResourceIdentifiers = frontendResourceUtils.buildRecordIdentifiersFromCollection(\n resourceContextRef.current.contextResourceIdentifiers,\n resourceType,\n itemId,\n );\n const itemReadOperation = resolveReadOperationForIdentifiers(contextResourceIdentifiers);\n if (!itemReadOperation) return;\n\n navigateToResourceOperation({\n operation: itemReadOperation,\n contextResourceIdentifiers,\n parentResourcesRequirements: resourceContextRef.current.parentResourcesRequirements,\n initiatorOverride: operationInitiator,\n });\n }, [resourceConfig, resourceConfig?.resourceFieldIdentifier, resourceType, navigateToResourceOperation, operationInitiator, resolveReadOperationForIdentifiers]);\n\n // Handle sort change — stable callback for the sort control.\n const handleSortChange = useCallback((newSorts: SortState[]) => {\n setSortStates(newSorts);\n setPagination(prev => ({ ...prev, page: 1 }));\n }, []);\n\n // Handle filter change — stable callback for FiltersControl\n const handleFiltersChange = useCallback((newFilters: FilterValues) => {\n setFilterValues(newFilters);\n setPagination(prev => ({ ...prev, page: 1 }));\n }, []);\n\n // Handle search form submit\n const handleSubmit = useCallback((e: React.SubmitEvent<HTMLFormElement>) => {\n e.preventDefault();\n setDebouncedQuery(searchQuery);\n }, [searchQuery]);\n\n // Render icons\n const searchIcon = renderIcon(\n StandardIconReference.SEARCH,\n { size: IconSize.SM }\n );\n\n return (\n <LoadingGate\n i18nKeys={i18nKeys}\n readiness={[{ id: 'search-initial-load', isReady: !isInitialLoad }]}\n renderLoading={() => (\n <Skeleton\n template=\"list\"\n density=\"auto\"\n role=\"status\"\n aria-live=\"polite\"\n aria-busy=\"true\"\n aria-label=\"Loading\"\n />\n )}\n >\n <div className=\"space-y-section\">\n {/* Header with back button */}\n <ResourceLayout_Header\n resourceContext={resourceContext}\n navigationZone={navigationZone}\n navigationInitiator={navigationInitiator}\n />\n\n {/* Search form — hidden when isSearchable is false on the SEARCH operation */}\n {isSearchable && (\n <form onSubmit={handleSubmit} role=\"search\" className=\"flex gap-element\">\n <div className=\"flex-1\">\n <InputRoot\n type=\"text\"\n value={searchQuery}\n onChange={(e) => setSearchQuery(e.target.value)}\n placeholder={tc('placeholder')}\n aria-label={tc('placeholder')}\n prefix={searchIcon}\n />\n </div>\n <Button type=\"submit\" disabled={isFetching}>\n {tc('search')}\n </Button>\n </form>\n )}\n\n {/* Filters and Sort controls — shown between search form and results */}\n {(filtersEnabled || (sortFields.length > 0 && hasSearched)) && (\n <div className=\"flex flex-col gap-element-sm\">\n {/* Filter controls — shown when filter fields exist */}\n {filtersEnabled && filterFields.length > 0 && (\n <ResourceLayout_FiltersControl\n resourceType={resourceType}\n filterFields={filterFields}\n currentFilters={filterValues}\n onFiltersChange={handleFiltersChange}\n />\n )}\n {/* Sort control — shown when sortFields exist and results are present */}\n {sortFields.length > 0 && hasSearched && (\n <ResourceLayout_SortControl\n resourceType={resourceType}\n sortFields={sortFields}\n currentSorts={sortStates}\n onSortChange={handleSortChange}\n />\n )}\n </div>\n )}\n\n {/* Selection + bulk actions — LOCAL to this search view (no global bar).\n The select-all/count/clear cluster leads; the contextual bulk actions\n trail (Search has no Create action to replace, so they simply appear\n while a selection is active). */}\n {/* Show the cluster whenever there ARE results OR a selection is still live\n (cross-page): otherwise paginating to an empty page would strip the\n clear/bulk affordances while items remain selected. */}\n {selectionEnabled && hasSearched && (results.length > 0 || selection.selectionCount > 0 || bulkHost.backgroundRunState !== SelectionBarBackgroundRunState.NONE) && (\n <div ref={selectionRowRef} className=\"flex flex-nowrap items-center gap-element\" data-slot=\"collection-selection-row\">\n {/* The select-all leads the row, inset into the results' checkbox column — the same\n control and the same place as the LIST toolbar (see `CollectionSelectAllCheckbox`). */}\n {results.length > 0 && (\n <CollectionSelectAllCheckbox\n state={resolveCollectionSelectAllState(results.length, results.filter((r) => selection.isSelected(r)).length)}\n onToggle={handleToggleAllCurrentPage}\n />\n )}\n <CollectionSelectionControls\n count={selection.selectionCount}\n onClear={selection.clearSelection}\n {...(currentPageAllSelected && !selection.matchAllSelection && pagination.total > results.length && matchListing\n ? {\n matchAllOffer: {\n matchedCount: pagination.total,\n // Search is where the offer earns its place: a person narrows to a population\n // and then wants to act on it, not on the twenty rows that fit. The query it\n // carries is this search — its term AND its filters — so the server\n // re-evaluates exactly what produced these results (#1461).\n onSelectAllMatching: () => selection.selectAllMatching({\n // The host's pins included (#1630): \"all matching\" is what this listing matches.\n filters: ResourceLayoutUtils.withPinnedFilters(filterValues, resourceContext.pinnedFilters) as Record<string, unknown>,\n ...(debouncedQuery ? { search: debouncedQuery } : {}),\n // This view ran its search operation, with a term or without one, so the server re-runs it (#2718).\n listing: matchListing,\n matchedCount: pagination.total,\n }),\n },\n }\n : {})}\n {...(selection.matchAllSelection ? { isMatchAllSelected: true } : {})}\n />\n {bulkHost.isBulkBarMounted && (\n <div className=\"ms-auto min-w-0\">\n <CollectionSelectionBarDensityProvider\n density={selectionBar.density}\n onActionSetChange={selectionBar.reportActionSet}\n onBackgroundRunChange={bulkHost.onBackgroundRunChange}\n >\n <ResourceLayout_OperationBulk\n resourceContext={resourceContext}\n navigationZone={navigationZone}\n navigationInitiator={navigationInitiator}\n selectedItems={selection.selectedItems}\n // `undefined` when the backend's default applies: the mode is then unknown and nothing is reported (#2467).\n selectedItemsDataMode={dataMode}\n matchAllSelection={selection.matchAllSelection}\n explicitIdSelection={selection.explicitIdSelection}\n onSelectIds={selection.selectIds}\n idField={selectionIdField}\n onSelectionClear={selection.clearSelection}\n onSelectionReplace={selection.selectAll}\n />\n </CollectionSelectionBarDensityProvider>\n </div>\n )}\n </div>\n )}\n\n {/* Error state — E-2: replaced inline alert with ErrorDisplay */}\n {error && (\n <ErrorDisplay\n variant=\"error\"\n iconRef={StandardIconReference.ERROR_APPLICATION}\n title={resolveComponentLabel({\n tComponent,\n componentType: FrontendComponentType.RESOURCES_LAYOUTS_SEARCH,\n key: 'errorLoading',\n })}\n message={error.message}\n />\n )}\n\n {/* A CREATE hosted IN PLACE — above the results, for the same reasons as the list host: it is\n an ADDITION rather than a replacement, and a form is not a list item. Outside the\n `hasSearched` gate deliberately, so authoring a new record does not vanish the moment the\n query is cleared. */}\n {inPlaceHost.isCreateActive && (\n <ResourceInPlaceOperationRow navigationZone={navigationZone} className=\"border border-border rounded-lg\" />\n )}\n\n {/* Results */}\n {hasSearched && !error && (\n <>\n {results.length === 0 ? (\n /* A search that matched nothing is not an empty collection. The resource's empty state\n says there are none YET and offers the first one, which is false here; this says the\n query matched nothing, in the list's own words for the same case. */\n <div className=\"text-center py-section text-muted-foreground text-sm\" role=\"status\">\n {resolveComponentLabel({\n tComponent,\n componentType: FrontendComponentType.RESOURCES_LAYOUTS_LIST,\n key: 'noSearchResults',\n })}\n </div>\n ) : (\n /* Same contract as the LIST host: the select-all leads the selection row above, in the\n rows' own checkbox column. */\n <div className=\"space-y-item-sm\">\n <ul\n role=\"list\"\n aria-label={resultsLabel}\n style={resolveCardsGridStyle(cardGridColumns)}\n className={cn(\n resolveCardsContainerClass(cardGridColumns),\n // L-1: subtle refresh affordance (results stay visible while updating)\n isRefreshing && \"opacity-70 transition-opacity duration-150 motion-reduce:transition-none\",\n )}\n aria-busy={isInitialLoad || isRefreshing || undefined}\n >\n {results.map((item, index) => {\n const fieldIdentifier = resourceConfig?.resourceFieldIdentifier as string;\n if (!fieldIdentifier) {\n throw FrontendResourceUtils.buildConfigurationError(\n ErrorCustomMessageReference.FRONTEND_RESOURCE_FIELD_IDENTIFIER_NOT_FOUND,\n { resourceType, component: 'ResourceLayoutPreset_Search' }\n );\n }\n const itemId = FrontendResourceUtils.getResourceObjectId(item, fieldIdentifier);\n\n if (inPlaceHost.isElementActive(itemId)) {\n return (\n <li key={itemId || index} className={cn('list-none', isCardGrid && CARDS_GRID_CELL_CLASS)}>\n <ResourceInPlaceOperationRow navigationZone={navigationZone} />\n </li>\n );\n }\n\n return (\n <li key={itemId || index} className={cn('list-none', isCardGrid && CARDS_GRID_CELL_CLASS)}>\n <ResourceListItemRenderer\n item={item}\n resourceType={resourceType}\n resourceConfig={resourceConfig!}\n registry={registry}\n collectionContextResourceIdentifiers={resourceContext.contextResourceIdentifiers}\n summaryFields={summaryFields}\n fieldLabelsMap={fieldLabelsMap}\n tResourceFieldEnumValue={tResourceFieldEnumValue}\n onItemClick={handleResultClick}\n cardActionPlacement={cardActionPlacement}\n selectable={selectionEnabled}\n isSelected={selection.isSelected(item)}\n selectionActive={selection.selectionCount > 0}\n onToggleSelect={selection.toggleSelection}\n // Selection labels live in the LIST namespace and are reused\n // across surfaces (as CollectionSelectionControls does for\n // `selectAll`); gives the checkbox a \"Select row N\" name\n // instead of falling back to the item title.\n selectAriaLabel={tComponent(FrontendComponentType.RESOURCES_LAYOUTS_LIST, 'selectRow', { row: index + 1 })}\n interactiveClasses={{\n hover: ghostRecipe.states.hover,\n transition: ghostRecipe.motion.transition,\n }}\n />\n </li>\n );\n })}\n </ul>\n </div>\n )}\n\n {/* Pagination */}\n {/* (kept inside the `hasSearched && !error` branch so it stays in sync with results) */}\n <ResourceLayout_Pagination\n pagination={pagination}\n onPaginationChange={setPagination}\n />\n </>\n )}\n </div>\n </LoadingGate>\n );\n};\n\nexport function ResourceLayout_Search({ preset, ...props }: ResourceLayoutPreset_Search_DefaultProps & ComponentPresetProps): React.JSX.Element {\n const ComponentOverride = resolveResourceOperationCustomView<ResourceLayoutPreset_Search_DefaultProps>(props.resourceContext.operation);\n const operationPreset = resolveResourceOperationPresetKey(props.resourceContext.operation);\n const resolvedPreset = preset ?? operationPreset ?? CorePreset_ResourceLayout_Search.DEFAULT;\n\n const body = ComponentOverride\n ? <ComponentOverride {...props} />\n : React.createElement(\n createComponentResolver<ResourceLayoutPreset_Search_DefaultProps>(FrontendComponentType.RESOURCES_LAYOUTS_SEARCH, 'ResourceLayout_Search')(resolvedPreset),\n props,\n );\n\n // SEARCH is a collection surface too — it renders rows, it offers selection, and each row carries\n // an action bar. Without the host here, the same INLINE action would transform its row in the LIST\n // and quietly degrade to an overlay in SEARCH: one operation, two behaviours, decided by which\n // screen the user happened to be on. Same reasoning as the cards↔table pair inside the list host.\n // The collection marker sits HERE, around whatever renders the collection — the default preset, an app preset or a\n // custom view — and from the first paint, before the collection's own labels have loaded, so a record body holding\n // it is wide from the start (`DisplayLayout`'s derived width). A real box, not `display: contents`, which would drop\n // the spacing a parent puts between its children; a flex column that grows, so a destination declaring\n // `zoneContentFillsHeight` still reaches a preset or custom view whose root fills it (`flex-1 min-h-0`).\n // Inside an ordinary block parent `flex-1` does nothing.\n // The field reader is provided for the organization the search is addressed in (#4434 review F2), as in the list.\n return (\n <InPlaceOperationProvider resourceType={props.resourceContext.resourceType}>\n <ViewerFieldReaderProvider organizationId={resolveActionSurfaceOrganizationId(props.resourceContext.contextResourceIdentifiers, undefined) ?? undefined}>\n <div className=\"flex min-h-0 flex-1 flex-col\" {...{ [COLLECTION_SURFACE_ATTRIBUTE]: true }}>{body}</div>\n </ViewerFieldReaderProvider>\n </InPlaceOperationProvider>\n );\n}\n"]}
|
|
@@ -23,7 +23,7 @@ export interface EmbedResourceOwnedChartViewProps {
|
|
|
23
23
|
urlParamValues?: Record<string, string>;
|
|
24
24
|
className?: string;
|
|
25
25
|
}
|
|
26
|
-
export declare function EmbedResourceOwnedChartView({ resourceContext, viewRef, inputs, urlParamValues, className, }: EmbedResourceOwnedChartViewProps): React.JSX.Element;
|
|
26
|
+
export declare function EmbedResourceOwnedChartView({ resourceContext, viewRef, inputs, urlParamValues, className, }: EmbedResourceOwnedChartViewProps): React.JSX.Element | null;
|
|
27
27
|
export interface EmbedResourceOwnedExecutionViewProps {
|
|
28
28
|
resourceContext: FrontendResourceOperationContext;
|
|
29
29
|
viewRef: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceOwnedViewEmbeds.d.ts","sourceRoot":"","sources":["../../../../src/components/resources/ResourceOwnedViewEmbeds.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,0BAA0B,EAC1B,cAAc,EACf,MAAM,wDAAwD,CAAC;AAChE,OAAO,KAAK,EACV,gCAAgC,EACjC,MAAM,+DAA+D,CAAC;
|
|
1
|
+
{"version":3,"file":"ResourceOwnedViewEmbeds.d.ts","s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