@sbb-esta/lyne-elements-dev 4.8.1-dev.1774045249 → 4.8.1-dev.1774250628

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,101 +0,0 @@
1
- import { __esDecorate as e, __runInitializers as t } from "tslib";
2
- import { css as n, html as r } from "lit";
3
- import { property as i } from "lit/decorators.js";
4
- import { SbbElement as a } from "./core/base-elements.js";
5
- import { forceType as o } from "./core/decorators.js";
6
- import { boxSizingStyles as s } from "./core/styles.js";
7
- //#region src/elements/signet/signet.scss?lit&inline
8
- var c = n`:host{display:block;height:var(--sbb-signet-height);--sbb-signet-background-color: var(--sbb-color-brand);--sbb-signet-panel-color: var(--sbb-color-brand);--sbb-signet-icon-color: var(--sbb-color-white);--sbb-signet-aspect-ratio: 2 / 1;--sbb-signet-svg-container-height: auto}@media(forced-colors:active){:host{--sbb-signet-background-color: ButtonText !important;--sbb-signet-panel-color: ButtonText !important;--sbb-signet-icon-color: Canvas !important}}:host([protective-room=minimal]){--sbb-signet-aspect-ratio: 108 / 64;--sbb-signet-svg-container-height: 68.75% }:host([protective-room=ideal]){--sbb-signet-aspect-ratio: 128 / 84;--sbb-signet-svg-container-height: calc(44 / 84 * 100%)}:host([protective-room=panel]){--sbb-signet-aspect-ratio: 143 / 48;--sbb-signet-background-color: unset}@media(forced-colors:active){:host([protective-room=panel]){--sbb-signet-background-color: unset !important}}.sbb-signet{display:flex;align-items:center;justify-content:center;background-color:var(--sbb-signet-background-color);aspect-ratio:var(--sbb-signet-aspect-ratio);width:100%;height:100%}.sbb-signet .sbb-signet__svg-container{display:flex;height:var(--sbb-signet-svg-container-height)}.sbb-signet svg{width:100%;height:100%}#sbb-signet__panel{fill:var(--sbb-signet-panel-color);stroke:var(--sbb-signet-panel-color)}#sbb-signet__icon{fill:var(--sbb-signet-icon-color)}`, l = (() => {
9
- let n = a, l, u = [], d = [], f, p = [], m = [];
10
- return class extends n {
11
- static {
12
- let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
13
- l = [i({
14
- attribute: "protective-room",
15
- reflect: !0
16
- })], f = [o(), i({ attribute: "accessibility-label" })], e(this, null, l, {
17
- kind: "accessor",
18
- name: "protectiveRoom",
19
- static: !1,
20
- private: !1,
21
- access: {
22
- has: (e) => "protectiveRoom" in e,
23
- get: (e) => e.protectiveRoom,
24
- set: (e, t) => {
25
- e.protectiveRoom = t;
26
- }
27
- },
28
- metadata: t
29
- }, u, d), e(this, null, f, {
30
- kind: "accessor",
31
- name: "accessibilityLabel",
32
- static: !1,
33
- private: !1,
34
- access: {
35
- has: (e) => "accessibilityLabel" in e,
36
- get: (e) => e.accessibilityLabel,
37
- set: (e, t) => {
38
- e.accessibilityLabel = t;
39
- }
40
- },
41
- metadata: t
42
- }, p, m), t && Object.defineProperty(this, Symbol.metadata, {
43
- enumerable: !0,
44
- configurable: !0,
45
- writable: !0,
46
- value: t
47
- });
48
- }
49
- static {
50
- this.elementName = "sbb-signet";
51
- }
52
- static {
53
- this.styles = [s, c];
54
- }
55
- #e = t(this, u, "ideal");
56
- get protectiveRoom() {
57
- return this.#e;
58
- }
59
- set protectiveRoom(e) {
60
- this.#e = e;
61
- }
62
- #t = (t(this, d), t(this, p, "Logo"));
63
- get accessibilityLabel() {
64
- return this.#t;
65
- }
66
- set accessibilityLabel(e) {
67
- this.#t = e;
68
- }
69
- render() {
70
- return r`
71
- <span class="sbb-signet">
72
- <span class="sbb-signet__svg-container">
73
- ${this.protectiveRoom === "panel" ? r`
74
- <svg focusable="false" viewBox="0 0 143 48" xmlns="http://www.w3.org/2000/svg">
75
- <title .textContent=${this.accessibilityLabel}></title>
76
- <path id="sbb-signet__panel" stroke-width="1" d="M1 47h141V1H1v46z"></path>
77
- <path
78
- id="sbb-signet__icon"
79
- d="M87 40h9.3L83.8 27.7h15.5V40h7.4V27.7h15.6L109.7 40h9.3l16-16-15.9-16h-9.3l12.5 12.3h-15.6V8h-7.4v12.3H83.8L96.3 8H87L71 24l16 16z"
80
- ></path>
81
- </svg>
82
- ` : r`
83
- <svg focusable="false" viewBox="0 0 80 40" xmlns="http://www.w3.org/2000/svg">
84
- <title .textContent=${this.accessibilityLabel}></title>
85
- <path
86
- id="sbb-signet__icon"
87
- d="M20.0265 40H31.6821L16 24.6154H35.3907V40H44.6093V24.6154H64.106L48.4238 40H60.0795L80 20.0531L60.0795 0H48.4238L64.106 15.3846H44.6093V0H35.3907V15.3846H16L31.6821 0H20.0265L0 20.0531L20.0265 40Z"
88
- ></path>
89
- </svg>
90
- `}
91
- </span>
92
- </span>
93
- `;
94
- }
95
- constructor() {
96
- super(...arguments), t(this, m);
97
- }
98
- };
99
- })();
100
- //#endregion
101
- export { l as t };