@sbb-esta/lyne-elements-dev 5.0.0-next.1-dev.1777358786 → 5.0.0-next.1-dev.1777393579
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/core/i18n/i18n.js +103 -98
- package/core/styles/core.scss +15 -38
- package/core.css +57 -31
- package/core.js +22 -22
- package/custom-elements.json +6013 -2585
- package/development/core/i18n/i18n.d.ts +1 -0
- package/development/core/i18n/i18n.d.ts.map +1 -1
- package/development/core/i18n/i18n.js +8 -2
- package/development/core.js +2 -2
- package/development/train/train/train.component.d.ts +2 -5
- package/development/train/train/train.component.d.ts.map +1 -1
- package/development/train/train/train.component.js +1 -1
- package/development/train/train-blocked-passage/train-blocked-passage.component.d.ts +4 -3
- package/development/train/train-blocked-passage/train-blocked-passage.component.d.ts.map +1 -1
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/development/train/train-formation/train-formation.component.d.ts +6 -2
- package/development/train/train-formation/train-formation.component.d.ts.map +1 -1
- package/development/train/train-formation/train-formation.component.js +1 -1
- package/development/train/train-formation-orientation-mixin.d.ts +12 -0
- package/development/train/train-formation-orientation-mixin.d.ts.map +1 -0
- package/development/train/train-formation-orientation-mixin.js +62 -0
- package/development/train/train-wagon/train-wagon.component.d.ts +5 -32
- package/development/train/train-wagon/train-wagon.component.d.ts.map +1 -1
- package/development/train/train-wagon/train-wagon.component.js +19 -1
- package/development/train/train-wagon-button/train-wagon-button.component.d.ts +18 -0
- package/development/train/train-wagon-button/train-wagon-button.component.d.ts.map +1 -0
- package/development/train/train-wagon-button/train-wagon-button.component.js +18 -0
- package/development/train/train-wagon-common.d.ts +15 -0
- package/development/train/train-wagon-common.d.ts.map +1 -0
- package/development/train/train-wagon-common.js +2 -0
- package/development/train/train-wagon-link/train-wagon-link.component.d.ts +18 -0
- package/development/train/train-wagon-link/train-wagon-link.component.d.ts.map +1 -0
- package/development/train/train-wagon-link/train-wagon-link.component.js +18 -0
- package/development/train-blocked-passage.component-BgBnEOfh.js +22 -0
- package/development/train-formation.component-CDKR5KCm.js +194 -0
- package/development/train-wagon-common-S3OJdguG.js +441 -0
- package/development/train.component-CP9QaQk8.js +239 -0
- package/development/train.d.ts.map +1 -1
- package/development/train.js +13 -7
- package/development/train.pure.d.ts +4 -0
- package/development/train.pure.d.ts.map +1 -1
- package/development/train.pure.js +9 -5
- package/index.d.ts +3 -1
- package/index.js +3 -1
- package/off-brand-theme.css +57 -31
- package/package.json +2 -2
- package/safety-theme.css +57 -31
- package/standard-theme.css +57 -31
- package/train/train/train.component.js +1 -1
- package/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/train/train-formation/train-formation.component.js +1 -1
- package/train/train-formation-orientation-mixin.js +45 -0
- package/train/train-wagon/train-wagon.component.js +13 -2
- package/train/train-wagon-button/train-wagon-button.component.js +10 -0
- package/train/train-wagon-common.js +2 -0
- package/train/train-wagon-link/train-wagon-link.component.js +10 -0
- package/train-blocked-passage.component-voZ8fxiB.js +14 -0
- package/train-formation.component-6XQVXPue.js +147 -0
- package/train-wagon-common-DTN_G78z.js +354 -0
- package/train.component-3vmLxVCZ.js +181 -0
- package/train.js +10 -6
- package/train.pure.js +9 -5
- package/development/train-blocked-passage.component-Bh2dR1gn.js +0 -30
- package/development/train-formation.component-Dm0t9N_h.js +0 -149
- package/development/train-wagon.component-B6V4dPKn.js +0 -334
- package/development/train.component-BvbNBkZF.js +0 -229
- package/train-blocked-passage.component-DIh8dbU9.js +0 -22
- package/train-formation.component-DS4EDwPY.js +0 -117
- package/train-wagon.component-LwKwwuta.js +0 -257
- package/train.component-DuFi_iBX.js +0 -174
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
|
-
import { nothing as n, unsafeCSS as r } from "lit";
|
|
3
|
-
import { property as i } from "lit/decorators.js";
|
|
4
|
-
import { SbbElement as a, SbbLanguageController as o, SbbNamedSlotListMixin as s, boxSizingStyles as c, forceType as l, i18nTrain as u, i18nWagonsLabel as d, omitEmptyConverter as f } from "./core.js";
|
|
5
|
-
import { html as p, unsafeStatic as m } from "lit/static-html.js";
|
|
6
|
-
import { SbbIconElement as h } from "./icon.pure.js";
|
|
7
|
-
//#region src/elements/train/train/train.scss?inline
|
|
8
|
-
var g = ":host{display:block;--sbb-train-direction-label-spacing: var(--sbb-spacing-fixed-1x)}.sbb-train{--sbb-text-font-size: var(--sbb-text-font-size-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);display:flex;flex-direction:column;gap:var(--sbb-train-formation-vertical-gap);position:relative}.sbb-train:before{content:\"\";display:var(--sbb-train-formation-reserve-spacing-display, none);height:max(var(--sbb-size-icon-ui-small),1em * var(--sbb-typo-line-height-text))}.sbb-train__wagons{list-style:none;margin:0;padding:0;font-size:inherit;display:flex;gap:var(--sbb-train-formation-wagon-gap)}.sbb-train__direction-heading{display:flex;position:absolute;width:100%}.sbb-train__direction-sticky-wrapper{position:sticky;inset-inline-start:0;display:inline-flex;align-items:center;gap:var(--sbb-train-direction-label-spacing);max-width:100%}.sbb-train__direction-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sbb-train__direction-label-sr{border:0;clip-path:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}", _ = (() => {
|
|
9
|
-
let _ = s(a), v, y = [], b = [], x, S = [], C = [], w, T = [], E = [], D, O = [], k = [], A, j = [], M = [];
|
|
10
|
-
return class extends _ {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments), this.listChildLocalNames = ["sbb-train-wagon", "sbb-train-blocked-passage"], this.#e = t(this, y, ""), this.#t = (t(this, b), t(this, S, "6")), this.#n = (t(this, C), t(this, T, "")), this.#r = (t(this, E), t(this, O, "")), this.#i = (t(this, k), t(this, j, "left")), this._language = (t(this, M), new o(this));
|
|
13
|
-
}
|
|
14
|
-
static {
|
|
15
|
-
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(_[Symbol.metadata] ?? null) : void 0;
|
|
16
|
-
v = [l(), i({
|
|
17
|
-
attribute: "direction-label",
|
|
18
|
-
reflect: !0,
|
|
19
|
-
converter: f
|
|
20
|
-
})], x = [i({ attribute: "direction-label-level" })], w = [l(), i()], D = [l(), i({ attribute: "accessibility-label" })], A = [i({ reflect: !0 })], e(this, null, v, {
|
|
21
|
-
kind: "accessor",
|
|
22
|
-
name: "directionLabel",
|
|
23
|
-
static: !1,
|
|
24
|
-
private: !1,
|
|
25
|
-
access: {
|
|
26
|
-
has: (e) => "directionLabel" in e,
|
|
27
|
-
get: (e) => e.directionLabel,
|
|
28
|
-
set: (e, t) => {
|
|
29
|
-
e.directionLabel = t;
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
metadata: t
|
|
33
|
-
}, y, b), e(this, null, x, {
|
|
34
|
-
kind: "accessor",
|
|
35
|
-
name: "directionLabelLevel",
|
|
36
|
-
static: !1,
|
|
37
|
-
private: !1,
|
|
38
|
-
access: {
|
|
39
|
-
has: (e) => "directionLabelLevel" in e,
|
|
40
|
-
get: (e) => e.directionLabelLevel,
|
|
41
|
-
set: (e, t) => {
|
|
42
|
-
e.directionLabelLevel = t;
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
metadata: t
|
|
46
|
-
}, S, C), e(this, null, w, {
|
|
47
|
-
kind: "accessor",
|
|
48
|
-
name: "station",
|
|
49
|
-
static: !1,
|
|
50
|
-
private: !1,
|
|
51
|
-
access: {
|
|
52
|
-
has: (e) => "station" in e,
|
|
53
|
-
get: (e) => e.station,
|
|
54
|
-
set: (e, t) => {
|
|
55
|
-
e.station = t;
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
metadata: t
|
|
59
|
-
}, T, E), e(this, null, D, {
|
|
60
|
-
kind: "accessor",
|
|
61
|
-
name: "accessibilityLabel",
|
|
62
|
-
static: !1,
|
|
63
|
-
private: !1,
|
|
64
|
-
access: {
|
|
65
|
-
has: (e) => "accessibilityLabel" in e,
|
|
66
|
-
get: (e) => e.accessibilityLabel,
|
|
67
|
-
set: (e, t) => {
|
|
68
|
-
e.accessibilityLabel = t;
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
metadata: t
|
|
72
|
-
}, O, k), e(this, null, A, {
|
|
73
|
-
kind: "accessor",
|
|
74
|
-
name: "direction",
|
|
75
|
-
static: !1,
|
|
76
|
-
private: !1,
|
|
77
|
-
access: {
|
|
78
|
-
has: (e) => "direction" in e,
|
|
79
|
-
get: (e) => e.direction,
|
|
80
|
-
set: (e, t) => {
|
|
81
|
-
e.direction = t;
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
metadata: t
|
|
85
|
-
}, j, M), t && Object.defineProperty(this, Symbol.metadata, {
|
|
86
|
-
enumerable: !0,
|
|
87
|
-
configurable: !0,
|
|
88
|
-
writable: !0,
|
|
89
|
-
value: t
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
static {
|
|
93
|
-
this.elementName = "sbb-train";
|
|
94
|
-
}
|
|
95
|
-
static {
|
|
96
|
-
this.elementDependencies = [h];
|
|
97
|
-
}
|
|
98
|
-
static {
|
|
99
|
-
this.styles = [c, r(g)];
|
|
100
|
-
}
|
|
101
|
-
static {
|
|
102
|
-
this.events = { trainslotchange: "trainslotchange" };
|
|
103
|
-
}
|
|
104
|
-
#e;
|
|
105
|
-
get directionLabel() {
|
|
106
|
-
return this.#e;
|
|
107
|
-
}
|
|
108
|
-
set directionLabel(e) {
|
|
109
|
-
this.#e = e;
|
|
110
|
-
}
|
|
111
|
-
#t;
|
|
112
|
-
get directionLabelLevel() {
|
|
113
|
-
return this.#t;
|
|
114
|
-
}
|
|
115
|
-
set directionLabelLevel(e) {
|
|
116
|
-
this.#t = e;
|
|
117
|
-
}
|
|
118
|
-
#n;
|
|
119
|
-
get station() {
|
|
120
|
-
return this.#n;
|
|
121
|
-
}
|
|
122
|
-
set station(e) {
|
|
123
|
-
this.#n = e;
|
|
124
|
-
}
|
|
125
|
-
#r;
|
|
126
|
-
get accessibilityLabel() {
|
|
127
|
-
return this.#r;
|
|
128
|
-
}
|
|
129
|
-
set accessibilityLabel(e) {
|
|
130
|
-
this.#r = e;
|
|
131
|
-
}
|
|
132
|
-
#i;
|
|
133
|
-
get direction() {
|
|
134
|
-
return this.#i;
|
|
135
|
-
}
|
|
136
|
-
set direction(e) {
|
|
137
|
-
this.#i = e;
|
|
138
|
-
}
|
|
139
|
-
_getDirectionAriaLabel() {
|
|
140
|
-
let e = [u[this._language.current]];
|
|
141
|
-
return this.directionLabel && this.station && e.push(`${this.directionLabel} ${this.station}`), this.accessibilityLabel && e.push(this.accessibilityLabel), `${e.join(", ")}.`;
|
|
142
|
-
}
|
|
143
|
-
willUpdate(e) {
|
|
144
|
-
super.willUpdate(e), e.has("listChildren") && this.dispatchEvent(new Event("trainslotchange", { bubbles: !0 }));
|
|
145
|
-
}
|
|
146
|
-
render() {
|
|
147
|
-
let e = `h${this.directionLabelLevel}`;
|
|
148
|
-
return p`
|
|
149
|
-
<div class="sbb-train">
|
|
150
|
-
<${m(e)} class="sbb-train__direction-label-sr">
|
|
151
|
-
${this._getDirectionAriaLabel()}
|
|
152
|
-
</${m(e)}>
|
|
153
|
-
${this.directionLabel ? p`<div class="sbb-train__direction-heading" aria-hidden="true">
|
|
154
|
-
<span class="sbb-train__direction-sticky-wrapper">
|
|
155
|
-
${this.direction === "left" ? p`<sbb-icon name="chevron-small-left-small"></sbb-icon>` : n}
|
|
156
|
-
|
|
157
|
-
<span class="sbb-train__direction-label">
|
|
158
|
-
${this.directionLabel} ${this.station}
|
|
159
|
-
</span>
|
|
160
|
-
|
|
161
|
-
${this.direction === "right" ? p`<sbb-icon name="chevron-small-right-small"></sbb-icon>` : n}
|
|
162
|
-
</span>
|
|
163
|
-
</div>` : n}
|
|
164
|
-
${this.renderList({
|
|
165
|
-
class: "sbb-train__wagons",
|
|
166
|
-
ariaLabel: d[this._language.current]
|
|
167
|
-
})}
|
|
168
|
-
</div>
|
|
169
|
-
`;
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
})();
|
|
173
|
-
//#endregion
|
|
174
|
-
export { _ as t };
|