export declare interface WebComponentSettings { type?: string; selfRegistered?: boolean; tagName?: string; } /** * @summary Base class for Luigi compound container. * @augments HTMLElement * @class */ export default class LuigiCompoundContainer extends HTMLElement { /** * The URL used for the renderer.

* Type: [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) * @since 1.0.0 * @type {String} * @kind member * @memberof LuigiCompoundContainer * @example * @example myContainer.viewurl = "/index.html" */ viewurl: string; /** * The configuration for the compound microfrontend. * Take a look at the [compound parameter](https://docs.luigi-project.io/docs/navigation-parameters-reference/?section=compound) for details.

* Type: [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) * @since 1.0.0 * @type {Object} * @kind member * @memberof LuigiCompoundContainer * @example * renderer = { use: 'grid', config: { columns: '1fr 1fr 1fr 2fr', layouts: [{maxWidth: 600, columns: '1fr', gap: 0, ...}]}}; * children = [{ viewUrl: '/main.js', context: { label: 'WC', ...}, layoutConfig: {column: '1 / -1', ...}, eventListeners: [{ source: 'input1', ...}}]}]; * @example myContainer.compoundConfig = { renderer, children }; */ compoundConfig: object; /** * If set to true defers from initializing the microfronted automatically. In that case init() can be used.

* Type: [Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) * @since 1.0.0 * @type {Boolean} * @kind member * @memberof LuigiCompoundContainer * @example * @example myContainer.deferInit = true */ deferInit: boolean; /** * * The locale to be passed to the compound micro frontend.

* Type: [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) * @since 1.4.0 * @type {String} * @kind member * @memberof LuigiCompoundContainer * @example * @example myContainer.locale = "en_us" */ locale: string; /** * The parameters to be passed to the compound micro frontend. Will not be passed to the compound children.

* Type: [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) * @since 1.0.0 * @type {Object} * @kind member * @memberof LuigiCompoundContainer * @example * @example myContainer.nodeParams = {foo: bar} */ nodeParams: object; /** * If set to true, the Luigi compound container webcomponent will not use the shadow DOM for rendering.

* Type: [Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) * @since 1.2.0 * @type {Boolean} * @kind member * @memberof LuigiCompoundContainer * @example * @example myContainer.noShadow = true */ noShadow: boolean; /** * The search parameters to be passed to the compound micro frontend.

* Type: [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) * @since 1.0.0 * @type {Object} * @kind member * @memberof LuigiCompoundContainer * @example * @example myContainer.searchParams = {foo: bar} */ searchParams: object; /** * The path parameters to be passed to the compound micro frontend.

* Type: [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) * @since 1.0.0 * @type {Object} * @kind member * @memberof LuigiCompoundContainer * @example * @example myContainer.pathParams = {foo: "bar"} */ pathParams: object; /** * The stringified context to be passed to the compound microfrontend.

* Type: [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) * @since 1.0.0 * @type {String} * @kind member * @memberof LuigiCompoundContainer * @example * @example myContainer.context = {label: "Dashboard"} */ context: string; /** * The clientPermissions to be passed to the compound micro frontend.

* Type: [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) * @since 1.0.0 * @type {Object} * @kind member * @memberof LuigiCompoundContainer * @example * @example myContainer.clientPermissions = {permission: "adminGroup"} */ clientPermissions: object; /** * The user settings to be passed to the compound micro frontend.

* Type: [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) * @since 1.0.0 * @type {Object} * @kind member * @memberof LuigiCompoundContainer * @example * @example myContainer.userSettings = {language: 'de', theme: 'sap_horizon'} */ userSettings: object; /** * The anchor value to be passed to the compound micro frontend.

* Type: [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) * @since 1.0.0 * @type {String} * @kind member * @memberof LuigiCompoundContainer * @example * @example myContainer.anchor = '#foo' */ anchor: string; /** * The document title value to be passed to the compound micro frontend.

* Type: [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) * @since 1.2.0 * @type {String} * @kind member * @memberof LuigiCompoundContainer * @example * @example myContainer.documentTitle = 'Luigi App' */ documentTitle: string; /** * The hasBack value to be passed to the compound micro frontend. * It indicates that there is one or more preserved views. Useful when you need to show a back button.

* Type: [Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) * @since 1.2.0 * @type {Boolean} * @kind member * @memberof LuigiCompoundContainer * @example * @example myContainer.hasBack = true */ hasBack: boolean; /** * The dirty status value to be passed to the compound micro frontend. * It's used to indicate that there are unsaved changes when navigating away.

* Type: [Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) * @since 1.2.0 * @type {Boolean} * @kind member * @memberof LuigiCompoundContainer * @example * @example myContainer.dirtyStatus = true */ dirtyStatus: boolean; /** * @description The following properties can be set for the web component object. By default, the web component is set to true.

Type: [Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) | WebComponentSettings | [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) * @param {Object} [WebComponentSettings] - specifies that the microfrontend is a webcomponent with addtional settings * @param {String} WebComponentSettings.type - string, like module * @param {Boolean} WebComponentSettings.selfRegistered - if it is true, the web component bundle will be added via script tag * @param {String} WebComponentSettings.tagName - tag name where web component is added to DOM * @param {String} string - must be a stringified JSON object from type `WebComponentSettings` * @since 1.0.0 * @type {Boolean|WebComponentSettings|String} * @kind member * @memberof LuigiCompoundContainer * @example * @example myContainer.webcomponent = { type: 'module', selfRegistered: true, tagName: 'my-webcomponent'} */ webcomponent: boolean | WebComponentSettings | string; /** * If set to true, skips handshake and ready event is fired immediately.

* Type: [Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) * @since 1.4.0 * @type {Boolean} * @kind member * @memberof LuigiCompoundContainer * @example * @example myContainer.skipInitCheck = true */ skipInitCheck: boolean; /** * The list of active feature toggles to be passed to the compound microfrontend.

* Type: [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)> * @since 1.4.0 * @type {Array} * @kind member * @memberof LuigiCompoundContainer * @example myContainer.activeFeatureToggleList = ["enable-foo", "allow-bar"] * @example */ activeFeatureToggleList: string[]; /** * The theme to be passed to the compound microfrontend.

* Type: [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) * @since 1.4.0 * @type {String} * @kind member * @memberof LuigiCompoundContainer * @example * @example myContainer.theme = 'sap_horizon' */ theme: string; /** * Function that updates the context of the compound microfrontend. * @param {Object} contextObj - the context data * @since 1.0.0 * @memberof LuigiCompoundContainer * @example containerElement.updateContext({newContextData: 'some data'}) * @returns {void} no explicit return type */ updateContext(contextObj: Object): void {}; /** * A function that notifies the microfrontend that the opened alert has been closed. * @param {String} id - the id of the opened alert * @param {String} dismissKey - the key specifying which dismiss link was clicked on the alert message (optional) * @since 1.7.0 * @memberof LuigiCompoundContainer * @example containerElement.notifyAlertClosed('my-alert-id', 'my-dismiss-key') * @returns {void} no explicit return type */ notifyAlertClosed(id: string, dismissKey?: string): void {}; /** * A function that notifies the microfrontend if the confirmation modal was confirmed or declined. * @param {Boolean} value - if the confirmation modal was confirmed or declined. * @since 1.7.0 * @memberof LuigiCompoundContainer * @example containerElement.notifyAlertClosed(true) * @returns {void} no explicit return type */ notifyConfirmationModalClosed(confirmed: boolean): void {}; /** * Manually triggers the micro frontend rendering process when using the defer-init attribute. * @since 1.0.0 * @memberof LuigiCompoundContainer * @example containerElement.init() * @returns {void} no explicit return type */ init(): void {}; }