File

src/core/services/smart-config.service.ts

Extends

SmartConfigOptions

Index

Properties

Constructor

constructor(config?: SmartConfigOptions)

Creates an instance of SmartConfig.

Example :
   If not provided, creates an empty config that can be populated later
   via Object.assign() (used by provideSmartComponentLibrary with async factory).
Parameters :
Name Type Optional Description
config SmartConfigOptions Yes
  • Optional configuration options. If not provided, creates an empty config that can be populated later via Object.assign() (used by provideSmartComponentLibrary with async factory).

Properties

appInitialized
Type : unknown
Default value : false
Optional activeReportsLicenseKey
Type : string

The ActiveReports license key

Optional authentication
Type : SmartAuthenticationConfiguration | SmartAuthenticationStrategyConfig

Authentication configuration.

Supports both the legacy single-strategy shape and the new multi-strategy format that allows declaring multiple strategy payloads up front:

Example :
{
  "authentication": {
    "useStrategy": "entraid",
    "strategies": {
      "entraid": { "clientId": "...", "tenantId": "..." },
      "keycloak": { "realm": "...", "clientId": "..." },
      "hybridrealm": true
    }
  }
}
Optional breadcrumbNavigation
Type : boolean

If set to true, the app will display a breadcrumb navigation trail. If used in conjuction with the mdiInterface flag, the breadcrumb trail will be displayed in each opened tab.

Optional cancelLoginURL
Type : string

The URL to redirect to upon login cancellation.

Optional catalogURI
Type : string

The URI that should be used for retreiving JSDO catalogs. Defaults to the serviceURI.

Optional componentDefaults
Type : literal type

Default configurations for various components.

Example :
    dateTimeTZ?: {
        showTimeZone?: boolean;
    };
    grid?: {
        showNoDataMessage?: boolean;
        cellTextWrap?: boolean;
    };
    viewer?: {
        showDatePickerWeekNumbers?: boolean;
    };
    splitView?: {
        responsiveOrientation?: ResponsiveOrientation;
    };
}}
Optional credentials
Type : ISmartServiceCredentials

The credentials to be used by the Smart Service Adapter when creating a JSDO Session.

Optional defaultRoute
Type : string

If set, the app will navigate to the given route on initialization.

Optional development
Type : boolean

Indicates whether the application is running in development mode.

Optional disableGravatar
Type : boolean

If set, does not request an avatar.

Optional enableRippleEffect
Type : boolean

Enables ripple effects in the application.

Optional fallbackBrowserTitle
Type : string

Fallback browser title to display if an invalid smart-route has been specified

Optional fallbackComponent
Type : any

If set, the user will be re-directed to this component when the form component that the user is navigating to, is not implemented yet

Optional features
Type : literal type

A collection of SmartComponent Library NG Features

Example :
    dynamicLauncher?: {
        enabled?: boolean;
    };
}}
Optional globalValues
Type : literal type

A collection of global values accessible throughout the application.

Optional handleHttpErrors
Type : boolean

Indicates whether to handle HTTP errors globally.

Optional htmlURI
Type : string

The URI that should be used for fetching HTML content. Defaults to the serviceURI.

Optional imageURI
Type : string

The base URI that should be used when fetching images. Defaults to the serviceURI.

Optional keycloakSettings
Use `authentication.strategy: 'keycloak'` and provide the same fields in `authentication` instead. This property will be removed in a future release.
Type : literal type

Keycloak configuration options.

in authentication instead. This property will be removed in a future release.

Example :
    clientId: string;
    realmName: string;
    authServerUrl: string;
    keycloakEnabled: boolean;
}
Optional loginComponent
Type : any

If set, it will replace the built-in Smart Login component when rendering the login screen.

Optional mdiInterface
Type : boolean

If set to true, the app will use a MDI interface.

Optional menuStructureCode
Type : string

The structure code that the Smart Menu should use when requesting its structure.

Optional moduleCode
Type : string

The module code to be used by when requesting data such as the Smart Menu Structure.

Optional productCode
Type : string

The product code that should be used to check the access to the application

serviceURI
Type : string

The serviceURI that should be used when initializing new JSDOs.

Optional showSingleBreadcrumb
Type : boolean

Determines whether to show a single breadcrumb.

Optional smartControllers
Type : Array<any>

The Smart Controllers that should be loaded. Include here the controllers that will be used by Smart Forms.

Optional smartLogLevel
Type : SmartLogLevel | string

The log level for the Smart Logger Service. Can be provided as a string ("none", "error", "warning", "info", "debug") or as a SmartLogLevel enum value (0-4). The logger service will parse and validate this value. Defaults to "none" if not provided.

Optional smartMessaging
Type : literal type

Smart Messaging configuration options

Example :
    smartMessagingEnabled?: boolean;
    smartMessagingServer?: string;
}}
Optional smartRestURI
Type : string

The URI that should be used for all REST requests. Defaults to the serviceURI.

Optional templateURI
Type : string

The base URI that should be used when fetching templates for templated components such as Smart Forms. Defaults to the serviceURI.

Optional useLocalUserProfileStorage
Type : boolean

Specifies if browser storage should be used instead of remote

results matching ""

    No results matching ""