@wildo-ai/saas-frontend-lib 1.1.16 → 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/compliance/EmbeddedSigningFrame.d.ts.map +1 -1
- package/dist/esm/components/compliance/EmbeddedSigningFrame.js +17 -6
- package/dist/esm/components/compliance/EmbeddedSigningFrame.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/data-display/approval-seal.d.ts +7 -5
- package/dist/esm/components/data-display/approval-seal.d.ts.map +1 -1
- package/dist/esm/components/data-display/approval-seal.js +10 -4
- package/dist/esm/components/data-display/approval-seal.js.map +1 -1
- package/dist/esm/components/data-display/signature-requests.d.ts +81 -0
- package/dist/esm/components/data-display/signature-requests.d.ts.map +1 -0
- package/dist/esm/components/data-display/signature-requests.js +123 -0
- package/dist/esm/components/data-display/signature-requests.js.map +1 -0
- 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 +22 -24
- 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 +75 -47
- 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/NavigationItemBadge.d.ts +16 -0
- package/dist/esm/components/navigation/NavigationItemBadge.d.ts.map +1 -1
- package/dist/esm/components/navigation/NavigationItemBadge.js +14 -2
- package/dist/esm/components/navigation/NavigationItemBadge.js.map +1 -1
- package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.d.ts +3 -3
- package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js +3 -3
- package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js.map +1 -1
- package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts +5 -13
- package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js +30 -255
- package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js.map +1 -1
- package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts +22 -1
- package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js +57 -26
- package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js +40 -4
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts +1 -1
- package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js +26 -4
- package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js.map +1 -1
- package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts +31 -0
- package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts.map +1 -0
- package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js +42 -0
- package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js.map +1 -0
- package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts +76 -0
- package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts.map +1 -0
- package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js +268 -0
- package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js.map +1 -0
- package/dist/esm/components/navigation/command.d.ts +5 -0
- package/dist/esm/components/navigation/command.d.ts.map +1 -1
- package/dist/esm/components/navigation/command.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 +51 -12
- 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 +21 -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 +17 -7
- 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 +4 -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/collection/board/ResourceCollectionBody_Board.d.ts.map +1 -1
- package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js +4 -1
- package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js.map +1 -1
- package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.d.ts.map +1 -1
- package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js +4 -1
- package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js.map +1 -1
- package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.d.ts.map +1 -1
- package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.js +4 -1
- package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.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/Group.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/Group.js +4 -1
- package/dist/esm/components/resources/skeleton/Group.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/sections/ContentSectionContainer.d.ts.map +1 -1
- package/dist/esm/components/sections/ContentSectionContainer.js +11 -7
- package/dist/esm/components/sections/ContentSectionContainer.js.map +1 -1
- package/dist/esm/components/sections/content-section.d.ts +1 -3
- package/dist/esm/components/sections/content-section.d.ts.map +1 -1
- package/dist/esm/components/sections/content-section.js.map +1 -1
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.d.ts.map +1 -1
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.js +2 -1
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.js.map +1 -1
- package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts +12 -0
- package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts.map +1 -1
- package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js +28 -6
- package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.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/typography/document-heading-level.d.ts +28 -0
- package/dist/esm/components/typography/document-heading-level.d.ts.map +1 -0
- package/dist/esm/components/typography/document-heading-level.js +63 -0
- package/dist/esm/components/typography/document-heading-level.js.map +1 -0
- 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 +52 -22
- 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 +76 -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 +47 -12
- 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 +87 -32
- 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 +8 -8
- 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/funnel.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js +7 -3
- package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js +6 -2
- package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js +8 -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/hierarchical-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.js +13 -9
- package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.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 +9 -8
- 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/parallel.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.js +2 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/parallel.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 +10 -11
- 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/radar.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js +2 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.js +5 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/sankey.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 +7 -3
- 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/app-shell.schemas.d.ts +87 -16
- package/dist/esm/core/app-shell/app-shell.schemas.d.ts.map +1 -1
- package/dist/esm/core/app-shell/app-shell.schemas.js +16 -0
- package/dist/esm/core/app-shell/app-shell.schemas.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 +66 -10
- 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 +63 -8
- 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 +45 -3
- 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/search/command-score.d.ts +33 -0
- package/dist/esm/core/search/command-score.d.ts.map +1 -0
- package/dist/esm/core/search/command-score.js +109 -0
- package/dist/esm/core/search/command-score.js.map +1 -0
- 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 +19 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +22 -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
|
@@ -9,6 +9,25 @@ import { FrontendInsertedViewHostKind, FrontendInsertedViewKind, type FrontendIn
|
|
|
9
9
|
/**
|
|
10
10
|
* @wildo_source:part:start saas.frontend.chart-view.inserted-declaration facet:layer:frontend facet:family:chart-view
|
|
11
11
|
*
|
|
12
|
+
* Where a chart view surfaces: inside its operation host, or only where something embeds it by name.
|
|
13
|
+
*
|
|
14
|
+
* A chart declared on a resource is, by default, CONTENT of one operation host (`operationLike`): every default
|
|
15
|
+
* instance of that host renders it, wherever the host itself is rendered. That includes the same list embedded in
|
|
16
|
+
* another record's page (a related list), so a chart about something other than that list's context then shows on a
|
|
17
|
+
* page it does not describe. A chart that exists only to be embedded (`EmbedChart` in a view, a launcher) declares
|
|
18
|
+
* `surfacing: EMBEDS_ONLY` and is inserted into no host.
|
|
19
|
+
*/
|
|
20
|
+
export declare enum InsertedChartSurfacing {
|
|
21
|
+
/** Rendered inside every default instance of its `operationLike` host, and embeddable by name. The default. */
|
|
22
|
+
OPERATION_HOST = "operation_host",
|
|
23
|
+
/**
|
|
24
|
+
* Rendered only where a view embeds it by name (`EmbedChart`) or a launcher opens it. `operationLike` places it in
|
|
25
|
+
* no host. Use it for a chart whose data is not about the host's records: a person's whole week, an organization's
|
|
26
|
+
* totals.
|
|
27
|
+
*/
|
|
28
|
+
EMBEDS_ONLY = "embeds_only"
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
12
31
|
* Host-owned inserted chart declaration — the **only** chart authoring surface.
|
|
13
32
|
*
|
|
14
33
|
* Design decision (framework mindset): chart views are intentionally
|
|
@@ -19,18 +38,21 @@ import { FrontendInsertedViewHostKind, FrontendInsertedViewKind, type FrontendIn
|
|
|
19
38
|
* app-level authoring contract for the same runtime concept created drift
|
|
20
39
|
* between authoring sites and specification extraction.
|
|
21
40
|
*
|
|
22
|
-
* Operation surfacing is declared
|
|
41
|
+
* Operation surfacing is declared by two fields, `operationLike` and `surfacing`:
|
|
23
42
|
*
|
|
24
43
|
* - `operationLike` names the single resource operation host this chart is
|
|
25
|
-
* rendered inside of (defaulting to `CoreResourceOperation.READ`)
|
|
44
|
+
* rendered inside of (defaulting to `CoreResourceOperation.READ`), unless
|
|
45
|
+
* `surfacing` takes it out of every host.
|
|
26
46
|
* - At render time, `ResourceLayout_InsertedViews` filters the resource's
|
|
27
47
|
* `chartViews` directly by the current operation host against `operationLike`.
|
|
28
48
|
* There is no operation-level view-ref list and no compiled derivation —
|
|
29
49
|
* the chart declaration itself carries the link.
|
|
30
|
-
* - There is no list analogue (`surfaceInOperations`) for charts —
|
|
31
|
-
*
|
|
50
|
+
* - There is no list analogue (`surfaceInOperations`) for charts — a chart
|
|
51
|
+
* is rendered in at most one operation host. The list-typed
|
|
32
52
|
* authoring field is reserved for execution views, which legitimately
|
|
33
53
|
* surface in multiple operation hosts.
|
|
54
|
+
* - `surfacing: EMBEDS_ONLY` takes a chart out of every host: it is then rendered only where a view embeds it by
|
|
55
|
+
* name (see {@link InsertedChartSurfacing}).
|
|
34
56
|
*/
|
|
35
57
|
export declare const InsertedChartDeclarationSchema: z.ZodObject<{
|
|
36
58
|
scope: z.ZodLiteral<FrontendView_ScopeMode.RESOURCE>;
|
|
@@ -173,6 +195,7 @@ export declare const InsertedChartDeclarationSchema: z.ZodObject<{
|
|
|
173
195
|
labelFormatter: z.ZodOptional<z.ZodString>;
|
|
174
196
|
emphasisScale: z.ZodOptional<z.ZodBoolean>;
|
|
175
197
|
markLines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
198
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
176
199
|
type: z.ZodOptional<z.ZodEnum<{
|
|
177
200
|
min: "min";
|
|
178
201
|
max: "max";
|
|
@@ -180,7 +203,7 @@ export declare const InsertedChartDeclarationSchema: z.ZodObject<{
|
|
|
180
203
|
}>>;
|
|
181
204
|
yValue: z.ZodOptional<z.ZodNumber>;
|
|
182
205
|
xValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
183
|
-
|
|
206
|
+
labelKey: z.ZodOptional<z.ZodString>;
|
|
184
207
|
color: z.ZodOptional<z.ZodString>;
|
|
185
208
|
lineType: z.ZodOptional<z.ZodEnum<{
|
|
186
209
|
solid: "solid";
|
|
@@ -189,12 +212,13 @@ export declare const InsertedChartDeclarationSchema: z.ZodObject<{
|
|
|
189
212
|
}>>;
|
|
190
213
|
}, z.core.$strip>>>;
|
|
191
214
|
markPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
215
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
192
216
|
type: z.ZodOptional<z.ZodEnum<{
|
|
193
217
|
min: "min";
|
|
194
218
|
max: "max";
|
|
195
219
|
average: "average";
|
|
196
220
|
}>>;
|
|
197
|
-
|
|
221
|
+
labelKey: z.ZodOptional<z.ZodString>;
|
|
198
222
|
symbol: z.ZodOptional<z.ZodEnum<{
|
|
199
223
|
circle: "circle";
|
|
200
224
|
triangle: "triangle";
|
|
@@ -213,7 +237,6 @@ export declare const InsertedChartDeclarationSchema: z.ZodObject<{
|
|
|
213
237
|
colorMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
214
238
|
order: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
215
239
|
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
216
|
-
labelMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
217
240
|
}, z.core.$strip>>;
|
|
218
241
|
}, z.core.$strip>>;
|
|
219
242
|
inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -264,8 +287,6 @@ export declare const InsertedChartDeclarationSchema: z.ZodObject<{
|
|
|
264
287
|
animated: z.ZodOptional<z.ZodBoolean>;
|
|
265
288
|
background: z.ZodOptional<z.ZodString>;
|
|
266
289
|
title: z.ZodOptional<z.ZodObject<{
|
|
267
|
-
text: z.ZodOptional<z.ZodString>;
|
|
268
|
-
subtext: z.ZodOptional<z.ZodString>;
|
|
269
290
|
left: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
270
291
|
top: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
271
292
|
textAlign: z.ZodOptional<z.ZodEnum<{
|
|
@@ -364,8 +385,6 @@ export declare const InsertedChartDeclarationSchema: z.ZodObject<{
|
|
|
364
385
|
waterfall: z.ZodOptional<z.ZodObject<{
|
|
365
386
|
gainColor: z.ZodOptional<z.ZodString>;
|
|
366
387
|
lossColor: z.ZodOptional<z.ZodString>;
|
|
367
|
-
gainLabel: z.ZodOptional<z.ZodString>;
|
|
368
|
-
lossLabel: z.ZodOptional<z.ZodString>;
|
|
369
388
|
gainLabelKey: z.ZodOptional<z.ZodString>;
|
|
370
389
|
lossLabelKey: z.ZodOptional<z.ZodString>;
|
|
371
390
|
}, z.core.$strip>>;
|
|
@@ -540,6 +559,15 @@ export declare const InsertedChartDeclarationSchema: z.ZodObject<{
|
|
|
540
559
|
valueFormat: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").ChartKpiValueFormat>>;
|
|
541
560
|
maximumFractionDigits: z.ZodOptional<z.ZodNumber>;
|
|
542
561
|
showProgress: z.ZodOptional<z.ZodBoolean>;
|
|
562
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
563
|
+
value: z.ZodNumber;
|
|
564
|
+
direction: z.ZodEnum<typeof import("@wildo-ai/saas-models").ChartKpiTargetDirection>;
|
|
565
|
+
}, z.core.$strict>>;
|
|
566
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
567
|
+
dateField: z.ZodString;
|
|
568
|
+
lengthDays: z.ZodNumber;
|
|
569
|
+
comparePrevious: z.ZodOptional<z.ZodBoolean>;
|
|
570
|
+
}, z.core.$strict>>;
|
|
543
571
|
}, z.core.$loose>]>>;
|
|
544
572
|
i18n: z.ZodOptional<z.ZodObject<{
|
|
545
573
|
titleKey: z.ZodOptional<z.ZodString>;
|
|
@@ -554,6 +582,7 @@ export declare const InsertedChartDeclarationSchema: z.ZodObject<{
|
|
|
554
582
|
}, z.core.$strip>;
|
|
555
583
|
isAddressable: z.ZodDefault<z.ZodBoolean>;
|
|
556
584
|
operationLike: z.ZodDefault<z.ZodEnum<typeof CoreResourceOperation>>;
|
|
585
|
+
surfacing: z.ZodOptional<z.ZodEnum<typeof InsertedChartSurfacing>>;
|
|
557
586
|
primaryScope: z.ZodDefault<z.ZodEnum<typeof ResourcePrimaryScope>>;
|
|
558
587
|
inputBindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
559
588
|
inputRef: z.ZodString;
|
|
@@ -571,11 +600,17 @@ export interface InsertedChartDeclaration {
|
|
|
571
600
|
additionalResourceRequirements?: FrontendResource_ParentResourceRequirement[];
|
|
572
601
|
isAddressable: boolean;
|
|
573
602
|
operationLike: CoreResourceOperation;
|
|
603
|
+
/** Absent: `OPERATION_HOST`. See {@link InsertedChartSurfacing}. */
|
|
604
|
+
surfacing?: InsertedChartSurfacing;
|
|
574
605
|
primaryScope: ResourcePrimaryScope;
|
|
575
606
|
inputBindings?: InsertedViewInputBinding[];
|
|
576
607
|
/** Chart icon (lucide component reference or StandardIconReference string) for launcher surfaces. */
|
|
577
608
|
icon?: IconLike;
|
|
578
609
|
}
|
|
610
|
+
/** Whether a chart view is inserted into its `operationLike` host: true unless it declares `surfacing: EMBEDS_ONLY`. */
|
|
611
|
+
export declare function isChartViewInsertedIntoOperationHost(chartView: {
|
|
612
|
+
readonly surfacing?: InsertedChartSurfacing;
|
|
613
|
+
}): boolean;
|
|
579
614
|
/** @wildo_source:part:end saas.frontend.chart-view.inserted-declaration */
|
|
580
615
|
export declare function isStandaloneRoutableInsertedChartView(chartView: InsertedChartDeclaration | undefined): boolean;
|
|
581
616
|
export declare const ResolvedInsertedChartDescriptorSchema: z.ZodObject<{
|
|
@@ -707,6 +742,7 @@ export declare const ResolvedInsertedChartDescriptorSchema: z.ZodObject<{
|
|
|
707
742
|
labelFormatter: z.ZodOptional<z.ZodString>;
|
|
708
743
|
emphasisScale: z.ZodOptional<z.ZodBoolean>;
|
|
709
744
|
markLines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
745
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
710
746
|
type: z.ZodOptional<z.ZodEnum<{
|
|
711
747
|
min: "min";
|
|
712
748
|
max: "max";
|
|
@@ -714,7 +750,7 @@ export declare const ResolvedInsertedChartDescriptorSchema: z.ZodObject<{
|
|
|
714
750
|
}>>;
|
|
715
751
|
yValue: z.ZodOptional<z.ZodNumber>;
|
|
716
752
|
xValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
717
|
-
|
|
753
|
+
labelKey: z.ZodOptional<z.ZodString>;
|
|
718
754
|
color: z.ZodOptional<z.ZodString>;
|
|
719
755
|
lineType: z.ZodOptional<z.ZodEnum<{
|
|
720
756
|
solid: "solid";
|
|
@@ -723,12 +759,13 @@ export declare const ResolvedInsertedChartDescriptorSchema: z.ZodObject<{
|
|
|
723
759
|
}>>;
|
|
724
760
|
}, z.core.$strip>>>;
|
|
725
761
|
markPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
762
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
726
763
|
type: z.ZodOptional<z.ZodEnum<{
|
|
727
764
|
min: "min";
|
|
728
765
|
max: "max";
|
|
729
766
|
average: "average";
|
|
730
767
|
}>>;
|
|
731
|
-
|
|
768
|
+
labelKey: z.ZodOptional<z.ZodString>;
|
|
732
769
|
symbol: z.ZodOptional<z.ZodEnum<{
|
|
733
770
|
circle: "circle";
|
|
734
771
|
triangle: "triangle";
|
|
@@ -747,7 +784,6 @@ export declare const ResolvedInsertedChartDescriptorSchema: z.ZodObject<{
|
|
|
747
784
|
colorMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
748
785
|
order: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
749
786
|
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
750
|
-
labelMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
751
787
|
}, z.core.$strip>>;
|
|
752
788
|
}, z.core.$strip>>;
|
|
753
789
|
inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -798,8 +834,6 @@ export declare const ResolvedInsertedChartDescriptorSchema: z.ZodObject<{
|
|
|
798
834
|
animated: z.ZodOptional<z.ZodBoolean>;
|
|
799
835
|
background: z.ZodOptional<z.ZodString>;
|
|
800
836
|
title: z.ZodOptional<z.ZodObject<{
|
|
801
|
-
text: z.ZodOptional<z.ZodString>;
|
|
802
|
-
subtext: z.ZodOptional<z.ZodString>;
|
|
803
837
|
left: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
804
838
|
top: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
805
839
|
textAlign: z.ZodOptional<z.ZodEnum<{
|
|
@@ -898,8 +932,6 @@ export declare const ResolvedInsertedChartDescriptorSchema: z.ZodObject<{
|
|
|
898
932
|
waterfall: z.ZodOptional<z.ZodObject<{
|
|
899
933
|
gainColor: z.ZodOptional<z.ZodString>;
|
|
900
934
|
lossColor: z.ZodOptional<z.ZodString>;
|
|
901
|
-
gainLabel: z.ZodOptional<z.ZodString>;
|
|
902
|
-
lossLabel: z.ZodOptional<z.ZodString>;
|
|
903
935
|
gainLabelKey: z.ZodOptional<z.ZodString>;
|
|
904
936
|
lossLabelKey: z.ZodOptional<z.ZodString>;
|
|
905
937
|
}, z.core.$strip>>;
|
|
@@ -1074,6 +1106,15 @@ export declare const ResolvedInsertedChartDescriptorSchema: z.ZodObject<{
|
|
|
1074
1106
|
valueFormat: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").ChartKpiValueFormat>>;
|
|
1075
1107
|
maximumFractionDigits: z.ZodOptional<z.ZodNumber>;
|
|
1076
1108
|
showProgress: z.ZodOptional<z.ZodBoolean>;
|
|
1109
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
1110
|
+
value: z.ZodNumber;
|
|
1111
|
+
direction: z.ZodEnum<typeof import("@wildo-ai/saas-models").ChartKpiTargetDirection>;
|
|
1112
|
+
}, z.core.$strict>>;
|
|
1113
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
1114
|
+
dateField: z.ZodString;
|
|
1115
|
+
lengthDays: z.ZodNumber;
|
|
1116
|
+
comparePrevious: z.ZodOptional<z.ZodBoolean>;
|
|
1117
|
+
}, z.core.$strict>>;
|
|
1077
1118
|
}, z.core.$loose>]>>;
|
|
1078
1119
|
i18n: z.ZodOptional<z.ZodObject<{
|
|
1079
1120
|
titleKey: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-view.frontend.schemas.d.ts","sourceRoot":"","sources":["../../../../src/core/config/chart-view.frontend.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,4BAA4B,EAC7B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,mEAAmE,CAAC;AAEpI,OAAO,KAAK,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,+DAA+D,CAAC;AACnI,OAAO,EAIL,4BAA4B,EAC5B,wBAAwB,EAExB,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC9B,MAAM,kCAAkC,CAAC;AAE1C
|
|
1
|
+
{"version":3,"file":"chart-view.frontend.schemas.d.ts","sourceRoot":"","sources":["../../../../src/core/config/chart-view.frontend.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,4BAA4B,EAC7B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,mEAAmE,CAAC;AAEpI,OAAO,KAAK,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,+DAA+D,CAAC;AACnI,OAAO,EAIL,4BAA4B,EAC5B,wBAAwB,EAExB,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC9B,MAAM,kCAAkC,CAAC;AAE1C;;;;;;;;;;GAUG;AACH,oBAAY,sBAAsB;IAChC,+GAA+G;IAC/G,cAAc,mBAAmB;IACjC;;;;OAIG;IACH,WAAW,gBAAgB;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH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GACjB,CAAC"}
|
|
@@ -8,6 +8,26 @@ import { InsertedViewInputBindingSchema, FrontendInsertedViewIdentitySchema, cre
|
|
|
8
8
|
/**
|
|
9
9
|
* @wildo_source:part:start saas.frontend.chart-view.inserted-declaration facet:layer:frontend facet:family:chart-view
|
|
10
10
|
*
|
|
11
|
+
* Where a chart view surfaces: inside its operation host, or only where something embeds it by name.
|
|
12
|
+
*
|
|
13
|
+
* A chart declared on a resource is, by default, CONTENT of one operation host (`operationLike`): every default
|
|
14
|
+
* instance of that host renders it, wherever the host itself is rendered. That includes the same list embedded in
|
|
15
|
+
* another record's page (a related list), so a chart about something other than that list's context then shows on a
|
|
16
|
+
* page it does not describe. A chart that exists only to be embedded (`EmbedChart` in a view, a launcher) declares
|
|
17
|
+
* `surfacing: EMBEDS_ONLY` and is inserted into no host.
|
|
18
|
+
*/
|
|
19
|
+
export var InsertedChartSurfacing;
|
|
20
|
+
(function (InsertedChartSurfacing) {
|
|
21
|
+
/** Rendered inside every default instance of its `operationLike` host, and embeddable by name. The default. */
|
|
22
|
+
InsertedChartSurfacing["OPERATION_HOST"] = "operation_host";
|
|
23
|
+
/**
|
|
24
|
+
* Rendered only where a view embeds it by name (`EmbedChart`) or a launcher opens it. `operationLike` places it in
|
|
25
|
+
* no host. Use it for a chart whose data is not about the host's records: a person's whole week, an organization's
|
|
26
|
+
* totals.
|
|
27
|
+
*/
|
|
28
|
+
InsertedChartSurfacing["EMBEDS_ONLY"] = "embeds_only";
|
|
29
|
+
})(InsertedChartSurfacing || (InsertedChartSurfacing = {}));
|
|
30
|
+
/**
|
|
11
31
|
* Host-owned inserted chart declaration — the **only** chart authoring surface.
|
|
12
32
|
*
|
|
13
33
|
* Design decision (framework mindset): chart views are intentionally
|
|
@@ -18,18 +38,21 @@ import { InsertedViewInputBindingSchema, FrontendInsertedViewIdentitySchema, cre
|
|
|
18
38
|
* app-level authoring contract for the same runtime concept created drift
|
|
19
39
|
* between authoring sites and specification extraction.
|
|
20
40
|
*
|
|
21
|
-
* Operation surfacing is declared
|
|
41
|
+
* Operation surfacing is declared by two fields, `operationLike` and `surfacing`:
|
|
22
42
|
*
|
|
23
43
|
* - `operationLike` names the single resource operation host this chart is
|
|
24
|
-
* rendered inside of (defaulting to `CoreResourceOperation.READ`)
|
|
44
|
+
* rendered inside of (defaulting to `CoreResourceOperation.READ`), unless
|
|
45
|
+
* `surfacing` takes it out of every host.
|
|
25
46
|
* - At render time, `ResourceLayout_InsertedViews` filters the resource's
|
|
26
47
|
* `chartViews` directly by the current operation host against `operationLike`.
|
|
27
48
|
* There is no operation-level view-ref list and no compiled derivation —
|
|
28
49
|
* the chart declaration itself carries the link.
|
|
29
|
-
* - There is no list analogue (`surfaceInOperations`) for charts —
|
|
30
|
-
*
|
|
50
|
+
* - There is no list analogue (`surfaceInOperations`) for charts — a chart
|
|
51
|
+
* is rendered in at most one operation host. The list-typed
|
|
31
52
|
* authoring field is reserved for execution views, which legitimately
|
|
32
53
|
* surface in multiple operation hosts.
|
|
54
|
+
* - `surfacing: EMBEDS_ONLY` takes a chart out of every host: it is then rendered only where a view embeds it by
|
|
55
|
+
* name (see {@link InsertedChartSurfacing}).
|
|
33
56
|
*/
|
|
34
57
|
export const InsertedChartDeclarationSchema = z.object({
|
|
35
58
|
/**
|
|
@@ -49,8 +72,9 @@ export const InsertedChartDeclarationSchema = z.object({
|
|
|
49
72
|
/**
|
|
50
73
|
* Operation host this chart is rendered inside of.
|
|
51
74
|
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
75
|
+
* With `surfacing`, the declarative source of truth for which resource
|
|
76
|
+
* operation surface the chart is surfaced in: this field names the host, and
|
|
77
|
+
* `surfacing: EMBEDS_ONLY` places the chart in none. `ResourceLayout_InsertedViews`
|
|
54
78
|
* filters `chartViews` directly against this field at render time, and the
|
|
55
79
|
* specification layer uses `collectOperationLikeViewRefs` with the same
|
|
56
80
|
* default to mirror per-operation linked view refs. If this default is ever
|
|
@@ -58,19 +82,30 @@ export const InsertedChartDeclarationSchema = z.object({
|
|
|
58
82
|
* in lockstep, otherwise host rendering and spec output disagree.
|
|
59
83
|
*/
|
|
60
84
|
operationLike: z.enum(CoreResourceOperation).default(CoreResourceOperation.READ),
|
|
85
|
+
/**
|
|
86
|
+
* Whether the chart is inserted into its `operationLike` host (`OPERATION_HOST`, also what an absent value means) or
|
|
87
|
+
* rendered only where something embeds it by name (`EMBEDS_ONLY`). Read it through
|
|
88
|
+
* {@link isChartViewInsertedIntoOperationHost}, which the host layout and the specification layer both use, so the
|
|
89
|
+
* two cannot disagree about where the chart shows.
|
|
90
|
+
*/
|
|
91
|
+
surfacing: z.enum(InsertedChartSurfacing).optional(),
|
|
61
92
|
primaryScope: z.enum(ResourcePrimaryScope).default(ResourcePrimaryScope.ORGANIZATIONS),
|
|
62
93
|
inputBindings: z.array(InsertedViewInputBindingSchema).optional(),
|
|
63
94
|
/**
|
|
64
95
|
* Chart icon — lucide component reference (not `<JSX />`) or a StandardIconReference string.
|
|
65
96
|
* Surfaces on every launcher that targets this chart (a `RESOURCE_VIEW` sidebar or command-menu
|
|
66
97
|
* entry); without it that launcher renders the icon registry's alert-circle placeholder, which
|
|
67
|
-
* reads as a warning
|
|
98
|
+
* reads as a warning. Optional because a chart is first inline CONTENT of its operation
|
|
68
99
|
* host and is often never launched at all. Registered by the `IconRegistryBridge` under the
|
|
69
100
|
* `view-chart-{ref}` custom-icon key, the key `resolveConcreteResourceViewTarget` asks for.
|
|
70
101
|
* Declared in BOTH the schema and the interface — this object is Zod-parsed and strips unknown keys.
|
|
71
102
|
*/
|
|
72
103
|
icon: z.custom().optional(),
|
|
73
104
|
});
|
|
105
|
+
/** Whether a chart view is inserted into its `operationLike` host: true unless it declares `surfacing: EMBEDS_ONLY`. */
|
|
106
|
+
export function isChartViewInsertedIntoOperationHost(chartView) {
|
|
107
|
+
return chartView.surfacing !== InsertedChartSurfacing.EMBEDS_ONLY;
|
|
108
|
+
}
|
|
74
109
|
/** @wildo_source:part:end saas.frontend.chart-view.inserted-declaration */
|
|
75
110
|
export function isStandaloneRoutableInsertedChartView(chartView) {
|
|
76
111
|
if (!chartView || chartView.isAddressable !== true) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-view.frontend.schemas.js","sourceRoot":"","sources":["../../../../src/core/config/chart-view.frontend.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAYpF,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AAEpG,OAAO,EAAE,gDAAgD,EAAE,MAAM,mEAAmE,CAAC;AAErI,OAAO,EACL,8BAA8B,EAC9B,kCAAkC,EAClC,kCAAkC,EAClC,4BAA4B,EAC5B,wBAAwB,EACxB,4BAA4B,GAG7B,MAAM,kCAAkC,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD;;;;;;;OAOG;IACH,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC;IACjD,2BAA2B,EAAE,gDAAgD,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAChG,8BAA8B,EAAE,gDAAgD,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAEnG,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,eAAe,EAAE,qBAAqB;IACtC,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAEzC;;;;;;;;;;OAUG;IACH,aAAa,EAAE,C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AAG,EAAE,KAAK,CAAC,IAAI,YAAY,CAAC,OAAO,EAAE,EAAE,CAAC;QAClD,yFAAyF;QACzF,0CAA0C;QAC1C,IAAI,CAAC,KAAK,IAAI,GAAG,CAAC,UAAU,CAAC,sCAAsC,CAAC,IAAI,GAAG,KAAK,uBAAuB,EAAE,CAAC;YACxG,SAAS;QACX,CAAC;QAED,cAAc,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IAC9B,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;AAC7E,CAAC","sourcesContent":["import { z } from 'zod';\nimport { CoreResourceOperation, ResourcePrimaryScope } from '@wildo-ai/saas-models';\nimport type {\n ChartDefinition,\n ChartSeriesDefinition,\n ChartAccessControl,\n ChartAppearance,\n ChartTypeConfig,\n ChartInputDefinition,\n ChartInputValues,\n AggregationQuery,\n FrontendChartRegistrationRef,\n} from '@wildo-ai/saas-models';\nimport { ChartDefinitionSchema, ChartInputValuesSchema } from '@wildo-ai/saas-models';\nimport type { IconLike } from '@wildo-ai/zod-decorators';\nimport { FrontendView_ScopeMode } from './views-frontend.schemas';\nimport { HOSTED_PANE_QUERY_PARAM } from '~wildo-frontend-lib/core/navigation/hosted-pane.constants';\nimport type { FrontendResource_ParentResourceRequirement } from '~wildo-frontend-lib/core/resources/resource-path.frontend.schemas';\nimport { FrontendResource_ParentResourceRequirementSchema } from '~wildo-frontend-lib/core/resources/resource-path.frontend.schemas';\nimport type { FrontendResourcesRegistry, ResourceUIBehavior } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport {\n InsertedViewInputBindingSchema,\n FrontendInsertedViewIdentitySchema,\n createFrontendInsertedViewIdentity,\n FrontendInsertedViewHostKind,\n FrontendInsertedViewKind,\n parseFrontendInsertedViewRef,\n type FrontendInsertedViewIdentity,\n type InsertedViewInputBinding,\n} from './inserted-view.frontend.schemas';\n\n/**\n * @wildo_source:part:start saas.frontend.chart-view.inserted-declaration facet:layer:frontend facet:family:chart-view\n *\n * Host-owned inserted chart declaration — the **only** chart authoring surface.\n *\n * Design decision (framework mindset): chart views are intentionally\n * **resource-scoped only**. The former app-level `ChartViewDefinition` /\n * `ChartViewDefinitionSchema` and the `AppConfiguration_Frontend.charts`\n * authoring seam were removed because an application-scoped chart has no\n * meaningful operation host to be rendered inside of, and keeping a separate\n * app-level authoring contract for the same runtime concept created drift\n * between authoring sites and specification extraction.\n *\n * Operation surfacing is declared exclusively via `operationLike`:\n *\n * - `operationLike` names the single resource operation host this chart is\n * rendered inside of (defaulting to `CoreResourceOperation.READ`).\n * - At render time, `ResourceLayout_InsertedViews` filters the resource's\n * `chartViews` directly by the current operation host against `operationLike`.\n * There is no operation-level view-ref list and no compiled derivation —\n * the chart declaration itself carries the link.\n * - There is no list analogue (`surfaceInOperations`) for charts — charts\n * are always rendered in exactly one operation host. The list-typed\n * authoring field is reserved for execution views, which legitimately\n * surface in multiple operation hosts.\n */\nexport const InsertedChartDeclarationSchema = z.object({\n /**\n * Charts are resource-owned inserted surfaces only.\n *\n * The scope is a Zod literal (rather than the open `FrontendView_ScopeMode`\n * enum) so that an app-scoped chart is impossible by construction — the\n * schema refuses to parse one at authoring time, and the TS type refuses\n * to let a caller construct one at compile time.\n */\n scope: z.literal(FrontendView_ScopeMode.RESOURCE),\n parentResourcesRequirements: FrontendResource_ParentResourceRequirementSchema.array().optional(),\n additionalResourceRequirements: FrontendResource_ParentResourceRequirementSchema.array().optional(),\n\n ref: z.string().min(1),\n chartDefinition: ChartDefinitionSchema,\n isAddressable: z.boolean().default(false),\n\n /**\n * Operation host this chart is rendered inside of.\n *\n * Also serves as the **single** declarative source of truth for which\n * resource operation surface the chart is surfaced in. `ResourceLayout_InsertedViews`\n * filters `chartViews` directly against this field at render time, and the\n * specification layer uses `collectOperationLikeViewRefs` with the same\n * default to mirror per-operation linked view refs. If this default is ever\n * changed, the matching runtime default at both call sites MUST be updated\n * in lockstep, otherwise host rendering and spec output disagree.\n */\n operationLike: z.enum(CoreResourceOperation).default(CoreResourceOperation.READ),\n primaryScope: z.enum(ResourcePrimaryScope).default(ResourcePrimaryScope.ORGANIZATIONS),\n inputBindings: z.array(InsertedViewInputBindingSchema).optional(),\n\n /**\n * Chart icon — lucide component reference (not `<JSX />`) or a StandardIconReference string.\n * Surfaces on every launcher that targets this chart (a `RESOURCE_VIEW` sidebar or command-menu\n * entry); without it that launcher renders the icon registry's alert-circle placeholder, which\n * reads as a warning (#2281). Optional because a chart is first inline CONTENT of its operation\n * host and is often never launched at all. Registered by the `IconRegistryBridge` under the\n * `view-chart-{ref}` custom-icon key, the key `resolveConcreteResourceViewTarget` asks for.\n * Declared in BOTH the schema and the interface — this object is Zod-parsed and strips unknown keys.\n */\n icon: z.custom<IconLike>().optional(),\n});\n\nexport interface InsertedChartDeclaration {\n ref: string;\n chartDefinition: ChartDefinition;\n scope: FrontendView_ScopeMode.RESOURCE;\n parentResourcesRequirements?: FrontendResource_ParentResourceRequirement[];\n additionalResourceRequirements?: FrontendResource_ParentResourceRequirement[];\n isAddressable: boolean;\n operationLike: CoreResourceOperation;\n primaryScope: ResourcePrimaryScope;\n inputBindings?: InsertedViewInputBinding[];\n /** Chart icon (lucide component reference or StandardIconReference string) for launcher surfaces. */\n icon?: IconLike;\n}\n/** @wildo_source:part:end saas.frontend.chart-view.inserted-declaration */\n\nexport function isStandaloneRoutableInsertedChartView(\n chartView: InsertedChartDeclaration | undefined,\n): boolean {\n if (!chartView || chartView.isAddressable !== true) {\n return false;\n }\n\n return true;\n}\n\nexport const ResolvedInsertedChartDescriptorSchema = z.object({\n identity: FrontendInsertedViewIdentitySchema,\n executionChartRef: z.string().min(1),\n chartDefinition: ChartDefinitionSchema,\n contextResourceIdentifiers: z.record(z.string(), z.string()),\n resolvedInputs: ChartInputValuesSchema.optional(),\n});\n\nexport interface ResolvedInsertedChartDescriptor {\n identity: FrontendInsertedViewIdentity;\n executionChartRef: string;\n chartDefinition: ChartDefinition;\n contextResourceIdentifiers: Record<string, string>;\n resolvedInputs?: ChartInputValues;\n}\n\nexport interface ResolvedInsertedChartView {\n identity: FrontendInsertedViewIdentity;\n chartView: InsertedChartDeclaration;\n}\n\nexport const CHART_ROUTE_CONTEXT_QUERY_PARAM_PREFIX = 'chart_ctx_';\n/** The chart route's path prefix (`/chart/:viewRef`) — named once so the URL identity rules can recognise it. */\nexport const CHART_ROUTE_PATH_PREFIX = '/chart/';\n\nexport function buildResourceInsertedChartIdentity(\n resourceType: string,\n chartView: Pick<InsertedChartDeclaration, 'ref'>,\n): FrontendInsertedViewIdentity {\n return createFrontendInsertedViewIdentity({\n hostKind: FrontendInsertedViewHostKind.RESOURCE,\n hostRef: resourceType,\n viewKind: FrontendInsertedViewKind.CHART_VIEW,\n localRef: chartView.ref,\n });\n}\n\nexport function buildResolvedInsertedChartDescriptor(params: {\n identity: FrontendInsertedViewIdentity;\n chartView: InsertedChartDeclaration;\n contextResourceIdentifiers: Record<string, string>;\n resolvedInputs?: ChartInputValues;\n}): ResolvedInsertedChartDescriptor {\n return {\n identity: params.identity,\n executionChartRef: params.chartView.chartDefinition.ref,\n chartDefinition: params.chartView.chartDefinition,\n contextResourceIdentifiers: params.contextResourceIdentifiers,\n resolvedInputs: params.resolvedInputs,\n };\n}\n\nexport function resolveInsertedChartView(params: {\n viewRef: string | undefined;\n registry?: FrontendResourcesRegistry;\n}): ResolvedInsertedChartView | undefined {\n const { viewRef, registry } = params;\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (\n !insertedIdentity\n || insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.CHART_VIEW\n ) {\n return undefined;\n }\n\n const chartView = registry?.resourceConfigurations[insertedIdentity.hostRef]\n ?.frontendConfiguration\n ?.chartViews\n ?.find((candidate) => candidate.ref === insertedIdentity.localRef);\n if (!chartView) {\n return undefined;\n }\n\n return {\n identity: insertedIdentity,\n chartView,\n };\n}\n\n/**\n * Collect every frontend chartView's registration identity across all resources,\n * for the chart-registration drift guard (compared against the backend\n * `ChartRegistry.getRegisteredChartRefs()`). Each entry carries the\n * `chartDefinition.ref` (the backend registry JOIN KEY — not the outer\n * `chartView.ref`), plus the owning `resourceType` and `chartView.ref` for a\n * locatable drift error.\n *\n * Reads the MERGED `resourceConfigurations` (shared base + ui-behavior overlay).\n * IMPORTANT for the companion integration: pass the FULL merged registry — a\n * subprocess that materializes only shared-base resources would miss\n * engine-resource-owned chartViews that live purely in the ui-behavior overlay,\n * silently narrowing the guard's frontend set.\n */\nexport function collectFrontendChartRegistrationRefs(\n registry: FrontendResourcesRegistry,\n): FrontendChartRegistrationRef[] {\n const refs: FrontendChartRegistrationRef[] = [];\n const configurations = registry.resourceConfigurations ?? {};\n for (const [resourceType, configuration] of Object.entries(configurations)) {\n pushChartRegistrationRefs(refs, resourceType, configuration?.frontendConfiguration?.chartViews);\n }\n return refs;\n}\n\n/**\n * Collect chart-registration refs directly from the ui-behavior OVERLAY\n * (`ResourceUIBehavior` — the map `buildFrontendCompanionResourceUIBehavior`\n * produces), rather than the materialized `resourceConfigurations`.\n *\n * The overlay covers EVERY resource in the frontend module chain — including\n * engine resources (e.g. `organizations`) that have no materialized shared base\n * in a companion subprocess and are therefore dropped from\n * `resourceConfigurations`. This is the complete, drift-guard-truthful source\n * for the companion introspection: an engine-resource-owned chartView that is\n * overlay-only would be silently missed by\n * {@link collectFrontendChartRegistrationRefs}. `chartViews` is the SAME field\n * on both shapes (`frontendConfiguration` IS a `ResourceUIBehaviorConfig`), just\n * un-nested here.\n */\nexport function collectFrontendChartRegistrationRefsFromUIBehavior(\n uiBehavior: ResourceUIBehavior,\n): FrontendChartRegistrationRef[] {\n const refs: FrontendChartRegistrationRef[] = [];\n for (const [resourceType, configuration] of Object.entries(uiBehavior ?? {})) {\n pushChartRegistrationRefs(refs, resourceType, configuration?.chartViews);\n }\n return refs;\n}\n\n/** Shared per-resource chartView → registration-ref projection (join key = `chartDefinition.ref`). */\nfunction pushChartRegistrationRefs(\n acc: FrontendChartRegistrationRef[],\n resourceType: string,\n chartViews: InsertedChartDeclaration[] | undefined,\n): void {\n if (!chartViews) {\n return;\n }\n for (const chartView of chartViews) {\n acc.push({\n chartDefinitionRef: chartView.chartDefinition.ref,\n resourceType,\n chartViewRef: chartView.ref,\n });\n }\n}\n\nexport function buildChartRouteUrlPath(\n viewRef: string,\n contextResourceIdentifiers?: Record<string, string>,\n urlParamValues?: Record<string, string>,\n): string {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(contextResourceIdentifiers ?? {})) {\n if (!value) {\n continue;\n }\n params.set(`${CHART_ROUTE_CONTEXT_QUERY_PARAM_PREFIX}${key}`, value);\n }\n\n for (const [key, value] of Object.entries(urlParamValues ?? {})) {\n if (!value || key.startsWith(CHART_ROUTE_CONTEXT_QUERY_PARAM_PREFIX)) {\n continue;\n }\n params.set(key, value);\n }\n\n const search = params.toString();\n return search.length > 0 ? `${CHART_ROUTE_PATH_PREFIX}${viewRef}?${search}` : `${CHART_ROUTE_PATH_PREFIX}${viewRef}`;\n}\n\nexport function extractChartRouteContextResourceIdentifiers(\n searchParams: URLSearchParams,\n): Record<string, string> | undefined {\n const contextResourceIdentifiers: Record<string, string> = {};\n\n for (const [key, value] of searchParams.entries()) {\n if (!key.startsWith(CHART_ROUTE_CONTEXT_QUERY_PARAM_PREFIX) || !value) {\n continue;\n }\n contextResourceIdentifiers[key.slice(CHART_ROUTE_CONTEXT_QUERY_PARAM_PREFIX.length)] = value;\n }\n\n return Object.keys(contextResourceIdentifiers).length > 0 ? contextResourceIdentifiers : undefined;\n}\n\nexport function extractChartRouteUrlParamValues(\n searchParams: URLSearchParams,\n): Record<string, string> | undefined {\n const urlParamValues: Record<string, string> = {};\n\n for (const [key, value] of searchParams.entries()) {\n // A hosted pane beside the chart rides on the chart's URL (`?pane=`); it is a navigation\n // address, never a chart url-param value.\n if (!value || key.startsWith(CHART_ROUTE_CONTEXT_QUERY_PARAM_PREFIX) || key === HOSTED_PANE_QUERY_PARAM) {\n continue;\n }\n\n urlParamValues[key] = value;\n }\n\n return Object.keys(urlParamValues).length > 0 ? urlParamValues : undefined;\n}\n\nexport type {\n ChartSeriesDefinition,\n ChartAccessControl,\n ChartAppearance,\n ChartTypeConfig,\n ChartInputDefinition,\n AggregationQuery,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"chart-view.frontend.schemas.js","sourceRoot":"","sources":["../../../../src/core/config/chart-view.frontend.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAYpF,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AAEpG,OAAO,EAAE,gDAAgD,EAAE,MAAM,mEAAmE,CAAC;AAErI,OAAO,EACL,8BAA8B,EAC9B,kCAAkC,EAClC,kCAAkC,EAClC,4BAA4B,EAC5B,wBAAwB,EACxB,4BAA4B,GAG7B,MAAM,kCAAkC,CAAC;AAE1C;;;;;;;;;;GAUG;AACH,MAAM,CAAN,IAAY,sBASX;AATD,WAAY,sBAAsB;IAChC,+GAA+G;IAC/G,2DAAiC,CAAA;IACjC;;;;OAIG;IACH,qDAA2B,CAAA;AAC7B,CAAC,EATW,sBAAsB,KAAtB,sBAAsB,QASjC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD;;;;;;;OAOG;IACH,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC;IACj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EAAE,CAAC;IAE9D,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,YAAY,CAAC,OAAO,EAAE,EAAE,CAAC;QAClD,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,sCAAsC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YACtE,SAAS;QACX,CAAC;QACD,0BAA0B,CAAC,GAAG,CAAC,KAAK,CAAC,sCAAsC,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC;IAC/F,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,SAAS,CAAC;AACrG,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,YAA6B;IAE7B,MAAM,cAAc,GAA2B,EAAE,CAAC;IAElD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,YAAY,CAAC,OAAO,EAAE,EAAE,CAAC;QAClD,yFAAyF;QACzF,0CAA0C;QAC1C,IAAI,CAAC,KAAK,IAAI,GAAG,CAAC,UAAU,CAAC,sCAAsC,CAAC,IAAI,GAAG,KAAK,uBAAuB,EAAE,CAAC;YACxG,SAAS;QACX,CAAC;QAED,cAAc,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IAC9B,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;AAC7E,CAAC","sourcesContent":["import { z } from 'zod';\nimport { CoreResourceOperation, ResourcePrimaryScope } from '@wildo-ai/saas-models';\nimport type {\n ChartDefinition,\n ChartSeriesDefinition,\n ChartAccessControl,\n ChartAppearance,\n ChartTypeConfig,\n ChartInputDefinition,\n ChartInputValues,\n AggregationQuery,\n FrontendChartRegistrationRef,\n} from '@wildo-ai/saas-models';\nimport { ChartDefinitionSchema, ChartInputValuesSchema } from '@wildo-ai/saas-models';\nimport type { IconLike } from '@wildo-ai/zod-decorators';\nimport { FrontendView_ScopeMode } from './views-frontend.schemas';\nimport { HOSTED_PANE_QUERY_PARAM } from '~wildo-frontend-lib/core/navigation/hosted-pane.constants';\nimport type { FrontendResource_ParentResourceRequirement } from '~wildo-frontend-lib/core/resources/resource-path.frontend.schemas';\nimport { FrontendResource_ParentResourceRequirementSchema } from '~wildo-frontend-lib/core/resources/resource-path.frontend.schemas';\nimport type { FrontendResourcesRegistry, ResourceUIBehavior } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport {\n InsertedViewInputBindingSchema,\n FrontendInsertedViewIdentitySchema,\n createFrontendInsertedViewIdentity,\n FrontendInsertedViewHostKind,\n FrontendInsertedViewKind,\n parseFrontendInsertedViewRef,\n type FrontendInsertedViewIdentity,\n type InsertedViewInputBinding,\n} from './inserted-view.frontend.schemas';\n\n/**\n * @wildo_source:part:start saas.frontend.chart-view.inserted-declaration facet:layer:frontend facet:family:chart-view\n *\n * Where a chart view surfaces: inside its operation host, or only where something embeds it by name.\n *\n * A chart declared on a resource is, by default, CONTENT of one operation host (`operationLike`): every default\n * instance of that host renders it, wherever the host itself is rendered. That includes the same list embedded in\n * another record's page (a related list), so a chart about something other than that list's context then shows on a\n * page it does not describe. A chart that exists only to be embedded (`EmbedChart` in a view, a launcher) declares\n * `surfacing: EMBEDS_ONLY` and is inserted into no host.\n */\nexport enum InsertedChartSurfacing {\n /** Rendered inside every default instance of its `operationLike` host, and embeddable by name. The default. */\n OPERATION_HOST = 'operation_host',\n /**\n * Rendered only where a view embeds it by name (`EmbedChart`) or a launcher opens it. `operationLike` places it in\n * no host. Use it for a chart whose data is not about the host's records: a person's whole week, an organization's\n * totals.\n */\n EMBEDS_ONLY = 'embeds_only',\n}\n\n/**\n * Host-owned inserted chart declaration — the **only** chart authoring surface.\n *\n * Design decision (framework mindset): chart views are intentionally\n * **resource-scoped only**. The former app-level `ChartViewDefinition` /\n * `ChartViewDefinitionSchema` and the `AppConfiguration_Frontend.charts`\n * authoring seam were removed because an application-scoped chart has no\n * meaningful operation host to be rendered inside of, and keeping a separate\n * app-level authoring contract for the same runtime concept created drift\n * between authoring sites and specification extraction.\n *\n * Operation surfacing is declared by two fields, `operationLike` and `surfacing`:\n *\n * - `operationLike` names the single resource operation host this chart is\n * rendered inside of (defaulting to `CoreResourceOperation.READ`), unless\n * `surfacing` takes it out of every host.\n * - At render time, `ResourceLayout_InsertedViews` filters the resource's\n * `chartViews` directly by the current operation host against `operationLike`.\n * There is no operation-level view-ref list and no compiled derivation —\n * the chart declaration itself carries the link.\n * - There is no list analogue (`surfaceInOperations`) for charts — a chart\n * is rendered in at most one operation host. The list-typed\n * authoring field is reserved for execution views, which legitimately\n * surface in multiple operation hosts.\n * - `surfacing: EMBEDS_ONLY` takes a chart out of every host: it is then rendered only where a view embeds it by\n * name (see {@link InsertedChartSurfacing}).\n */\nexport const InsertedChartDeclarationSchema = z.object({\n /**\n * Charts are resource-owned inserted surfaces only.\n *\n * The scope is a Zod literal (rather than the open `FrontendView_ScopeMode`\n * enum) so that an app-scoped chart is impossible by construction — the\n * schema refuses to parse one at authoring time, and the TS type refuses\n * to let a caller construct one at compile time.\n */\n scope: z.literal(FrontendView_ScopeMode.RESOURCE),\n parentResourcesRequirements: FrontendResource_ParentResourceRequirementSchema.array().optional(),\n additionalResourceRequirements: FrontendResource_ParentResourceRequirementSchema.array().optional(),\n\n ref: z.string().min(1),\n chartDefinition: ChartDefinitionSchema,\n isAddressable: z.boolean().default(false),\n\n /**\n * Operation host this chart is rendered inside of.\n *\n * With `surfacing`, the declarative source of truth for which resource\n * operation surface the chart is surfaced in: this field names the host, and\n * `surfacing: EMBEDS_ONLY` places the chart in none. `ResourceLayout_InsertedViews`\n * filters `chartViews` directly against this field at render time, and the\n * specification layer uses `collectOperationLikeViewRefs` with the same\n * default to mirror per-operation linked view refs. If this default is ever\n * changed, the matching runtime default at both call sites MUST be updated\n * in lockstep, otherwise host rendering and spec output disagree.\n */\n operationLike: z.enum(CoreResourceOperation).default(CoreResourceOperation.READ),\n /**\n * Whether the chart is inserted into its `operationLike` host (`OPERATION_HOST`, also what an absent value means) or\n * rendered only where something embeds it by name (`EMBEDS_ONLY`). Read it through\n * {@link isChartViewInsertedIntoOperationHost}, which the host layout and the specification layer both use, so the\n * two cannot disagree about where the chart shows.\n */\n surfacing: z.enum(InsertedChartSurfacing).optional(),\n primaryScope: z.enum(ResourcePrimaryScope).default(ResourcePrimaryScope.ORGANIZATIONS),\n inputBindings: z.array(InsertedViewInputBindingSchema).optional(),\n\n /**\n * Chart icon — lucide component reference (not `<JSX />`) or a StandardIconReference string.\n * Surfaces on every launcher that targets this chart (a `RESOURCE_VIEW` sidebar or command-menu\n * entry); without it that launcher renders the icon registry's alert-circle placeholder, which\n * reads as a warning. Optional because a chart is first inline CONTENT of its operation\n * host and is often never launched at all. Registered by the `IconRegistryBridge` under the\n * `view-chart-{ref}` custom-icon key, the key `resolveConcreteResourceViewTarget` asks for.\n * Declared in BOTH the schema and the interface — this object is Zod-parsed and strips unknown keys.\n */\n icon: z.custom<IconLike>().optional(),\n});\n\nexport interface InsertedChartDeclaration {\n ref: string;\n chartDefinition: ChartDefinition;\n scope: FrontendView_ScopeMode.RESOURCE;\n parentResourcesRequirements?: FrontendResource_ParentResourceRequirement[];\n additionalResourceRequirements?: FrontendResource_ParentResourceRequirement[];\n isAddressable: boolean;\n operationLike: CoreResourceOperation;\n /** Absent: `OPERATION_HOST`. See {@link InsertedChartSurfacing}. */\n surfacing?: InsertedChartSurfacing;\n primaryScope: ResourcePrimaryScope;\n inputBindings?: InsertedViewInputBinding[];\n /** Chart icon (lucide component reference or StandardIconReference string) for launcher surfaces. */\n icon?: IconLike;\n}\n\n/** Whether a chart view is inserted into its `operationLike` host: true unless it declares `surfacing: EMBEDS_ONLY`. */\nexport function isChartViewInsertedIntoOperationHost(chartView: { readonly surfacing?: InsertedChartSurfacing }): boolean {\n return chartView.surfacing !== InsertedChartSurfacing.EMBEDS_ONLY;\n}\n/** @wildo_source:part:end saas.frontend.chart-view.inserted-declaration */\n\nexport function isStandaloneRoutableInsertedChartView(\n chartView: InsertedChartDeclaration | undefined,\n): boolean {\n if (!chartView || chartView.isAddressable !== true) {\n return false;\n }\n\n return true;\n}\n\nexport const ResolvedInsertedChartDescriptorSchema = z.object({\n identity: FrontendInsertedViewIdentitySchema,\n executionChartRef: z.string().min(1),\n chartDefinition: ChartDefinitionSchema,\n contextResourceIdentifiers: z.record(z.string(), z.string()),\n resolvedInputs: ChartInputValuesSchema.optional(),\n});\n\nexport interface ResolvedInsertedChartDescriptor {\n identity: FrontendInsertedViewIdentity;\n executionChartRef: string;\n chartDefinition: ChartDefinition;\n contextResourceIdentifiers: Record<string, string>;\n resolvedInputs?: ChartInputValues;\n}\n\nexport interface ResolvedInsertedChartView {\n identity: FrontendInsertedViewIdentity;\n chartView: InsertedChartDeclaration;\n}\n\nexport const CHART_ROUTE_CONTEXT_QUERY_PARAM_PREFIX = 'chart_ctx_';\n/** The chart route's path prefix (`/chart/:viewRef`) — named once so the URL identity rules can recognise it. */\nexport const CHART_ROUTE_PATH_PREFIX = '/chart/';\n\nexport function buildResourceInsertedChartIdentity(\n resourceType: string,\n chartView: Pick<InsertedChartDeclaration, 'ref'>,\n): FrontendInsertedViewIdentity {\n return createFrontendInsertedViewIdentity({\n hostKind: FrontendInsertedViewHostKind.RESOURCE,\n hostRef: resourceType,\n viewKind: FrontendInsertedViewKind.CHART_VIEW,\n localRef: chartView.ref,\n });\n}\n\nexport function buildResolvedInsertedChartDescriptor(params: {\n identity: FrontendInsertedViewIdentity;\n chartView: InsertedChartDeclaration;\n contextResourceIdentifiers: Record<string, string>;\n resolvedInputs?: ChartInputValues;\n}): ResolvedInsertedChartDescriptor {\n return {\n identity: params.identity,\n executionChartRef: params.chartView.chartDefinition.ref,\n chartDefinition: params.chartView.chartDefinition,\n contextResourceIdentifiers: params.contextResourceIdentifiers,\n resolvedInputs: params.resolvedInputs,\n };\n}\n\nexport function resolveInsertedChartView(params: {\n viewRef: string | undefined;\n registry?: FrontendResourcesRegistry;\n}): ResolvedInsertedChartView | undefined {\n const { viewRef, registry } = params;\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (\n !insertedIdentity\n || insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.CHART_VIEW\n ) {\n return undefined;\n }\n\n const chartView = registry?.resourceConfigurations[insertedIdentity.hostRef]\n ?.frontendConfiguration\n ?.chartViews\n ?.find((candidate) => candidate.ref === insertedIdentity.localRef);\n if (!chartView) {\n return undefined;\n }\n\n return {\n identity: insertedIdentity,\n chartView,\n };\n}\n\n/**\n * Collect every frontend chartView's registration identity across all resources,\n * for the chart-registration drift guard (compared against the backend\n * `ChartRegistry.getRegisteredChartRefs()`). Each entry carries the\n * `chartDefinition.ref` (the backend registry JOIN KEY — not the outer\n * `chartView.ref`), plus the owning `resourceType` and `chartView.ref` for a\n * locatable drift error.\n *\n * Reads the MERGED `resourceConfigurations` (shared base + ui-behavior overlay).\n * IMPORTANT for the companion integration: pass the FULL merged registry — a\n * subprocess that materializes only shared-base resources would miss\n * engine-resource-owned chartViews that live purely in the ui-behavior overlay,\n * silently narrowing the guard's frontend set.\n */\nexport function collectFrontendChartRegistrationRefs(\n registry: FrontendResourcesRegistry,\n): FrontendChartRegistrationRef[] {\n const refs: FrontendChartRegistrationRef[] = [];\n const configurations = registry.resourceConfigurations ?? {};\n for (const [resourceType, configuration] of Object.entries(configurations)) {\n pushChartRegistrationRefs(refs, resourceType, configuration?.frontendConfiguration?.chartViews);\n }\n return refs;\n}\n\n/**\n * Collect chart-registration refs directly from the ui-behavior OVERLAY\n * (`ResourceUIBehavior` — the map `buildFrontendCompanionResourceUIBehavior`\n * produces), rather than the materialized `resourceConfigurations`.\n *\n * The overlay covers EVERY resource in the frontend module chain — including\n * engine resources (e.g. `organizations`) that have no materialized shared base\n * in a companion subprocess and are therefore dropped from\n * `resourceConfigurations`. This is the complete, drift-guard-truthful source\n * for the companion introspection: an engine-resource-owned chartView that is\n * overlay-only would be silently missed by\n * {@link collectFrontendChartRegistrationRefs}. `chartViews` is the SAME field\n * on both shapes (`frontendConfiguration` IS a `ResourceUIBehaviorConfig`), just\n * un-nested here.\n */\nexport function collectFrontendChartRegistrationRefsFromUIBehavior(\n uiBehavior: ResourceUIBehavior,\n): FrontendChartRegistrationRef[] {\n const refs: FrontendChartRegistrationRef[] = [];\n for (const [resourceType, configuration] of Object.entries(uiBehavior ?? {})) {\n pushChartRegistrationRefs(refs, resourceType, configuration?.chartViews);\n }\n return refs;\n}\n\n/** Shared per-resource chartView → registration-ref projection (join key = `chartDefinition.ref`). */\nfunction pushChartRegistrationRefs(\n acc: FrontendChartRegistrationRef[],\n resourceType: string,\n chartViews: InsertedChartDeclaration[] | undefined,\n): void {\n if (!chartViews) {\n return;\n }\n for (const chartView of chartViews) {\n acc.push({\n chartDefinitionRef: chartView.chartDefinition.ref,\n resourceType,\n chartViewRef: chartView.ref,\n });\n }\n}\n\nexport function buildChartRouteUrlPath(\n viewRef: string,\n contextResourceIdentifiers?: Record<string, string>,\n urlParamValues?: Record<string, string>,\n): string {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(contextResourceIdentifiers ?? {})) {\n if (!value) {\n continue;\n }\n params.set(`${CHART_ROUTE_CONTEXT_QUERY_PARAM_PREFIX}${key}`, value);\n }\n\n for (const [key, value] of Object.entries(urlParamValues ?? {})) {\n if (!value || key.startsWith(CHART_ROUTE_CONTEXT_QUERY_PARAM_PREFIX)) {\n continue;\n }\n params.set(key, value);\n }\n\n const search = params.toString();\n return search.length > 0 ? `${CHART_ROUTE_PATH_PREFIX}${viewRef}?${search}` : `${CHART_ROUTE_PATH_PREFIX}${viewRef}`;\n}\n\nexport function extractChartRouteContextResourceIdentifiers(\n searchParams: URLSearchParams,\n): Record<string, string> | undefined {\n const contextResourceIdentifiers: Record<string, string> = {};\n\n for (const [key, value] of searchParams.entries()) {\n if (!key.startsWith(CHART_ROUTE_CONTEXT_QUERY_PARAM_PREFIX) || !value) {\n continue;\n }\n contextResourceIdentifiers[key.slice(CHART_ROUTE_CONTEXT_QUERY_PARAM_PREFIX.length)] = value;\n }\n\n return Object.keys(contextResourceIdentifiers).length > 0 ? contextResourceIdentifiers : undefined;\n}\n\nexport function extractChartRouteUrlParamValues(\n searchParams: URLSearchParams,\n): Record<string, string> | undefined {\n const urlParamValues: Record<string, string> = {};\n\n for (const [key, value] of searchParams.entries()) {\n // A hosted pane beside the chart rides on the chart's URL (`?pane=`); it is a navigation\n // address, never a chart url-param value.\n if (!value || key.startsWith(CHART_ROUTE_CONTEXT_QUERY_PARAM_PREFIX) || key === HOSTED_PANE_QUERY_PARAM) {\n continue;\n }\n\n urlParamValues[key] = value;\n }\n\n return Object.keys(urlParamValues).length > 0 ? urlParamValues : undefined;\n}\n\nexport type {\n ChartSeriesDefinition,\n ChartAccessControl,\n ChartAppearance,\n ChartTypeConfig,\n ChartInputDefinition,\n AggregationQuery,\n};\n"]}
|
|
@@ -92,6 +92,13 @@ export interface CompositeViewAuthoringConfig {
|
|
|
92
92
|
* fused them could not express a capped width with a definite height.
|
|
93
93
|
*/
|
|
94
94
|
zoneContentFillsHeight?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* The features a scope must hold for this view: a plan fence on a dashboard or a board. Gated where the person meets
|
|
97
|
+
* the view, both at its route (`FeatureRouteGuard`, which navigates home under a HIDE policy) and wherever it is
|
|
98
|
+
* embedded (`RequiredFeaturesGate`, inside `CompositeView`). The operations the view calls are refused by the backend
|
|
99
|
+
* on their own requirements either way; this is what keeps the view itself from rendering for a scope without it.
|
|
100
|
+
*/
|
|
101
|
+
requiredFeatures?: RequiredFeaturesConfig;
|
|
95
102
|
}
|
|
96
103
|
/**
|
|
97
104
|
* Resource-scoped composite view authoring. Extends the base with
|
|
@@ -122,7 +129,7 @@ export interface ResourceCompositeViewAuthoringConfig extends CompositeViewAutho
|
|
|
122
129
|
*/
|
|
123
130
|
operationLike?: CoreResourceOperation;
|
|
124
131
|
/**
|
|
125
|
-
* The actor system whose conversations this view hosts ON ITS RECORD
|
|
132
|
+
* The actor system whose conversations this view hosts ON ITS RECORD: the `systemRef` of the
|
|
126
133
|
* `FlowsActorsView` it renders with the record in that view's context.
|
|
127
134
|
*
|
|
128
135
|
* A conversation opened on a record is listed only there, so a link to it (a notice, an email: the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composite-view.schemas.d.ts","sourceRoot":"","sources":["../../../../src/core/config/composite-view.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC3G,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EAEpB,iBAAiB,EACjB,KAAK,sBAAsB,EAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EAGvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAKL,KAAK,4BAA4B,EAClC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,KAAK,0CAA0C,EAChD,MAAM,mEAAmE,CAAC;AAC3E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+DAA+D,CAAC;AAE/G;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,uBAAuB,CAAC;CACzC;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,2BAA2B,CAAC,CAAC;IAChE,uFAAuF;IACvF,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC7B;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;;;;;;;;;;;;;OAeG;IACH,mBAAmB,CAAC,EAAE,iBAAiB,CAAC;IACxC;;;;;;;OAOG;IACH,mBAAmB,CAAC,EAAE,kBAAkB,CAAC;IACzC;;;;;;;;;;;OAWG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"composite-view.schemas.d.ts","sourceRoot":"","sources":["../../../../src/core/config/composite-view.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC3G,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EAEpB,iBAAiB,EACjB,KAAK,sBAAsB,EAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EAGvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAKL,KAAK,4BAA4B,EAClC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,KAAK,0CAA0C,EAChD,MAAM,mEAAmE,CAAC;AAC3E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+DAA+D,CAAC;AAE/G;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,uBAAuB,CAAC;CACzC;AAED;;;;;;;;;GASG;AACH,MA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AE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAA2E,CAAC"}
|
|
@@ -52,6 +52,7 @@ export function buildApplicationCompositeViewDefinitions(authoredCompositeViews)
|
|
|
52
52
|
adjacentZoneOnEmpty: authoredView.adjacentZoneOnEmpty,
|
|
53
53
|
zoneContentMaxWidth: authoredView.zoneContentMaxWidth,
|
|
54
54
|
zoneContentFillsHeight: authoredView.zoneContentFillsHeight,
|
|
55
|
+
requiredFeatures: authoredView.requiredFeatures,
|
|
55
56
|
}));
|
|
56
57
|
}
|
|
57
58
|
export function isStandaloneRoutableInsertedCompositeView(compositeView) {
|