import { services } from '@broadleaf/admin-components';
const { ActionRegistrar } = services;
services
import { services } from '@broadleaf/admin-components';
const { ActionRegistrar } = services;
Component Name | Description |
---|---|
|
A service used for registering and accessing custom Action components for various metadata-driven components. |
|
A service used for various authentication functions, such as checking tokens, getting authenticated user information, logging in and out, among others. |
|
A service that retrieves the client information for the provided tenant, application, and type. |
|
A service that manages components for the metadata-driven rendering of the application. |
|
A service that manages and returns default values for fields across the application. |
|
A service that manages and handles Yup Validation schema operations, providers, and constants. |
|
A service that manages and gets the translations for the given metadata and form values. |
|
A service that checks for the user’s access authorization by checking the operation against their accessible scopes. |
ConditionalHelper
import { services } from '@broadleaf/admin-components';
const { BooleanConditionalProvider } = services.ConditionalHelper;
Component Name | Description |
---|---|
|
A provider that provides functions to evaluate logical conditionals. |
|
A provider that provides functions to evaluate collection-type conditionals against the provided set of values. |
|
A function that evaluates the passed conditionals in order against the passed set of values. If a conditional is not met, the method short-circuits with the failure. |
|
A provider that provides functions to evaluate property-based conditionals. |
|
Registers a new conditional provider for the application.
A provider is expected to have three properties: |
|
The list of registered conditional providers for the application. Starts with the default OOB conditional providers in the application. |
|
Resets the list of registered conditional providers to the defaults. |
TenantService
import { services } from '@broadleaf/admin-components';
const { getApplications } = services.TenantService;
Component Name | Description |
---|---|
|
An asynchronous function that retrieves the set of applications for the given tenant. |
|
An asynchronous function that resolves the URL of the application with the provided ID. |
|
An asynchronous function that retrieves the tenant response details for the current browser location. |