@luigi-project/client 1.25.2-dev.202210190003 → 1.25.2-dev.202210200006
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/luigi-element.js +3 -2
- package/package.json +1 -1
package/luigi-element.js
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
* Base class for Luigi web component micro frontends.
|
|
3
3
|
*/
|
|
4
4
|
export class LuigiElement extends HTMLElement {
|
|
5
|
-
constructor() {
|
|
5
|
+
constructor(options) {
|
|
6
6
|
super();
|
|
7
|
+
const openShadow = options ? options.openShadow : false;
|
|
7
8
|
this._shadowRoot = this.attachShadow({
|
|
8
|
-
mode: 'closed',
|
|
9
|
+
mode: openShadow ? 'open' : 'closed',
|
|
9
10
|
delegatesFocus: false
|
|
10
11
|
});
|
|
11
12
|
this.__initialized = false;
|
package/package.json
CHANGED