Skip to content

Commit

Permalink
Resolves conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
walmazacn committed Feb 21, 2025
2 parents f7e47b7 + 0d0b777 commit 855b3b8
Show file tree
Hide file tree
Showing 82 changed files with 5,092 additions and 4,949 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/mend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
- uses: actions/cache@v4
with:
path: ~/.cache
key: whitesource_cache-${{ github.ref }}
- run: sudo apt-get install build-essential python2 libgconf-2-4 libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
key: whitesource_cache-${{ github.ref }}
- run: sudo apt-get install build-essential python-is-python3 libgtk2.0-0t64 libgtk-3-0t64 libgbm-dev libnotify-dev libnss3 libxss1 libasound2t64 libxtst6 xauth xvfb
- run: npm --prefix ./client ci ./client
- run: npm --prefix ./core ci ./core
- run: npm --prefix ./website/landingpage/dev install ./website/landingpage/dev
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
~/cypress-binary-cache
key: buildcache-${{ github.ref }}
- run: cp -r ~/tmp_build/* .
- run: sudo apt-get install libgconf-2-4 libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
- run: sudo apt-get install libgtk2.0-0t64 libgtk-3-0t64 libgbm-dev libnotify-dev libnss3 libxss1 libasound2t64 libxtst6 xauth xvfb
- run: npm install --prefix test/e2e-test-application @babel/plugin-proposal-class-properties
- run: ls test
- run: bash ./test/e2e-js.sh || exit 1
Expand Down
35 changes: 34 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,36 @@ The lerna-changelog tool detects changes based on PR labels and maps them to sec
-->


## [v2.20.0] (2025-02-18)

#### :rocket: Added
* [#4144](https://github.com/SAP/luigi/pull/4144) Angular 19 support for client-support-angular library ([@walmazacn](https://github.com/walmazacn))
* [#4137](https://github.com/SAP/luigi/pull/4137) Appswitcher enhancements ([@hardl](https://github.com/hardl))

#### :bug: Fixed
* [#4149](https://github.com/SAP/luigi/pull/4149) Filter out empty nav groups ([@hardl](https://github.com/hardl))
* [#4148](https://github.com/SAP/luigi/pull/4148) Fix: Wrong backgroundColor for profile initials ([@JohannesDoberer](https://github.com/JohannesDoberer))
* [#4140](https://github.com/SAP/luigi/pull/4140) Accessibility tab order ([@JohannesDoberer](https://github.com/JohannesDoberer))




## [v2.19.2] (2025-01-16)

#### :bug: Fixed
* [#4114](https://github.com/SAP/luigi/pull/4114) switch visibility of usersettings entry after prep of all data ([@hardl](https://github.com/hardl))



## [v2.19.1] (2025-01-16)

#### :bug: Fixed
* [#4110](https://github.com/SAP/luigi/pull/4110) Fix: usersettings profile entry when set in afterInit ([@hardl](https://github.com/hardl))
* [#4102](https://github.com/SAP/luigi/pull/4102) Fix: iconClassAttribute for sap-icons ([@hardl](https://github.com/hardl))




## [v2.19.0] (2024-12-23)

#### :rocket: Added
Expand Down Expand Up @@ -1936,4 +1966,7 @@ The lerna-changelog tool detects changes based on PR labels and maps them to sec
[v2.18.1]: https://github.com/SAP/luigi/compare/v2.18.0...v2.18.1
[v2.18.2]: https://github.com/SAP/luigi/compare/v2.18.1...v2.18.2
[v2.18.3]: https://github.com/SAP/luigi/compare/v2.18.2...v2.18.3
[v2.19.0]: https://github.com/SAP/luigi/compare/v2.18.3...v2.19.0
[v2.19.0]: https://github.com/SAP/luigi/compare/v2.18.3...v2.19.0
[v2.19.1]: https://github.com/SAP/luigi/compare/v2.19.0...v2.19.1
[v2.19.2]: https://github.com/SAP/luigi/compare/v2.19.1...v2.19.2
[v2.20.0]: https://github.com/SAP/luigi/compare/v2.19.2...v2.20.0
24 changes: 24 additions & 0 deletions blog/2025-02-12-luigi-container.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: Luigi Container v1.6
seoMetaDescription: Release notes for Luigi Container v1.6
author:
- Johannes Doberer
layout: blog
---

You can read about the new features in Luigi Container v1.6 in the release notes below.

<!-- Excerpt -->


#### Renamed `closeAlert` to `notifyAlertClosed`

We deprecated the function `closeAlert` and renamed it to `notifyAlertClosed`.

#### showAlert promise for micro frontends based on webcomponents

The `showAlert` function returns a promise for micro frontends based on web components. The promise resolves to either a `dismissKey`, if defined in the alert settings, or the unique ID of the alert.

#### Bugfixes

For a full list of bugfixes in this release, see our [changelog](https://github.com/SAP/luigi/releases/tag/container%2Fv1.6.0).
25 changes: 25 additions & 0 deletions blog/2025-02-18-release-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Luigi v2.20
seoMetaDescription: Release notes for Luigi v2.20
author:
- Johannes Doberer
layout: blog
---

You can read about the new features in Luigi v2.20 in the release notes below.

<!-- Excerpt -->


#### Client support angular library supports Angular v19

The angular support library for Luigi Client supports now Angular version 19.

#### Appswitcher improvement

Adds the option [selectionConditions](https://docs.luigi-project.io/docs/navigation-parameters-reference?section=items-2) for appswitcher items to be resolved as selected for other routes than their corresponding links. Additionally it can be matched against context values of the current node.


#### Bugfixes

For a full list of bugfixes in this release, see our [changelog](https://github.com/SAP/luigi/blob/main/CHANGELOG.md).
34 changes: 19 additions & 15 deletions client-frameworks-support/client-support-angular/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions client-frameworks-support/client-support-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"@angular/platform-browser": "^14.2.12",
"@angular/platform-browser-dynamic": "^14.2.12",
"@angular/router": "^14.2.12",
"@luigi-project/client": "^2.0.0",
"@luigi-project/testing-utilities": "^2.0.0",
"@luigi-project/client": "^2.19.2",
"@luigi-project/testing-utilities": "^2.19.2",
"rxjs": "~6.6.0",
"tslib": "^2.4.0",
"zone.js": "~0.11.6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"url": "ssh://github.com/SAP/luigi.git"
},
"peerDependencies": {
"@angular/common": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
"@angular/core": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
"@angular/common": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"@angular/core": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"@luigi-project/testing-utilities": "^2.0.0",
"@luigi-project/client": "^2.0.0"
},
Expand All @@ -22,5 +22,5 @@
"@luigi-project/client": "^2.0.0",
"@luigi-project/testing-utilities": "^2.0.0"
},
"version": "2.19.0"
"version": "2.20.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2020",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2020",
"module": "es2020",
"target": "ES2022",
"module": "ES2020",
"lib": [
"es2020",
"dom"
Expand All @@ -24,12 +24,13 @@
"dist/client-support-angular/client-support-angular",
"dist/client-support-angular"
]
}
},
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true,
"fullTemplateTypeCheck": true,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"microfrontends",
"testing"
],
"version": "2.19.0",
"version": "2.20.0",
"engines": {
"node": ">=18.19.1"
}
Expand Down
4 changes: 2 additions & 2 deletions client-frameworks-support/testing-utilities/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client-frameworks-support/testing-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"microfrontends",
"testing"
],
"version": "2.19.0",
"version": "2.20.0",
"engines": {
"node": ">=18.19.1"
}
Expand Down
78 changes: 78 additions & 0 deletions client/luigi-element.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,59 @@ export declare interface NodeParams {
[key: string]: string;
}

export declare interface UserSettings {
[key: string]: number | string | boolean;
}

/**
* Returns the anchor of active URL.
* @returns {String} the anchor string
* @memberof Lifecycle
* @example
* LuigiClient.getAnchor();
*/
export function getAnchor(): String;
export type getAnchor = () => String;

/**
* Returns the current user settings.
* @returns {Object} current user settings
* @memberof Lifecycle
*/
export function getUserSettings(): UserSettings;
export type getUserSettings = () => UserSettings;

/**
* Allows you to change node labels within the same view group, e.g. in your node config: `label: 'my Node {viewGroupData.vg1}'`.
* @param {Object} value a data object containing the view group name and desired label
* @memberof Lifecycle
* @example
* LuigiClient.setViewGroupData({'vg1':' Luigi rocks!'})
*/
export function setViewGroupData(value: Object): void;
export type setViewGroupData = (value: Object) => void;

export declare interface UxManager {
/**
* Gets the current theme.
* @returns {*} current themeObj
* @memberof uxManager
*/
getCurrentTheme: () => any;

/**
* Gets the dirty status, which is set by the Client.
* @returns {boolean} dirty status
* @memberof uxManager
*/
getDirtyStatus: () => boolean;

/**
* Removes the backdrop.
* @memberof uxManager
*/
removeBackdrop: () => void;

/**
* Hides the app loading indicator.
* @memberof uxManager
Expand Down Expand Up @@ -212,6 +264,23 @@ export declare interface LinkManager {
drawerSettings?: DrawerSettings
) => void;

/**
* Offers an alternative way of navigating with intents. This involves specifying a semanticSlug and an object containing
* parameters.
* This method internally generates a URL of the form `#?intent=<semantic object>-<action>?<param_name>=<param_value>` through the given
* input arguments. This then follows a call to the original `linkManager.navigate(...)` function.
* Consequently, the following calls shall have the exact same effect:
* - linkManager().navigateToIntent('Sales-settings', {project: 'pr2', user: 'john'})
* - linkManager().navigate('/#?intent=Sales-settings?project=pr2&user=john')
* @memberof LuigiNavigation
* @param {string} semanticSlug concatenation of semantic object and action connected with a dash (-), i.e.: `<semanticObject>-<action>`
* @param {Object} params an object representing all the parameters passed, i.e.: `{param1: '1', param2: 2, param3: 'value3'}`.
* @example
* LuigiClient.linkManager().navigateToIntent('Sales-settings', {project: 'pr2', user: 'john'})
* LuigiClient.linkManager().navigateToIntent('Sales-settings')
*/
navigateToIntent: (semanticSlug: string, params?: Object) => void;

/**
* Opens a view in a modal. You can specify the modal's title and size. If you do not specify the title, it is the node label. If there is no node label, the title remains empty. The default size of the modal is `l`, which means 80%. You can also use `m` (60%) and `s` (40%) to set the modal size. Optionally, use it in combination with any of the navigation functions.
* @memberof linkManager
Expand Down Expand Up @@ -271,6 +340,15 @@ export declare interface LinkManager {
*/
fromContext: (navigationContext: string) => this;

/**
* Enables navigating to sibling nodes without knowing the absolute path
* @memberof linkManager
* @returns {linkManager} link manager instance
* @example
* LuigiClient.linkManager().fromParent().navigate('/sibling')
*/
fromParent: () => this;

/**
* Sets the current navigation context which is then used by the `navigate` function. This has to be a parent navigation context, it is not possible to use the child navigation contexts.
* @memberof linkManager
Expand Down
Loading

0 comments on commit 855b3b8

Please sign in to comment.