@wildo-ai/saas-frontend-lib 1.1.17 → 1.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +114 -26
- package/LICENSE.enterprise +129 -0
- package/dist/esm/companion-exports.d.ts +5 -2
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js +4 -2
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/components/actions/action-bar.d.ts +16 -1
- package/dist/esm/components/actions/action-bar.d.ts.map +1 -1
- package/dist/esm/components/actions/action-bar.js.map +1 -1
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js +6 -14
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js.map +1 -1
- package/dist/esm/components/app/AppLayout_DecisionInbox.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_DecisionInbox.js +2 -4
- package/dist/esm/components/app/AppLayout_DecisionInbox.js.map +1 -1
- package/dist/esm/components/app/AppLayout_Home.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_Home.js +14 -7
- package/dist/esm/components/app/AppLayout_Home.js.map +1 -1
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts +13 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts.map +1 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js +16 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js.map +1 -0
- package/dist/esm/components/app/DecisionInboxSection.d.ts +10 -0
- package/dist/esm/components/app/DecisionInboxSection.d.ts.map +1 -0
- package/dist/esm/components/app/DecisionInboxSection.js +15 -0
- package/dist/esm/components/app/DecisionInboxSection.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts +13 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js +28 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.d.ts +10 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.js +40 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts +16 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js +41 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts +15 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js +268 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts +3 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js +35 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js.map +1 -0
- package/dist/esm/components/auth/Auth_Main.d.ts.map +1 -1
- package/dist/esm/components/auth/Auth_Main.js +5 -0
- package/dist/esm/components/auth/Auth_Main.js.map +1 -1
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts +19 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js +156 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts +3 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js +107 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js.map +1 -0
- package/dist/esm/components/auth/StepUpAuthDialog.d.ts +31 -10
- package/dist/esm/components/auth/StepUpAuthDialog.d.ts.map +1 -1
- package/dist/esm/components/auth/StepUpAuthDialog.js +81 -17
- package/dist/esm/components/auth/StepUpAuthDialog.js.map +1 -1
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.d.ts.map +1 -1
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js +19 -0
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js.map +1 -1
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts +11 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js +25 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts +11 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js +25 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js.map +1 -0
- package/dist/esm/components/billing/billing-pricing-table.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-pricing-table.js +40 -7
- package/dist/esm/components/billing/billing-pricing-table.js.map +1 -1
- package/dist/esm/components/billing/billing-subscription-status.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-subscription-status.js +9 -1
- package/dist/esm/components/billing/billing-subscription-status.js.map +1 -1
- package/dist/esm/components/billing/billing-usage-dashboard.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-usage-dashboard.js +3 -2
- package/dist/esm/components/billing/billing-usage-dashboard.js.map +1 -1
- package/dist/esm/components/data-display/AutomaticDisplayer.d.ts.map +1 -1
- package/dist/esm/components/data-display/AutomaticDisplayer.js +7 -2
- package/dist/esm/components/data-display/AutomaticDisplayer.js.map +1 -1
- package/dist/esm/components/data-display/DisplayField.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayField.js +67 -45
- package/dist/esm/components/data-display/DisplayField.js.map +1 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.js +4 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.js.map +1 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.js +16 -6
- package/dist/esm/components/data-display/DisplayValueDispatcher.js.map +1 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.d.ts.map +1 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js +3 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js.map +1 -1
- package/dist/esm/components/feedback/empty-state-marker.d.ts +16 -0
- package/dist/esm/components/feedback/empty-state-marker.d.ts.map +1 -0
- package/dist/esm/components/feedback/empty-state-marker.js +16 -0
- package/dist/esm/components/feedback/empty-state-marker.js.map +1 -0
- package/dist/esm/components/feedback/empty-state.d.ts.map +1 -1
- package/dist/esm/components/feedback/empty-state.js +2 -1
- package/dist/esm/components/feedback/empty-state.js.map +1 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts +7 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts.map +1 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.js +8 -2
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.js.map +1 -1
- package/dist/esm/components/feedback/resource-empty-state.d.ts.map +1 -1
- package/dist/esm/components/feedback/resource-empty-state.js +2 -1
- package/dist/esm/components/feedback/resource-empty-state.js.map +1 -1
- package/dist/esm/components/flows-actors/approval.d.ts +25 -1
- package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/approval.js +14 -9
- package/dist/esm/components/flows-actors/approval.js.map +1 -1
- package/dist/esm/components/flows-actors/approval.labels.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/approval.labels.js +30 -0
- package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
- package/dist/esm/components/flows-actors/flow-node.labels.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/flow-node.labels.js +4 -1
- package/dist/esm/components/flows-actors/flow-node.labels.js.map +1 -1
- package/dist/esm/components/flows-actors/flow-step-visuals.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/flow-step-visuals.js +8 -2
- package/dist/esm/components/flows-actors/flow-step-visuals.js.map +1 -1
- package/dist/esm/components/flows-actors/human-decision-form.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/human-decision-form.js +4 -1
- package/dist/esm/components/flows-actors/human-decision-form.js.map +1 -1
- package/dist/esm/components/form/Form.d.ts +2 -0
- package/dist/esm/components/form/Form.d.ts.map +1 -1
- package/dist/esm/components/form/Form.js +1 -0
- package/dist/esm/components/form/Form.js.map +1 -1
- package/dist/esm/components/form/automated/AutomatedArrayField.d.ts.map +1 -1
- package/dist/esm/components/form/automated/AutomatedArrayField.js +7 -4
- package/dist/esm/components/form/automated/AutomatedArrayField.js.map +1 -1
- package/dist/esm/components/form/automated/AutosaveContext.d.ts.map +1 -1
- package/dist/esm/components/form/automated/AutosaveContext.js +8 -0
- package/dist/esm/components/form/automated/AutosaveContext.js.map +1 -1
- package/dist/esm/components/form/automated/FormField.d.ts +5 -3
- package/dist/esm/components/form/automated/FormField.d.ts.map +1 -1
- package/dist/esm/components/form/automated/FormField.js +38 -13
- package/dist/esm/components/form/automated/FormField.js.map +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js +31 -18
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.d.ts +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js.map +1 -1
- package/dist/esm/components/form/validation-errors/form-validation.d.ts +5 -7
- package/dist/esm/components/form/validation-errors/form-validation.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/form-validation.js +7 -22
- package/dist/esm/components/form/validation-errors/form-validation.js.map +1 -1
- package/dist/esm/components/form/validation-errors/getFieldError.d.ts +25 -2
- package/dist/esm/components/form/validation-errors/getFieldError.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/getFieldError.js +29 -2
- package/dist/esm/components/form/validation-errors/getFieldError.js.map +1 -1
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts +5 -0
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js +3 -0
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js.map +1 -1
- package/dist/esm/components/form/validation-errors/save-attempt.d.ts +9 -0
- package/dist/esm/components/form/validation-errors/save-attempt.d.ts.map +1 -0
- package/dist/esm/components/form/validation-errors/save-attempt.js +42 -0
- package/dist/esm/components/form/validation-errors/save-attempt.js.map +1 -0
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts +3 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.js +3 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.js.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts +2 -2
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js +3 -0
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js +5 -3
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts +19 -0
- package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js +47 -11
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.js +17 -7
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_List.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_List.js +13 -6
- package/dist/esm/components/resources/ResourceLayout_List.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_Search.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_Search.js +12 -8
- package/dist/esm/components/resources/ResourceLayout_Search.js.map +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js +11 -4
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js.map +1 -1
- package/dist/esm/components/resources/embeds/RelatedResourceSections.d.ts +1 -1
- package/dist/esm/components/resources/embeds/RelatedResourceSections.js.map +1 -1
- package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts +5 -5
- package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts.map +1 -1
- package/dist/esm/components/resources/embeds/ResourceEmbeds.js +21 -14
- package/dist/esm/components/resources/embeds/ResourceEmbeds.js.map +1 -1
- package/dist/esm/components/resources/skeleton/DisplayLayout.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/DisplayLayout.js +40 -4
- package/dist/esm/components/resources/skeleton/DisplayLayout.js.map +1 -1
- package/dist/esm/components/resources/skeleton/FormLayout.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/FormLayout.js +22 -6
- package/dist/esm/components/resources/skeleton/FormLayout.js.map +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.d.ts +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js.map +1 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts +21 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.js +53 -9
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.js.map +1 -1
- package/dist/esm/components/settings/SettingsHub.d.ts +15 -0
- package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
- package/dist/esm/components/settings/SettingsHub.js +14 -4
- package/dist/esm/components/settings/SettingsHub.js.map +1 -1
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts +3 -2
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts.map +1 -1
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.js +4 -3
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.js.map +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts.map +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts +33 -0
- package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartKpiFigure.js +63 -4
- package/dist/esm/components/views/chart-view/ChartKpiFigure.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.js +33 -7
- package/dist/esm/components/views/chart-view/ChartView.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.labels.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.labels.js +69 -3
- package/dist/esm/components/views/chart-view/ChartView.labels.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.js +2 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartWidget.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartWidget.js +12 -4
- package/dist/esm/components/views/chart-view/ChartWidget.js.map +1 -1
- package/dist/esm/components/views/chart-view/chart-export.utils.d.ts +8 -0
- package/dist/esm/components/views/chart-view/chart-export.utils.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/chart-export.utils.js +15 -25
- package/dist/esm/components/views/chart-view/chart-export.utils.js.map +1 -1
- package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts +6 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts.map +1 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.js +6 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.js.map +1 -0
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts +35 -9
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.js +69 -21
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js +6 -7
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js +2 -2
- package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js +7 -7
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js +6 -8
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js +4 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js +13 -13
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.d.ts +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.js +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.js.map +1 -1
- package/dist/esm/components/views/composite-view/CompositeView.d.ts +6 -0
- package/dist/esm/components/views/composite-view/CompositeView.d.ts.map +1 -1
- package/dist/esm/components/views/composite-view/CompositeView.js +6 -2
- package/dist/esm/components/views/composite-view/CompositeView.js.map +1 -1
- package/dist/esm/components/views/execution-view/ExecutionView.d.ts +7 -0
- package/dist/esm/components/views/execution-view/ExecutionView.d.ts.map +1 -1
- package/dist/esm/components/views/execution-view/ExecutionView.js +11 -1
- package/dist/esm/components/views/execution-view/ExecutionView.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +7 -0
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js +6 -2
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
- package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts +7 -0
- package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts.map +1 -1
- package/dist/esm/components/views/full-custom-view/FullCustomView.js +8 -3
- package/dist/esm/components/views/full-custom-view/FullCustomView.js.map +1 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts +7 -0
- package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts.map +1 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.js +11 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.js.map +1 -1
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.d.ts +2 -2
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.js +2 -2
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.js.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts +4 -4
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js +3 -3
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js.map +1 -1
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts +45 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts.map +1 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js +72 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js.map +1 -0
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts +4 -3
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js +4 -3
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts +15 -8
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js +22 -21
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js.map +1 -1
- package/dist/esm/core/billing/BillingContext.d.ts +27 -4
- package/dist/esm/core/billing/BillingContext.d.ts.map +1 -1
- package/dist/esm/core/billing/BillingContext.js +61 -2
- package/dist/esm/core/billing/BillingContext.js.map +1 -1
- package/dist/esm/core/billing/useBillingAction.d.ts.map +1 -1
- package/dist/esm/core/billing/useBillingAction.js +3 -2
- package/dist/esm/core/billing/useBillingAction.js.map +1 -1
- package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts +19 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts.map +1 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.js +23 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.js.map +1 -0
- package/dist/esm/core/components-registry/register-framework-layouts.d.ts.map +1 -1
- package/dist/esm/core/components-registry/register-framework-layouts.js +4 -0
- package/dist/esm/core/components-registry/register-framework-layouts.js.map +1 -1
- package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts +159 -0
- package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/app-configuration-frontend.schemas.js +68 -3
- package/dist/esm/core/config/app-configuration-frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/app-level-components.frontend.schemas.d.ts +2 -2
- package/dist/esm/core/config/app-level-components.frontend.schemas.js +2 -2
- package/dist/esm/core/config/app-level-components.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/chart-view.frontend.schemas.d.ts +59 -18
- package/dist/esm/core/config/chart-view.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/chart-view.frontend.schemas.js +42 -7
- package/dist/esm/core/config/chart-view.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.d.ts +8 -1
- package/dist/esm/core/config/composite-view.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.js +1 -0
- package/dist/esm/core/config/composite-view.schemas.js.map +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.d.ts +6 -0
- package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.js +12 -0
- package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
- package/dist/esm/core/config/execution-view.schemas.d.ts +1 -1
- package/dist/esm/core/config/execution-view.schemas.js.map +1 -1
- package/dist/esm/core/config/identity-portal-settings.frontend.d.ts +17 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.d.ts.map +1 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.js +64 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.js.map +1 -0
- package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts +8 -8
- package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/launcher-items.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.js +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.js.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +17 -6
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/useSettingsHubConfig.d.ts.map +1 -1
- package/dist/esm/core/config/useSettingsHubConfig.js +1 -0
- package/dist/esm/core/config/useSettingsHubConfig.js.map +1 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts +7 -0
- package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts.map +1 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.js +9 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.js.map +1 -1
- package/dist/esm/core/config/verify-launcher-content.d.ts +7 -1
- package/dist/esm/core/config/verify-launcher-content.d.ts.map +1 -1
- package/dist/esm/core/config/verify-launcher-content.js +31 -0
- package/dist/esm/core/config/verify-launcher-content.js.map +1 -1
- package/dist/esm/core/errors/GlobalErrorHandler.d.ts.map +1 -1
- package/dist/esm/core/errors/GlobalErrorHandler.js +10 -0
- package/dist/esm/core/errors/GlobalErrorHandler.js.map +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.d.ts +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.d.ts.map +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.js.map +1 -1
- package/dist/esm/core/events/NotificationContext.d.ts.map +1 -1
- package/dist/esm/core/events/NotificationContext.js +19 -2
- package/dist/esm/core/events/NotificationContext.js.map +1 -1
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts +21 -2
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.js +25 -4
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.js.map +1 -1
- package/dist/esm/core/execution/useExecution.d.ts +3 -3
- package/dist/esm/core/execution/useExecution.js.map +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.d.ts +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js.map +1 -1
- package/dist/esm/core/features/FeatureGate.d.ts +13 -1
- package/dist/esm/core/features/FeatureGate.d.ts.map +1 -1
- package/dist/esm/core/features/FeatureGate.js +6 -1
- package/dist/esm/core/features/FeatureGate.js.map +1 -1
- package/dist/esm/core/features/InPlaceFeatureLock.d.ts +28 -0
- package/dist/esm/core/features/InPlaceFeatureLock.d.ts.map +1 -0
- package/dist/esm/core/features/InPlaceFeatureLock.js +49 -0
- package/dist/esm/core/features/InPlaceFeatureLock.js.map +1 -0
- package/dist/esm/core/features/PlanRefusalPrompt.d.ts +12 -0
- package/dist/esm/core/features/PlanRefusalPrompt.d.ts.map +1 -0
- package/dist/esm/core/features/PlanRefusalPrompt.js +90 -0
- package/dist/esm/core/features/PlanRefusalPrompt.js.map +1 -0
- package/dist/esm/core/features/RequiredFeaturesGate.d.ts +39 -0
- package/dist/esm/core/features/RequiredFeaturesGate.d.ts.map +1 -0
- package/dist/esm/core/features/RequiredFeaturesGate.js +51 -0
- package/dist/esm/core/features/RequiredFeaturesGate.js.map +1 -0
- package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts +6 -0
- package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/features/feature-unavailability.frontend.utils.js +27 -10
- package/dist/esm/core/features/feature-unavailability.frontend.utils.js.map +1 -1
- package/dist/esm/core/features/plan-refusal.frontend.d.ts +43 -0
- package/dist/esm/core/features/plan-refusal.frontend.d.ts.map +1 -0
- package/dist/esm/core/features/plan-refusal.frontend.js +67 -0
- package/dist/esm/core/features/plan-refusal.frontend.js.map +1 -0
- package/dist/esm/core/features/required-features-gate-presentation.d.ts +21 -0
- package/dist/esm/core/features/required-features-gate-presentation.d.ts.map +1 -0
- package/dist/esm/core/features/required-features-gate-presentation.js +26 -0
- package/dist/esm/core/features/required-features-gate-presentation.js.map +1 -0
- package/dist/esm/core/features/useFeatureAvailability.d.ts.map +1 -1
- package/dist/esm/core/features/useFeatureAvailability.js +4 -0
- package/dist/esm/core/features/useFeatureAvailability.js.map +1 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.d.ts +2 -0
- package/dist/esm/core/features/useOperationFeatureAvailability.d.ts.map +1 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.js +6 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.js.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +11 -0
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.js +117 -3
- package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.d.ts.map +1 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js +3 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.js +28 -9
- package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
- package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.d.ts → core/navigation/chart-read-gate.d.ts} +11 -7
- package/dist/esm/core/navigation/chart-read-gate.d.ts.map +1 -0
- package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.js → core/navigation/chart-read-gate.js} +27 -11
- package/dist/esm/core/navigation/chart-read-gate.js.map +1 -0
- package/dist/esm/core/navigation/home-resolution.d.ts +36 -0
- package/dist/esm/core/navigation/home-resolution.d.ts.map +1 -0
- package/dist/esm/core/navigation/home-resolution.js +46 -0
- package/dist/esm/core/navigation/home-resolution.js.map +1 -0
- package/dist/esm/core/navigation/launcher-resolution.d.ts +2 -34
- package/dist/esm/core/navigation/launcher-resolution.d.ts.map +1 -1
- package/dist/esm/core/navigation/launcher-resolution.js +13 -18
- package/dist/esm/core/navigation/launcher-resolution.js.map +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.d.ts +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.d.ts.map +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.js +7 -2
- package/dist/esm/core/navigation/launcher-runtime-availability.js.map +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.d.ts +2 -2
- package/dist/esm/core/navigation/primary-destination-layout.d.ts.map +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.js +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.js.map +1 -1
- package/dist/esm/core/navigation/useChartReadDecision.d.ts +26 -0
- package/dist/esm/core/navigation/useChartReadDecision.d.ts.map +1 -0
- package/dist/esm/core/navigation/useChartReadDecision.js +58 -0
- package/dist/esm/core/navigation/useChartReadDecision.js.map +1 -0
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.js.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.js.map +1 -1
- package/dist/esm/core/navigation/view-title-resolution.d.ts +21 -0
- package/dist/esm/core/navigation/view-title-resolution.d.ts.map +1 -1
- package/dist/esm/core/navigation/view-title-resolution.js +25 -0
- package/dist/esm/core/navigation/view-title-resolution.js.map +1 -1
- package/dist/esm/core/navigation/viewer-field-reader.d.ts +81 -0
- package/dist/esm/core/navigation/viewer-field-reader.d.ts.map +1 -0
- package/dist/esm/core/navigation/viewer-field-reader.js +113 -0
- package/dist/esm/core/navigation/viewer-field-reader.js.map +1 -0
- package/dist/esm/core/navigation/viewer-roles.d.ts +40 -0
- package/dist/esm/core/navigation/viewer-roles.d.ts.map +1 -0
- package/dist/esm/core/navigation/viewer-roles.js +26 -0
- package/dist/esm/core/navigation/viewer-roles.js.map +1 -0
- package/dist/esm/core/requests/user-interaction-clock.d.ts +32 -0
- package/dist/esm/core/requests/user-interaction-clock.d.ts.map +1 -0
- package/dist/esm/core/requests/user-interaction-clock.js +47 -0
- package/dist/esm/core/requests/user-interaction-clock.js.map +1 -0
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.d.ts.map +1 -1
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.js +2 -0
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.js.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +27 -6
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +30 -7
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
- package/dist/esm/core/requests/wildo-http-client.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/requests/wildo-http-client.frontend.service.js +13 -0
- package/dist/esm/core/requests/wildo-http-client.frontend.service.js.map +1 -1
- package/dist/esm/core/resources/hooks/useOperationEnabled.d.ts.map +1 -1
- package/dist/esm/core/resources/hooks/useOperationEnabled.js +4 -0
- package/dist/esm/core/resources/hooks/useOperationEnabled.js.map +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.js.map +1 -1
- package/dist/esm/core/resources/resources-repository.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/resources/resources-repository.frontend.service.js +2 -0
- package/dist/esm/core/resources/resources-repository.frontend.service.js.map +1 -1
- package/dist/esm/core/resources/resources.frontend.schemas.d.ts +29 -23
- package/dist/esm/core/resources/resources.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/resources/resources.frontend.schemas.js +20 -20
- package/dist/esm/core/resources/resources.frontend.schemas.js.map +1 -1
- package/dist/esm/core/resources/rmm/ResourceMutationManager.d.ts.map +1 -1
- package/dist/esm/core/resources/rmm/ResourceMutationManager.js +4 -0
- package/dist/esm/core/resources/rmm/ResourceMutationManager.js.map +1 -1
- package/dist/esm/core/resources/useResourceOperationActions.d.ts.map +1 -1
- package/dist/esm/core/resources/useResourceOperationActions.js +7 -7
- package/dist/esm/core/resources/useResourceOperationActions.js.map +1 -1
- package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
- package/dist/esm/core/runtime/AppRouter.js +11 -33
- package/dist/esm/core/runtime/AppRouter.js.map +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.d.ts +15 -1
- package/dist/esm/core/runtime/ApplicationMainContext.d.ts.map +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.js +41 -23
- package/dist/esm/core/runtime/ApplicationMainContext.js.map +1 -1
- package/dist/esm/core/runtime/IdentityPortalRouter.d.ts +20 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.d.ts.map +1 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.js +31 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.js.map +1 -0
- package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts +9 -0
- package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts.map +1 -1
- package/dist/esm/core/runtime/domain-module.frontend.definitions.js +3 -2
- package/dist/esm/core/runtime/domain-module.frontend.definitions.js.map +1 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts +21 -0
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts.map +1 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.js +19 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.js.map +1 -1
- package/dist/esm/core/runtime/identity-routes.d.ts +13 -0
- package/dist/esm/core/runtime/identity-routes.d.ts.map +1 -0
- package/dist/esm/core/runtime/identity-routes.js +50 -0
- package/dist/esm/core/runtime/identity-routes.js.map +1 -0
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +19 -0
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js +20 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts +3 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.js +2 -0
- package/dist/esm/core/runtime/runtime.frontend.schemas.js.map +1 -1
- package/dist/esm/core/runtime/start-application.frontend.service.d.ts +7 -0
- package/dist/esm/core/runtime/start-application.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/start-application.frontend.service.js +4 -2
- package/dist/esm/core/runtime/start-application.frontend.service.js.map +1 -1
- package/dist/esm/core/security/AuthSessionContext.d.ts.map +1 -1
- package/dist/esm/core/security/AuthSessionContext.js +4 -0
- package/dist/esm/core/security/AuthSessionContext.js.map +1 -1
- package/dist/esm/core/security/StepUpAuthContext.d.ts +3 -2
- package/dist/esm/core/security/StepUpAuthContext.d.ts.map +1 -1
- package/dist/esm/core/security/StepUpAuthContext.js +7 -2
- package/dist/esm/core/security/StepUpAuthContext.js.map +1 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.d.ts +13 -2
- package/dist/esm/core/security/federated-reauthentication.frontend.d.ts.map +1 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.js +21 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.js.map +1 -1
- package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts +24 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts.map +1 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.js +37 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.js.map +1 -0
- package/dist/esm/core/ui/design-token.utils.d.ts +9 -0
- package/dist/esm/core/ui/design-token.utils.d.ts.map +1 -1
- package/dist/esm/core/ui/design-token.utils.js +24 -3
- package/dist/esm/core/ui/design-token.utils.js.map +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.d.ts +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.js +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.js.map +1 -1
- package/dist/esm/core/ui/ui.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/index.d.ts +14 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +17 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/testing/mock-builders.d.ts +1 -1
- package/dist/esm/testing/mock-builders.d.ts.map +1 -1
- package/dist/esm/testing/mock-builders.js +1 -0
- package/dist/esm/testing/mock-builders.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +9 -6
- package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.d.ts.map +0 -1
- package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.js.map +0 -1
|
@@ -15,8 +15,10 @@ import { EmptyState } from '../../../components/feedback/empty-state.js';
|
|
|
15
15
|
import { StandardIconReference } from '../../../core/icons/icon-registry.frontend.schemas.js';
|
|
16
16
|
import { FrontendComponentType } from '@wildo-ai/presets-components-models';
|
|
17
17
|
import { useI18n } from '../../../core/i18n/useI18n.js';
|
|
18
|
-
import {
|
|
18
|
+
import { RequiredFeaturesGate } from '../../../core/features/RequiredFeaturesGate.js';
|
|
19
|
+
import { RequiredFeaturesGatePresentation } from '../../../core/features/required-features-gate-presentation.js';
|
|
19
20
|
import { useResourceRegistry } from '../../../core/resources/useResourceRegistry.js';
|
|
21
|
+
import { ChartReadDecision, useChartReadDecision } from '../../../core/navigation/useChartReadDecision.js';
|
|
20
22
|
import { resolveInsertedChartView } from '../../../core/config/chart-view.frontend.schemas.js';
|
|
21
23
|
import { ChartLoadingSkeleton } from './ChartLoadingSkeleton.js';
|
|
22
24
|
// Lazy-load ChartView — keeps ECharts completely out of the main bundle
|
|
@@ -52,11 +54,17 @@ class ChartWidgetErrorBoundary extends Component {
|
|
|
52
54
|
*/
|
|
53
55
|
export const ChartWidget = ({ chartRef, width = '100%', height = '100%', className, }) => {
|
|
54
56
|
const { registry } = useResourceRegistry();
|
|
55
|
-
const
|
|
57
|
+
const chartDefinition = resolveInsertedChartView({
|
|
56
58
|
viewRef: chartRef,
|
|
57
59
|
registry,
|
|
58
|
-
})?.chartView.chartDefinition
|
|
59
|
-
|
|
60
|
+
})?.chartView.chartDefinition;
|
|
61
|
+
const requiredFeatures = chartDefinition?.requiredFeatures;
|
|
62
|
+
// #4252: a chart the backend's chart gate would refuse this viewer is not drawn (nor while their roles load), as on
|
|
63
|
+
// every other surface that shows a chart.
|
|
64
|
+
const readDecision = useChartReadDecision(chartDefinition);
|
|
65
|
+
if (readDecision !== ChartReadDecision.ALLOWED)
|
|
66
|
+
return null;
|
|
67
|
+
return (_jsx(ChartWidgetErrorBoundary, { chartRef: chartRef, children: _jsx(RequiredFeaturesGate, { requiredFeatures: requiredFeatures, presentation: RequiredFeaturesGatePresentation.TILE, lockedTileHeight: height, children: _jsx(Suspense, { fallback: _jsx(ChartLoadingSkeleton, { height: height }), children: _jsx(LazyChartView, { viewRef: chartRef, width: width, height: height, className: className }) }) }) }));
|
|
60
68
|
};
|
|
61
69
|
export default ChartWidget;
|
|
62
70
|
//# sourceMappingURL=ChartWidget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartWidget.js","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/ChartWidget.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;oEAUoE;AAEpE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,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,CAAC,EACtD,QAAQ,EACR,KAAK,GAAG,MAAM,EACd,MAAM,GAAG,MAAM,EACf,SAAS,GACV,EAAE,EAAE;IACH,MAAM,EAAE,QAAQ,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAC3C,MAAM,eAAe,GAAG,wBAAwB,CAAC;QAC/C,OAAO,EAAE,QAAQ;QACjB,QAAQ;KACT,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC;IAC9B,MAAM,gBAAgB,GAAG,eAAe,EAAE,gBAAgB,CAAC;IAC3D,oHAAoH;IACpH,0CAA0C;IAC1C,MAAM,YAAY,GAAG,oBAAoB,CAAC,eAAe,CAAC,CAAC;IAC3D,IAAI,YAAY,KAAK,iBAAiB,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAE5D,OAAO,CACL,KAAC,wBAAwB,IAAC,QAAQ,EAAE,QAAQ,YAC1C,KAAC,oBAAoB,IAAC,gBAAgB,EAAE,gBAAgB,EAAE,YAAY,EAAE,gCAAgC,CAAC,IAAI,EAAE,gBAAgB,EAAE,MAAM,YACrI,KAAC,QAAQ,IAAC,QAAQ,EAAE,KAAC,oBAAoB,IAAC,MAAM,EAAE,MAAM,GAAI,YAC1D,KAAC,aAAa,IACZ,OAAO,EAAE,QAAQ,EACjB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,GACpB,GACO,GACU,GACE,CAC5B,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["/** ──────────────────────────────────────────────────────────────\n * ChartWidget — Lazy-loaded chart for CompositeView grids\n *\n * Wraps ChartView in:\n * - React.lazy (code-split)\n * - Error boundary (chart failure doesn't crash the dashboard)\n * - Suspense (loading skeleton)\n *\n * Usage in CompositeView grid config:\n * { type: 'chart', chartRef: 'orders-per-month', x: 0, y: 0, w: 6, h: 4 }\n * ────────────────────────────────────────────────────────────── */\n\nimport React, { Component, Suspense } from 'react';\nimport type { ReactNode, ErrorInfo } from 'react';\nimport { EmptyState } from '~wildo-frontend-lib/components/feedback/empty-state';\nimport { StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { RequiredFeaturesGate } from '~wildo-frontend-lib/core/features/RequiredFeaturesGate';\nimport { RequiredFeaturesGatePresentation } from '~wildo-frontend-lib/core/features/required-features-gate-presentation';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { ChartReadDecision, useChartReadDecision } from '~wildo-frontend-lib/core/navigation/useChartReadDecision';\nimport { resolveInsertedChartView } from '~wildo-frontend-lib/core/config/chart-view.frontend.schemas';\nimport { ChartLoadingSkeleton } from './ChartLoadingSkeleton';\n\n// Lazy-load ChartView — keeps ECharts completely out of the main bundle\nconst LazyChartView = React.lazy(() => import('./ChartView'));\n\n// ── Error Fallback (functional — can use hooks) ─────────────\n\nconst ChartWidgetErrorFallback: React.FC<{ onRetry: () => void }> = ({ onRetry }) => {\n const { tComponent, isReady } = useI18n({ component: FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_WIDGET });\n\n if (!isReady) return null;\n\n return (\n <EmptyState\n variant=\"compact\"\n iconRef={StandardIconReference.ERROR_APPLICATION}\n title={tComponent(FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_WIDGET, 'chartFailed')}\n primaryActionLabel={tComponent(FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_WIDGET, 'retry')}\n onPrimaryAction={onRetry}\n respectSurfaceEmptyDisplay={false}\n className=\"h-full min-h-[120px] border-0\"\n />\n );\n};\n\n// ── Error Boundary ──────────────────────────────────────────\n\ninterface ErrorBoundaryProps {\n chartRef: string;\n children: ReactNode;\n}\n\ninterface ErrorBoundaryState {\n hasError: boolean;\n error?: Error;\n}\n\nclass ChartWidgetErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {\n constructor(props: ErrorBoundaryProps) {\n super(props);\n this.state = { hasError: false };\n }\n\n static getDerivedStateFromError(error: Error): ErrorBoundaryState {\n return { hasError: true, error };\n }\n\n componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n console.error(`ChartWidget error (ref: ${this.props.chartRef}):`, error, errorInfo);\n }\n\n render() {\n if (this.state.hasError) {\n return (\n <ChartWidgetErrorFallback\n onRetry={() => this.setState({ hasError: false, error: undefined })}\n />\n );\n }\n\n return this.props.children;\n }\n}\n\n// ── ChartWidget Component ───────────────────────────────────\n\nexport interface ChartWidgetProps {\n /** Chart reference — resolved by `ChartView` from the resource registry. */\n chartRef: string;\n /** Width (default: 100% — fills grid cell) */\n width?: string | number;\n /** Height (default: 100% — fills grid cell) */\n height?: string | number;\n /** Additional CSS class */\n className?: string;\n}\n\n/**\n * ChartWidget — drop-in chart component for dashboard grids.\n * Includes lazy loading, error boundary, and suspense fallback.\n */\nexport const ChartWidget: React.FC<ChartWidgetProps> = ({\n chartRef,\n width = '100%',\n height = '100%',\n className,\n}) => {\n const { registry } = useResourceRegistry();\n const chartDefinition = resolveInsertedChartView({\n viewRef: chartRef,\n registry,\n })?.chartView.chartDefinition;\n const requiredFeatures = chartDefinition?.requiredFeatures;\n // #4252: a chart the backend's chart gate would refuse this viewer is not drawn (nor while their roles load), as on\n // every other surface that shows a chart.\n const readDecision = useChartReadDecision(chartDefinition);\n if (readDecision !== ChartReadDecision.ALLOWED) return null;\n\n return (\n <ChartWidgetErrorBoundary chartRef={chartRef}>\n <RequiredFeaturesGate requiredFeatures={requiredFeatures} presentation={RequiredFeaturesGatePresentation.TILE} lockedTileHeight={height}>\n <Suspense fallback={<ChartLoadingSkeleton height={height} />}>\n <LazyChartView\n viewRef={chartRef}\n width={width}\n height={height}\n className={className}\n />\n </Suspense>\n </RequiredFeaturesGate>\n </ChartWidgetErrorBoundary>\n );\n};\n\nexport default ChartWidget;\n"]}
|
|
@@ -30,5 +30,13 @@ export declare function exportChartAsPNG(echartsInstance: EChartsExportable | nu
|
|
|
30
30
|
* @param filename - The file name for the download (default: 'chart-data.csv')
|
|
31
31
|
*/
|
|
32
32
|
export declare function exportChartAsCSV(response: AggregationQueryResponse, definition: ChartDefinition, filename?: string): void;
|
|
33
|
+
/**
|
|
34
|
+
* The CSV text of a chart's data: one header row of labels, then one row per data point, dimensions first.
|
|
35
|
+
*
|
|
36
|
+
* Every cell goes through `toCsvCell`, the one cell writer the listing and subject exports use, so a value a person typed
|
|
37
|
+
* that starts like a formula (a customer named `=HYPERLINK(…)` grouped as a dimension) is written as text the spreadsheet
|
|
38
|
+
* does not run, and a carriage return is quoted like a line feed. This function had its own escaping, which did neither.
|
|
39
|
+
*/
|
|
40
|
+
export declare function buildChartCsvContent(response: AggregationQueryResponse, definition: ChartDefinition): string;
|
|
33
41
|
export {};
|
|
34
42
|
//# sourceMappingURL=chart-export.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-export.utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/chart-export.utils.ts"],"names":[],"mappings":"AAAA;;;;;oEAKoE;AAEpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"chart-export.utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/chart-export.utils.ts"],"names":[],"mappings":"AAAA;;;;;oEAKoE;AAEpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAI7D;;;;;;GAMG;AACH,0DAA0D;AAC1D,UAAU,iBAAiB;IACzB,UAAU,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;CAC7F;AAED,wBAAgB,gBAAgB,CAC9B,eAAe,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,EACrD,QAAQ,SAAc,EACtB,UAAU,SAAI,GACb,IAAI,CAkBN;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,wBAAwB,EAClC,UAAU,EAAE,eAAe,EAC3B,QAAQ,SAAmB,GAC1B,IAAI,CAMN;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,wBAAwB,EAAE,UAAU,EAAE,eAAe,GAAG,MAAM,CA0B5G"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* - PNG export via ECharts `getDataURL()`
|
|
5
5
|
* - CSV export from aggregation response data
|
|
6
6
|
* ────────────────────────────────────────────────────────────── */
|
|
7
|
+
import { toCsvCell } from '@wildo-ai/saas-models';
|
|
7
8
|
import { saveBlobAsFile } from '../../../core/commons/save-blob-as-file.frontend.utils.js';
|
|
8
9
|
export function exportChartAsPNG(echartsInstance, filename = 'chart.png', pixelRatio = 2) {
|
|
9
10
|
if (!echartsInstance?.getDataURL) {
|
|
@@ -34,6 +35,16 @@ export function exportChartAsCSV(response, definition, filename = 'chart-data.cs
|
|
|
34
35
|
console.warn('Chart export: no data to export');
|
|
35
36
|
return;
|
|
36
37
|
}
|
|
38
|
+
saveBlobAsFile(new Blob([buildChartCsvContent(response, definition)], { type: 'text/csv;charset=utf-8;' }), filename);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The CSV text of a chart's data: one header row of labels, then one row per data point, dimensions first.
|
|
42
|
+
*
|
|
43
|
+
* Every cell goes through `toCsvCell`, the one cell writer the listing and subject exports use, so a value a person typed
|
|
44
|
+
* that starts like a formula (a customer named `=HYPERLINK(…)` grouped as a dimension) is written as text the spreadsheet
|
|
45
|
+
* does not run, and a carriage return is quoted like a line feed. This function had its own escaping, which did neither.
|
|
46
|
+
*/
|
|
47
|
+
export function buildChartCsvContent(response, definition) {
|
|
37
48
|
// Determine column order: dimensions first, then measures
|
|
38
49
|
const dimensionRefs = definition.dataQuery.dimensions.map(d => d.ref);
|
|
39
50
|
const measureRefs = definition.dataQuery.measures.map(m => m.ref);
|
|
@@ -48,31 +59,10 @@ export function exportChartAsCSV(response, definition, filename = 'chart-data.cs
|
|
|
48
59
|
const headers = [...dimensionLabels, ...measureLabels, ...computedLabels, ...windowLabels];
|
|
49
60
|
// Build rows (headers are also escaped to handle labels with commas/quotes/newlines)
|
|
50
61
|
const rows = [];
|
|
51
|
-
rows.push(headers.map(
|
|
52
|
-
for (const row of response.data) {
|
|
53
|
-
|
|
54
|
-
const value = row[ref];
|
|
55
|
-
if (value == null)
|
|
56
|
-
return '';
|
|
57
|
-
if (typeof value === 'string')
|
|
58
|
-
return escapeCSV(value);
|
|
59
|
-
if (value instanceof Date)
|
|
60
|
-
return value.toISOString();
|
|
61
|
-
return String(value);
|
|
62
|
-
});
|
|
63
|
-
rows.push(csvRow);
|
|
64
|
-
}
|
|
65
|
-
// Build CSV string
|
|
66
|
-
const csvContent = rows.map(row => row.join(',')).join('\n');
|
|
67
|
-
saveBlobAsFile(new Blob([csvContent], { type: 'text/csv;charset=utf-8;' }), filename);
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Escape a value for CSV: wrap in quotes if it contains commas, quotes, or newlines.
|
|
71
|
-
*/
|
|
72
|
-
function escapeCSV(value) {
|
|
73
|
-
if (value.includes(',') || value.includes('"') || value.includes('\n')) {
|
|
74
|
-
return `"${value.replace(/"/g, '""')}"`;
|
|
62
|
+
rows.push(headers.map((header) => toCsvCell(header)));
|
|
63
|
+
for (const row of response.data ?? []) {
|
|
64
|
+
rows.push(allRefs.map((ref) => toCsvCell(row[ref])));
|
|
75
65
|
}
|
|
76
|
-
return
|
|
66
|
+
return rows.map((row) => row.join(',')).join('\n');
|
|
77
67
|
}
|
|
78
68
|
//# sourceMappingURL=chart-export.utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-export.utils.js","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/chart-export.utils.ts"],"names":[],"mappings":"AAAA;;;;;oEAKoE;AAIpE,OAAO,EAAE,cAAc,EAAE,MAAM,mEAAmE,CAAC;AAcnG,MAAM,UAAU,gBAAgB,CAC9B,eAAqD,EACrD,QAAQ,GAAG,WAAW,EACtB,UAAU,GAAG,CAAC;IAEd,IAAI,CAAC,eAAe,EAAE,UAAU,EAAE,CAAC;QACjC,OAAO,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC;QAC5D,OAAO;IACT,CAAC;IAED,MAAM,OAAO,GAAG,eAAe,CAAC,UAAU,CAAC;QACzC,IAAI,EAAE,KAAK;QACX,UAAU;QACV,eAAe,EAAE,MAAM;KACxB,CAAC,CAAC;IAEH,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACzC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;IACpB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAChC,IAAI,CAAC,KAAK,EAAE,CAAC;IACb,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAC9B,QAAkC,EAClC,UAA2B,EAC3B,QAAQ,GAAG,gBAAgB;IAE3B,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjD,OAAO,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;QAChD,OAAO;IACT,CAAC;
|
|
1
|
+
{"version":3,"file":"chart-export.utils.js","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/chart-export.utils.ts"],"names":[],"mappings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,CAAC;IACnG,MAAM,YAAY,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,eAAe,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC;IAEhG,MAAM,OAAO,GAAG,CAAC,GAAG,eAAe,EAAE,GAAG,aAAa,EAAE,GAAG,cAAc,EAAE,GAAG,YAAY,CAAC,CAAC;IAE3F,qFAAqF;IACrF,MAAM,IAAI,GAAe,EAAE,CAAC;IAC5B,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAEtD,KAAK,MAAM,GAAG,IAAI,QAAQ,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC;QACtC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACvD,CAAC;IAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACrD,CAAC","sourcesContent":["/** ──────────────────────────────────────────────────────────────\n * Chart Export Utilities\n * \n * - PNG export via ECharts `getDataURL()`\n * - CSV export from aggregation response data\n * ────────────────────────────────────────────────────────────── */\n\nimport type { AggregationQueryResponse } from '@wildo-ai/saas-models';\nimport type { ChartDefinition } from '@wildo-ai/saas-models';\nimport { toCsvCell } from '@wildo-ai/saas-models';\nimport { saveBlobAsFile } from '~wildo-frontend-lib/core/commons/save-blob-as-file.frontend.utils';\n\n/**\n * Export the chart as a PNG image.\n * \n * @param echartsInstance - The ECharts instance (from `onChartReady`)\n * @param filename - The file name for the download (default: 'chart.png')\n * @param pixelRatio - Resolution multiplier (default: 2 for retina)\n */\n/** Minimal interface for the ECharts getDataURL method */\ninterface EChartsExportable {\n getDataURL: (opts: { type: string; pixelRatio: number; backgroundColor: string }) => string;\n}\n\nexport function exportChartAsPNG(\n echartsInstance: EChartsExportable | null | undefined,\n filename = 'chart.png',\n pixelRatio = 2,\n): void {\n if (!echartsInstance?.getDataURL) {\n console.warn('Chart export: no ECharts instance available');\n return;\n }\n\n const dataURL = echartsInstance.getDataURL({\n type: 'png',\n pixelRatio,\n backgroundColor: '#fff',\n });\n\n const link = document.createElement('a');\n link.download = filename;\n link.href = dataURL;\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n}\n\n/**\n * Export the chart data as a CSV file.\n * \n * @param response - The aggregation query response\n * @param definition - The chart definition (for column headers)\n * @param filename - The file name for the download (default: 'chart-data.csv')\n */\nexport function exportChartAsCSV(\n response: AggregationQueryResponse,\n definition: ChartDefinition,\n filename = 'chart-data.csv',\n): void {\n if (!response.data || response.data.length === 0) {\n console.warn('Chart export: no data to export');\n return;\n }\n saveBlobAsFile(new Blob([buildChartCsvContent(response, definition)], { type: 'text/csv;charset=utf-8;' }), filename);\n}\n\n/**\n * The CSV text of a chart's data: one header row of labels, then one row per data point, dimensions first.\n *\n * Every cell goes through `toCsvCell`, the one cell writer the listing and subject exports use, so a value a person typed\n * that starts like a formula (a customer named `=HYPERLINK(…)` grouped as a dimension) is written as text the spreadsheet\n * does not run, and a carriage return is quoted like a line feed. This function had its own escaping, which did neither.\n */\nexport function buildChartCsvContent(response: AggregationQueryResponse, definition: ChartDefinition): string {\n // Determine column order: dimensions first, then measures\n const dimensionRefs = definition.dataQuery.dimensions.map(d => d.ref);\n const measureRefs = definition.dataQuery.measures.map(m => m.ref);\n const computedRefs = (definition.dataQuery.computedMeasures || []).map(cm => cm.ref);\n const windowRefs = (definition.dataQuery.windowFunctions || []).map(wf => wf.ref);\n\n const allRefs = [...dimensionRefs, ...measureRefs, ...computedRefs, ...windowRefs];\n\n // Build headers — use labels when available\n const dimensionLabels = definition.dataQuery.dimensions.map(d => d.label || d.ref);\n const measureLabels = definition.dataQuery.measures.map(m => m.label || m.ref);\n const computedLabels = (definition.dataQuery.computedMeasures || []).map(cm => cm.label || cm.ref);\n const windowLabels = (definition.dataQuery.windowFunctions || []).map(wf => wf.label || wf.ref);\n\n const headers = [...dimensionLabels, ...measureLabels, ...computedLabels, ...windowLabels];\n\n // Build rows (headers are also escaped to handle labels with commas/quotes/newlines)\n const rows: string[][] = [];\n rows.push(headers.map((header) => toCsvCell(header)));\n\n for (const row of response.data ?? []) {\n rows.push(allRefs.map((ref) => toCsvCell(row[ref])));\n }\n\n return rows.map((row) => row.join(',')).join('\\n');\n}\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A chart view's height when its host gives none. In a module of its own so the lazy wrapper, its fallbacks and a locked
|
|
3
|
+
* tile can size themselves like the chart without importing the chart chunk.
|
|
4
|
+
*/
|
|
5
|
+
export declare const CHART_VIEW_DEFAULT_HEIGHT = 400;
|
|
6
|
+
//# sourceMappingURL=chart-view-defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart-view-defaults.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/chart-view-defaults.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,yBAAyB,MAAM,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A chart view's height when its host gives none. In a module of its own so the lazy wrapper, its fallbacks and a locked
|
|
3
|
+
* tile can size themselves like the chart without importing the chart chunk.
|
|
4
|
+
*/
|
|
5
|
+
export const CHART_VIEW_DEFAULT_HEIGHT = 400;
|
|
6
|
+
//# sourceMappingURL=chart-view-defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart-view-defaults.js","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/chart-view-defaults.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAC","sourcesContent":["/**\n * A chart view's height when its host gives none. In a module of its own so the lazy wrapper, its fallbacks and a locked\n * tile can size themselves like the chart without importing the chart chunk.\n */\nexport const CHART_VIEW_DEFAULT_HEIGHT = 400;\n"]}
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
* ────────────────────────────────────────────────────────────── */
|
|
4
4
|
import { TimeGranularity } from '@wildo-ai/saas-models';
|
|
5
5
|
import type { ChartBuildContext, ChartI18nResolver } from './chart-type-builder.interface';
|
|
6
|
-
import type { ChartSeriesDefinition, AggregationQueryResponseRow } from '@wildo-ai/saas-models';
|
|
6
|
+
import type { ChartDefinition, ChartSeriesDefinition, AggregationQueryResponseRow } from '@wildo-ai/saas-models';
|
|
7
7
|
import type { ChartStylePreset } from '@wildo-ai/presets-components-models';
|
|
8
|
+
import { FrontendComponentType } from '@wildo-ai/presets-components-models';
|
|
8
9
|
import type { DimensionEnumColors } from '../../../../components/views/chart-view/enum-color-bridge';
|
|
9
10
|
/** Get the first dimension ref from the chart definition */
|
|
10
11
|
export declare function getPrimaryDimensionRef(ctx: ChartBuildContext): string;
|
|
@@ -61,17 +62,42 @@ export declare function resolveSplitColor(splitValue: string, splitIndex: number
|
|
|
61
62
|
*
|
|
62
63
|
* Resolution order:
|
|
63
64
|
* 1. chart-level i18n.splitValueKeys (via i18n resolver)
|
|
64
|
-
* 2.
|
|
65
|
-
* 3.
|
|
66
|
-
*
|
|
65
|
+
* 2. the value's enum label, when `dimensionRef` names an enum dimension (`ctx.dimensionEnumLabels`)
|
|
66
|
+
* 3. raw split value
|
|
67
|
+
*
|
|
68
|
+
* There is no per-series map of words: words written into a definition reach no translation.
|
|
67
69
|
*/
|
|
68
70
|
export declare function resolveSplitLabel(splitValue: string, series: ChartSeriesDefinition, ctx?: ChartBuildContext, dimensionRef?: string): string;
|
|
69
71
|
/**
|
|
70
|
-
*
|
|
72
|
+
* The definition with every series named by a label key: the key it declares in `nameKey`, else its own key under the
|
|
73
|
+
* chart view's label keys (`labelKeyOf(series.ref)`, `buildChartSeriesLabelKey` for a resource chart view). Each mark
|
|
74
|
+
* line and mark point with a ref and no `labelKey` gets its own key the same way (`markLabelKeyOf(mark.ref)`,
|
|
75
|
+
* `buildChartMarkLabelKey`). The chart view applies it before building the option, so the builders always have a key.
|
|
76
|
+
*/
|
|
77
|
+
export declare function withSeriesLabelKeys(definition: ChartDefinition, labelKeyOf: (seriesRef: string) => string, markLabelKeyOf?: (markRef: string) => string): ChartDefinition;
|
|
78
|
+
/** Every label key a definition's series and marks name: what the chart view loads before it draws. */
|
|
79
|
+
export declare function chartDefinitionLabelKeys(definition: ChartDefinition | undefined): string[];
|
|
80
|
+
/**
|
|
81
|
+
* The resolver a chart view hands its builders.
|
|
71
82
|
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
83
|
+
* - A bare ref (no dot, such as `densifiedSeriesName` or `waterfallGainLabel`) is one of the chart component's own
|
|
84
|
+
* labels, which live under `components.HIGH_LEVEL_VIEWS_CHART`. A missing one answers the bare ref, never the
|
|
85
|
+
* prefixed path, so a builder that tells a missing label by "the answer is the key" still can.
|
|
86
|
+
* - Any other key (a series' label key, or a `nameKey` naming another label such as a resource field's) is a path from
|
|
87
|
+
* the root of the label tree.
|
|
88
|
+
*/
|
|
89
|
+
export declare function createChartLabelResolver(params: {
|
|
90
|
+
tComponent: (componentType: FrontendComponentType, key: string, values?: Record<string, string | number>) => string;
|
|
91
|
+
t: ChartI18nResolver;
|
|
92
|
+
}): ChartI18nResolver;
|
|
93
|
+
/**
|
|
94
|
+
* The name a series shows in the legend and the tooltip: always a LABEL, never `series.name`.
|
|
95
|
+
*
|
|
96
|
+
* The chart view fills `nameKey` with the series' own label key (`buildChartSeriesLabelKey`) unless the definition names
|
|
97
|
+
* another, so the words come from the label tree like every other string a person reads. A key with no word yet is shown
|
|
98
|
+
* as the key, so the missing label looks missing; `series.name` is English written into the definition, which no
|
|
99
|
+
* translation reaches, and is never shown. A series with no key at all (a definition rendered outside any chart view, as
|
|
100
|
+
* a development preview is) shows its `ref`.
|
|
75
101
|
*/
|
|
76
102
|
export declare function resolveSeriesName(series: ChartSeriesDefinition, t?: ChartI18nResolver): string;
|
|
77
103
|
/**
|
|
@@ -211,5 +237,5 @@ export declare function hasDensifiedRows(data: AggregationQueryResponseRow[]): b
|
|
|
211
237
|
*/
|
|
212
238
|
export declare function buildResponsiveMedia(preset: ChartStylePreset | undefined, hasCartesianAxes: boolean, compensatesPieLabelsOnSmall?: boolean): unknown[];
|
|
213
239
|
/** Apply ChartSeriesStyle to an ECharts series item */
|
|
214
|
-
export declare function applySeriesStyle(echartsSeriesItem: Record<string, unknown>, seriesDef: ChartSeriesDefinition): void;
|
|
240
|
+
export declare function applySeriesStyle(echartsSeriesItem: Record<string, unknown>, seriesDef: ChartSeriesDefinition, t: ChartI18nResolver): void;
|
|
215
241
|
//# sourceMappingURL=builder-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/views/chart-view/option-builder/builder-utils.ts"],"names":[],"mappings":"AAAA;;oEAEoE;AAEpE,OAAO,EAAqB,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC3F,OAAO,KAAK,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"builder-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/views/chart-view/option-builder/builder-utils.ts"],"names":[],"mappings":"AAAA;;oEAEoE;AAEpE,OAAO,EAAqB,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB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CAazB;AAID,8DAA8D;AAC9D,wBAAgB,WAAW,CAAC,GAAG,EAAE,2BAA2B,GAAG,OAAO,CAErE;AAED,qDAAqD;AACrD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,2BAA2B,EAAE,GAAG,OAAO,CAE7E;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,gBAAgB,GAAG,SAAS,EACpC,gBAAgB,EAAE,OAAO,EACzB,2BAA2B,GAAE,OAAe,GAC3C,OAAO,EAAE,CAkCX;AAID,uDAAuD;AACvD,wBAAgB,gBAAgB,CAC9B,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1C,SAAS,EAAE,qBAAqB,EAChC,CAAC,EAAE,iBAAiB,GACnB,IAAI,CAyFN"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Builder Utilities — shared helpers for option builders
|
|
3
3
|
* ────────────────────────────────────────────────────────────── */
|
|
4
4
|
import { AggregateFunction, TimeGranularity } from '@wildo-ai/saas-models';
|
|
5
|
+
import { FrontendComponentType, LabellingTypes } from '@wildo-ai/presets-components-models';
|
|
5
6
|
// ── Data Extraction ──────────────────────────────────────────
|
|
6
7
|
/** Get the first dimension ref from the chart definition */
|
|
7
8
|
export function getPrimaryDimensionRef(ctx) {
|
|
@@ -114,9 +115,10 @@ export function resolveSplitColor(splitValue, splitIndex, series, palette, enumC
|
|
|
114
115
|
*
|
|
115
116
|
* Resolution order:
|
|
116
117
|
* 1. chart-level i18n.splitValueKeys (via i18n resolver)
|
|
117
|
-
* 2.
|
|
118
|
-
* 3.
|
|
119
|
-
*
|
|
118
|
+
* 2. the value's enum label, when `dimensionRef` names an enum dimension (`ctx.dimensionEnumLabels`)
|
|
119
|
+
* 3. raw split value
|
|
120
|
+
*
|
|
121
|
+
* There is no per-series map of words: words written into a definition reach no translation.
|
|
120
122
|
*/
|
|
121
123
|
export function resolveSplitLabel(splitValue, series, ctx, dimensionRef) {
|
|
122
124
|
// Try i18n key resolution first
|
|
@@ -128,24 +130,70 @@ export function resolveSplitLabel(splitValue, series, ctx, dimensionRef) {
|
|
|
128
130
|
return resolved;
|
|
129
131
|
}
|
|
130
132
|
}
|
|
131
|
-
return
|
|
132
|
-
|
|
133
|
-
|
|
133
|
+
return (dimensionRef ? ctx?.dimensionEnumLabels?.[dimensionRef]?.[splitValue] : undefined) ?? splitValue;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* The definition with every series named by a label key: the key it declares in `nameKey`, else its own key under the
|
|
137
|
+
* chart view's label keys (`labelKeyOf(series.ref)`, `buildChartSeriesLabelKey` for a resource chart view). Each mark
|
|
138
|
+
* line and mark point with a ref and no `labelKey` gets its own key the same way (`markLabelKeyOf(mark.ref)`,
|
|
139
|
+
* `buildChartMarkLabelKey`). The chart view applies it before building the option, so the builders always have a key.
|
|
140
|
+
*/
|
|
141
|
+
export function withSeriesLabelKeys(definition, labelKeyOf, markLabelKeyOf) {
|
|
142
|
+
const withMarkKey = (mark) => markLabelKeyOf && mark.labelKey === undefined && mark.ref !== undefined ? { ...mark, labelKey: markLabelKeyOf(mark.ref) } : mark;
|
|
143
|
+
return {
|
|
144
|
+
...definition,
|
|
145
|
+
series: definition.series.map((series) => {
|
|
146
|
+
const named = series.nameKey === undefined ? { ...series, nameKey: labelKeyOf(series.ref) } : series;
|
|
147
|
+
if (!named.style?.markLines && !named.style?.markPoints)
|
|
148
|
+
return named;
|
|
149
|
+
return {
|
|
150
|
+
...named,
|
|
151
|
+
style: {
|
|
152
|
+
...named.style,
|
|
153
|
+
...(named.style.markLines ? { markLines: named.style.markLines.map(withMarkKey) } : {}),
|
|
154
|
+
...(named.style.markPoints ? { markPoints: named.style.markPoints.map(withMarkKey) } : {}),
|
|
155
|
+
},
|
|
156
|
+
};
|
|
157
|
+
}),
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
/** Every label key a definition's series and marks name: what the chart view loads before it draws. */
|
|
161
|
+
export function chartDefinitionLabelKeys(definition) {
|
|
162
|
+
return (definition?.series ?? []).flatMap((series) => [
|
|
163
|
+
...(series.nameKey === undefined ? [] : [series.nameKey]),
|
|
164
|
+
...[...(series.style?.markLines ?? []), ...(series.style?.markPoints ?? [])].flatMap((mark) => mark.labelKey !== undefined && mark.labelKey.includes('.') ? [mark.labelKey] : []),
|
|
165
|
+
]);
|
|
134
166
|
}
|
|
135
167
|
/**
|
|
136
|
-
*
|
|
168
|
+
* The resolver a chart view hands its builders.
|
|
137
169
|
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
170
|
+
* - A bare ref (no dot, such as `densifiedSeriesName` or `waterfallGainLabel`) is one of the chart component's own
|
|
171
|
+
* labels, which live under `components.HIGH_LEVEL_VIEWS_CHART`. A missing one answers the bare ref, never the
|
|
172
|
+
* prefixed path, so a builder that tells a missing label by "the answer is the key" still can.
|
|
173
|
+
* - Any other key (a series' label key, or a `nameKey` naming another label such as a resource field's) is a path from
|
|
174
|
+
* the root of the label tree.
|
|
175
|
+
*/
|
|
176
|
+
export function createChartLabelResolver(params) {
|
|
177
|
+
return (key, values) => {
|
|
178
|
+
if (key.includes('.'))
|
|
179
|
+
return params.t(key, values);
|
|
180
|
+
const answer = params.tComponent(FrontendComponentType.HIGH_LEVEL_VIEWS_CHART, key, values);
|
|
181
|
+
return answer === `${LabellingTypes.COMPONENTS}.${FrontendComponentType.HIGH_LEVEL_VIEWS_CHART}.${key}` ? key : answer;
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* The name a series shows in the legend and the tooltip: always a LABEL, never `series.name`.
|
|
186
|
+
*
|
|
187
|
+
* The chart view fills `nameKey` with the series' own label key (`buildChartSeriesLabelKey`) unless the definition names
|
|
188
|
+
* another, so the words come from the label tree like every other string a person reads. A key with no word yet is shown
|
|
189
|
+
* as the key, so the missing label looks missing; `series.name` is English written into the definition, which no
|
|
190
|
+
* translation reaches, and is never shown. A series with no key at all (a definition rendered outside any chart view, as
|
|
191
|
+
* a development preview is) shows its `ref`.
|
|
141
192
|
*/
|
|
142
193
|
export function resolveSeriesName(series, t) {
|
|
143
|
-
if (series.nameKey
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
return resolved;
|
|
147
|
-
}
|
|
148
|
-
return series.name;
|
|
194
|
+
if (series.nameKey === undefined)
|
|
195
|
+
return series.ref;
|
|
196
|
+
return t ? t(series.nameKey) : series.nameKey;
|
|
149
197
|
}
|
|
150
198
|
// ── Axis Builders ────────────────────────────────────────────
|
|
151
199
|
/**
|
|
@@ -430,7 +478,7 @@ export function buildResponsiveMedia(preset, hasCartesianAxes, compensatesPieLab
|
|
|
430
478
|
}
|
|
431
479
|
// ── Common Series Style ──────────────────────────────────────
|
|
432
480
|
/** Apply ChartSeriesStyle to an ECharts series item */
|
|
433
|
-
export function applySeriesStyle(echartsSeriesItem, seriesDef) {
|
|
481
|
+
export function applySeriesStyle(echartsSeriesItem, seriesDef, t) {
|
|
434
482
|
const style = seriesDef.style;
|
|
435
483
|
if (!style)
|
|
436
484
|
return;
|
|
@@ -490,7 +538,7 @@ export function applySeriesStyle(echartsSeriesItem, seriesDef) {
|
|
|
490
538
|
if (ml.type) {
|
|
491
539
|
return {
|
|
492
540
|
type: ml.type,
|
|
493
|
-
...(ml.
|
|
541
|
+
...(ml.labelKey ? { label: { formatter: t(ml.labelKey) } } : {}),
|
|
494
542
|
...(ml.color ? { lineStyle: { color: ml.color, type: ml.lineType ?? 'dashed' } } : { lineStyle: { type: ml.lineType ?? 'dashed' } }),
|
|
495
543
|
};
|
|
496
544
|
}
|
|
@@ -500,8 +548,8 @@ export function applySeriesStyle(echartsSeriesItem, seriesDef) {
|
|
|
500
548
|
lineData.yAxis = ml.yValue;
|
|
501
549
|
if (ml.xValue != null)
|
|
502
550
|
lineData.xAxis = ml.xValue;
|
|
503
|
-
if (ml.
|
|
504
|
-
lineData.label = { formatter: ml.
|
|
551
|
+
if (ml.labelKey)
|
|
552
|
+
lineData.label = { formatter: t(ml.labelKey) };
|
|
505
553
|
lineData.lineStyle = { color: ml.color, type: ml.lineType ?? 'dashed' };
|
|
506
554
|
return lineData;
|
|
507
555
|
}),
|
|
@@ -512,7 +560,7 @@ export function applySeriesStyle(echartsSeriesItem, seriesDef) {
|
|
|
512
560
|
echartsSeriesItem.markPoint = {
|
|
513
561
|
data: style.markPoints.map(mp => ({
|
|
514
562
|
...(mp.type ? { type: mp.type } : {}),
|
|
515
|
-
...(mp.
|
|
563
|
+
...(mp.labelKey ? { label: { formatter: t(mp.labelKey) } } : {}),
|
|
516
564
|
...(mp.symbol ? { symbol: mp.symbol } : {}),
|
|
517
565
|
...(mp.symbolSize ? { symbolSize: mp.symbolSize } : {}),
|
|
518
566
|
})),
|