@proximus/lavender-header-minimal 2.0.0-alpha.203 → 2.0.0-alpha.204

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.
@@ -1,8 +1,8 @@
1
1
  import { WithExtraAttributes } from '@proximus/lavender-common';
2
2
  import type { Section } from '@proximus/lavender-section';
3
3
  export declare class HeaderMinimal extends WithExtraAttributes {
4
+ protected static readonly template: HTMLTemplateElement;
4
5
  internals: ElementInternals;
5
- template: () => string;
6
6
  constructor();
7
7
  connectedCallback(): void;
8
8
  static get observedAttributes(): string[];
@@ -11,6 +11,13 @@
11
11
  "description": "",
12
12
  "name": "HeaderMinimal",
13
13
  "members": [
14
+ {
15
+ "kind": "field",
16
+ "name": "template",
17
+ "privacy": "protected",
18
+ "static": true,
19
+ "readonly": true
20
+ },
14
21
  {
15
22
  "kind": "field",
16
23
  "name": "internals",
@@ -18,10 +25,6 @@
18
25
  "text": "ElementInternals"
19
26
  }
20
27
  },
21
- {
22
- "kind": "field",
23
- "name": "template"
24
- },
25
28
  {
26
29
  "kind": "field",
27
30
  "name": "$navigationContainer",
@@ -30,10 +33,6 @@
30
33
  {
31
34
  "kind": "field",
32
35
  "name": "inverted"
33
- },
34
- {
35
- "kind": "field",
36
- "name": "innerHTML"
37
36
  }
38
37
  ],
39
38
  "attributes": [
package/dist/index.es.js CHANGED
@@ -1,10 +1,13 @@
1
- import { WithExtraAttributes as e } from "@proximus/lavender-common";
1
+ import { WithExtraAttributes as e, createTemplate as t, renderTemplate as n } from "@proximus/lavender-common";
2
2
  //#region src/header-minimal.css?inline
3
- var t = ":host{display:block}:host *{box-sizing:border-box}", n = new CSSStyleSheet();
4
- n.replaceSync(t);
5
- var r = class extends e {
3
+ var r = ":host{display:block}:host *{box-sizing:border-box}", i = new CSSStyleSheet();
4
+ i.replaceSync(r);
5
+ var a = class r extends e {
6
+ static {
7
+ this.template = t("<div class=\"header-minimal\"><header><slot name=\"skip\"></slot><px-section \n id=\"navigation-container\" \n padding-inline=\"none\"\n padding-block=\"s\"\n background-color=\"surface-light\"\n border=\"m\"\n border-side=\"bottom\"\n ><px-hstack gap=\"default\" wrap=\"wrap\" align-items=\"center\"><slot name=\"header-logo\"></slot><px-spacer></px-spacer><slot name=\"user-language\"></slot></px-hstack></px-section></header><slot name=\"main\"></slot></div>");
8
+ }
6
9
  constructor() {
7
- super(n), this.template = () => "\n <div class=\"header-minimal\">\n <header>\n <slot name=\"skip\"></slot>\n <px-section \n id=\"navigation-container\" \n padding-inline=\"none\"\n padding-block=\"s\"\n background-color=\"surface-light\"\n border=\"m\"\n border-side=\"bottom\"\n >\n <px-hstack gap=\"default\" wrap=\"wrap\" align-items=\"center\">\n <slot name=\"header-logo\"></slot>\n <px-spacer></px-spacer>\n <slot name=\"user-language\"></slot>\n </px-hstack>\n </px-section>\n </header>\n <slot name=\"main\"></slot>\n </div>\n ", this.shadowRoot.innerHTML = this.template(), this.internals = this.attachInternals?.(), this.internals && (this.internals.role = "navigation");
10
+ super(i), n(this.shadowRoot, r.template), this.internals = this.attachInternals?.(), this.internals && (this.internals.role = "navigation");
8
11
  }
9
12
  connectedCallback() {
10
13
  this.role = "navigation";
@@ -30,6 +33,6 @@ var r = class extends e {
30
33
  e ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
31
34
  }
32
35
  };
33
- customElements.get("px-header-minimal") || customElements.define("px-header-minimal", r);
36
+ customElements.get("px-header-minimal") || customElements.define("px-header-minimal", a);
34
37
  //#endregion
35
- export { r as HeaderMinimal };
38
+ export { a as HeaderMinimal };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@proximus/lavender-header-minimal",
4
- "version": "2.0.0-alpha.203",
4
+ "version": "2.0.0-alpha.204",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -15,10 +15,8 @@
15
15
  "js": {
16
16
  "properties": [
17
17
  { "name": "internals", "type": "ElementInternals" },
18
- { "name": "template" },
19
18
  { "name": "$navigationContainer" },
20
- { "name": "inverted" },
21
- { "name": "innerHTML" }
19
+ { "name": "inverted" }
22
20
  ],
23
21
  "events": []
24
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-header-minimal",
3
- "version": "2.0.0-alpha.203",
3
+ "version": "2.0.0-alpha.204",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",