@proximus/lavender-banner 2.0.0-alpha.21 → 2.0.0-alpha.211
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/dist/Banner.d.ts +20 -17
- package/dist/custom-elements.json +236 -0
- package/dist/index.es.js +539 -566
- package/dist/vscode.css-custom-data.json +6 -0
- package/dist/vscode.html-custom-data.json +29 -0
- package/dist/web-types.json +80 -0
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,569 +1,542 @@
|
|
|
1
1
|
import "@proximus/lavender-container";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
set justifyContentDesktop(t) {
|
|
293
|
-
this.setAttribute("justify-content--desktop", t);
|
|
294
|
-
}
|
|
295
|
-
get justifyItemsDesktop() {
|
|
296
|
-
return this.getAttribute("justify-items--desktop");
|
|
297
|
-
}
|
|
298
|
-
set justifyItemsDesktop(t) {
|
|
299
|
-
this.setAttribute("justify-items--desktop", t);
|
|
300
|
-
}
|
|
301
|
-
get alignContentDesktop() {
|
|
302
|
-
return this.getAttribute("align-content--desktop");
|
|
303
|
-
}
|
|
304
|
-
set alignContentDesktop(t) {
|
|
305
|
-
this.setAttribute("align-content--desktop", t);
|
|
306
|
-
}
|
|
307
|
-
get alignItemsDesktop() {
|
|
308
|
-
return this.getAttribute("align-items--desktop");
|
|
309
|
-
}
|
|
310
|
-
set alignItemsDesktop(t) {
|
|
311
|
-
this.setAttribute("align-items--desktop", t);
|
|
312
|
-
}
|
|
2
|
+
import { PxElement as e, VerticallyExtendedElement as t, backgroundColorValues as n, backgroundSizeValues as r, createTemplate as i, cssTokenBreakpoints as a, gapValues as o, gradientValues as s, log as c, renderTemplate as l } from "@proximus/lavender-common";
|
|
3
|
+
//#region src/banner.css?inline
|
|
4
|
+
var u = ":host{position:relative}:host,:host>*{box-sizing:border-box;display:block}.banner{height:100%;min-height:8rem;position:relative}.banner[reduced]{min-height:5rem}px-container{height:100%}.banner-content{row-gap:var(--px-spacing-s-mobile);z-index:2;grid-template-rows:minmax(0,auto);grid-template-columns:1fr;display:grid;position:relative}[reduced] .banner-content{column-gap:var(--px-spacing-default-mobile);grid-template-columns:min-content minmax(0,1fr)}::slotted([slot=tag]){grid-area:tag}::slotted([slot=media]){grid-area:media;align-self:start}::slotted([slot=title]){grid-area:title}::slotted([slot=description]){grid-area:description}::slotted([slot=content]){grid-area:content}::slotted([slot=action]){z-index:2;grid-area:action}:host(:not([reduced])) ::slotted([slot=action]){margin-top:calc(var(--px-spacing-default-mobile) - var(--px-spacing-s-mobile))}.contrast-helper{z-index:1;pointer-events:none;border-radius:var(--px-radius-main);display:none;position:absolute;inset:0}[contrast-helper-gradient] .contrast-helper{background-image:linear-gradient(90deg,#fff 23.43%,#fff0 81.69%);display:block}[inverted] :is([contrast-helper-gradient] .contrast-helper){background-image:linear-gradient(90deg,#000 23.43%,#0000 81.69%)}[contrast-helper-overlay] .contrast-helper{background-color:#ffffffb3;display:block}[inverted] :is([contrast-helper-overlay] .contrast-helper){background-color:#0006}@media screen and (width>=48rem){.banner-content{row-gap:var(--px-spacing-s-desktop)}[reduced] .banner-content{column-gap:var(--px-spacing-default-desktop)}.banner-content :host(:not([reduced])) ::slotted([slot=action]){margin-top:calc(var(--px-spacing-default-desktop) - var(--px-spacing-s-desktop))}}@media screen and (width>=64.0625rem){.banner-content{row-gap:var(--px-spacing-s-desktop)}[reduced] .banner-content{column-gap:var(--px-spacing-default-desktop)}.banner-content :host(:not([reduced])) ::slotted([slot=action]){margin-top:calc(var(--px-spacing-default-desktop) - var(--px-spacing-s-desktop))}}", d = ":host{--grid-cols:initial;--grid-cols--mobile:initial;--grid-cols--tablet:initial;--grid-cols--laptop:initial;--grid-cols--desktop:initial;--justify-content:initial;--justify-items:initial;--align-content:initial;--align-items:initial;display:block}.grid{grid-template-columns:repeat(var(--grid-cols), minmax(0, 1fr));justify-content:var(--justify-content);justify-items:var(--justify-items);align-content:var(--align-content);align-items:var(--align-items);display:grid}.justify-content-normal{justify-content:normal}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-center{justify-content:center}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.justify-content-space-evenly{justify-content:space-evenly}.justify-content-stretch{justify-content:stretch}.justify-items-start{justify-items:start}.justify-items-end{justify-items:end}.justify-items-center{justify-items:center}.justify-items-stretch{justify-items:stretch}.align-content-normal{align-content:normal}.align-content-start{align-content:start}.align-content-end{align-content:end}.align-content-center{align-content:center}.align-content-space-between{align-content:space-between}.align-content-space-around{align-content:space-around}.align-content-space-evenly{align-content:space-evenly}.align-content-stretch{align-content:stretch}.align-items-start{align-items:start}.align-items-end{align-items:end}.align-items-center{align-items:center}.align-items-stretch{align-items:stretch}@media screen and (width<=47.938rem){.grid{grid-template-columns:repeat(var(--grid-cols--mobile,var(--grid-cols)), minmax(0, 1fr))}.justify-content-normal-mobile{justify-content:normal}.justify-content-start-mobile{justify-content:start}.justify-content-end-mobile{justify-content:end}.justify-content-center-mobile{justify-content:center}.justify-content-space-between-mobile{justify-content:space-between}.justify-content-space-around-mobile{justify-content:space-around}.justify-content-space-evenly-mobile{justify-content:space-evenly}.justify-content-stretch-mobile{justify-content:stretch}.justify-items-start-mobile{justify-items:start}.justify-items-end-mobile{justify-items:end}.justify-items-center-mobile{justify-items:center}.justify-items-stretch-mobile{justify-items:stretch}.align-content-normal-mobile{align-content:normal}.align-content-start-mobile{align-content:start}.align-content-end-mobile{align-content:end}.align-content-center-mobile{align-content:center}.align-content-space-between-mobile{align-content:space-between}.align-content-space-around-mobile{align-content:space-around}.align-content-space-evenly-mobile{align-content:space-evenly}.align-content-stretch-mobile{align-content:stretch}.align-items-start-mobile{align-items:start}.align-items-end-mobile{align-items:end}.align-items-center-mobile{align-items:center}.align-items-stretch-mobile{align-items:stretch}}@media screen and (width>=48rem) and (width<=64rem){.grid{grid-template-columns:repeat(var(--grid-cols--tablet,var(--grid-cols)), minmax(0, 1fr))}.justify-content-normal-tablet{justify-content:normal}.justify-content-start-tablet{justify-content:start}.justify-content-end-tablet{justify-content:end}.justify-content-center-tablet{justify-content:center}.justify-content-space-between-tablet{justify-content:space-between}.justify-content-space-around-tablet{justify-content:space-around}.justify-content-space-evenly-tablet{justify-content:space-evenly}.justify-content-stretch-tablet{justify-content:stretch}.justify-items-start-tablet{justify-items:start}.justify-items-end-tablet{justify-items:end}.justify-items-center-tablet{justify-items:center}.justify-items-stretch-tablet{justify-items:stretch}.align-content-normal-tablet{align-content:normal}.align-content-start-tablet{align-content:start}.align-content-end-tablet{align-content:end}.align-content-center-tablet{align-content:center}.align-content-space-between-tablet{align-content:space-between}.align-content-space-around-tablet{align-content:space-around}.align-content-space-evenly-tablet{align-content:space-evenly}.align-content-stretch-tablet{align-content:stretch}.align-items-start-tablet{align-items:start}.align-items-end-tablet{align-items:end}.align-items-center-tablet{align-items:center}.align-items-stretch-tablet{align-items:stretch}}@media screen and (width>=64.0625rem){.grid{grid-template-columns:repeat(var(--grid-cols--laptop,var(--grid-cols)), minmax(0, 1fr))}.justify-content-normal-laptop{justify-content:normal}.justify-content-start-laptop{justify-content:start}.justify-content-end-laptop{justify-content:end}.justify-content-center-laptop{justify-content:center}.justify-content-space-between-laptop{justify-content:space-between}.justify-content-space-around-laptop{justify-content:space-around}.justify-content-space-evenly-laptop{justify-content:space-evenly}.justify-content-stretch-laptop{justify-content:stretch}.justify-items-start-laptop{justify-items:start}.justify-items-end-laptop{justify-items:end}.justify-items-center-laptop{justify-items:center}.justify-items-stretch-laptop{justify-items:stretch}.align-content-normal-laptop{align-content:normal}.align-content-start-laptop{align-content:start}.align-content-end-laptop{align-content:end}.align-content-center-laptop{align-content:center}.align-content-space-between-laptop{align-content:space-between}.align-content-space-around-laptop{align-content:space-around}.align-content-space-evenly-laptop{align-content:space-evenly}.align-content-stretch-laptop{align-content:stretch}.align-items-start-laptop{align-items:start}.align-items-end-laptop{align-items:end}.align-items-center-laptop{align-items:center}.align-items-stretch-laptop{align-items:stretch}}", f = new CSSStyleSheet();
|
|
5
|
+
f.replaceSync(d);
|
|
6
|
+
var p = [
|
|
7
|
+
"1",
|
|
8
|
+
"2",
|
|
9
|
+
"3",
|
|
10
|
+
"4",
|
|
11
|
+
"5",
|
|
12
|
+
"6",
|
|
13
|
+
"7",
|
|
14
|
+
"8",
|
|
15
|
+
"9",
|
|
16
|
+
"10",
|
|
17
|
+
"11",
|
|
18
|
+
"12"
|
|
19
|
+
], m = [
|
|
20
|
+
"",
|
|
21
|
+
"start",
|
|
22
|
+
"end",
|
|
23
|
+
"center",
|
|
24
|
+
"space-between",
|
|
25
|
+
"space-around",
|
|
26
|
+
"space-evenly",
|
|
27
|
+
"stretch"
|
|
28
|
+
], h = [
|
|
29
|
+
"",
|
|
30
|
+
"start",
|
|
31
|
+
"end",
|
|
32
|
+
"center",
|
|
33
|
+
"stretch"
|
|
34
|
+
], g = a("gap", (e, t, n) => `:host([${e}${n ? `--${n}` : ""}='${t}']) .grid`, o, "px-spacing", "--grid-gap"), _ = class t extends e {
|
|
35
|
+
static {
|
|
36
|
+
this.template = i("<div class=\"grid\"><slot></slot></div>");
|
|
37
|
+
}
|
|
38
|
+
static {
|
|
39
|
+
this.nativeName = "div";
|
|
40
|
+
}
|
|
41
|
+
constructor() {
|
|
42
|
+
super(f, g), l(this.shadowRoot, t.template);
|
|
43
|
+
}
|
|
44
|
+
static get observedAttributes() {
|
|
45
|
+
return [
|
|
46
|
+
...super.observedAttributes,
|
|
47
|
+
"grid-cols",
|
|
48
|
+
"grid-cols--mobile",
|
|
49
|
+
"grid-cols--tablet",
|
|
50
|
+
"grid-cols--laptop",
|
|
51
|
+
"justify-content",
|
|
52
|
+
"justify-items",
|
|
53
|
+
"align-content",
|
|
54
|
+
"align-items",
|
|
55
|
+
"justify-content--mobile",
|
|
56
|
+
"justify-items--mobile",
|
|
57
|
+
"align-content--mobile",
|
|
58
|
+
"align-items--mobile",
|
|
59
|
+
"justify-content--tablet",
|
|
60
|
+
"justify-items--tablet",
|
|
61
|
+
"align-content--tablet",
|
|
62
|
+
"align-items--tablet",
|
|
63
|
+
"justify-content--laptop",
|
|
64
|
+
"justify-items--laptop",
|
|
65
|
+
"align-content--laptop",
|
|
66
|
+
"align-items--laptop",
|
|
67
|
+
"justify-content--desktop",
|
|
68
|
+
"justify-items--desktop",
|
|
69
|
+
"align-content--desktop",
|
|
70
|
+
"align-items--desktop"
|
|
71
|
+
];
|
|
72
|
+
}
|
|
73
|
+
connectedCallback() {
|
|
74
|
+
this.gap ||= "default", this.alignItems ||= "stretch";
|
|
75
|
+
}
|
|
76
|
+
attributeChangedCallback(e, t, n) {
|
|
77
|
+
if (t !== n) switch (e) {
|
|
78
|
+
case "grid-cols":
|
|
79
|
+
case "grid-cols--mobile":
|
|
80
|
+
case "grid-cols--tablet":
|
|
81
|
+
case "grid-cols--laptop":
|
|
82
|
+
this.updateAttribute(e, t, n, p);
|
|
83
|
+
break;
|
|
84
|
+
case "justify-content":
|
|
85
|
+
case "align-content":
|
|
86
|
+
case "justify-content--mobile":
|
|
87
|
+
case "align-content--mobile":
|
|
88
|
+
case "justify-content--tablet":
|
|
89
|
+
case "align-content--tablet":
|
|
90
|
+
case "justify-content--laptop":
|
|
91
|
+
case "align-content--laptop":
|
|
92
|
+
case "justify-content--desktop":
|
|
93
|
+
case "align-content--desktop":
|
|
94
|
+
this.updateAttribute(e, t, n, m);
|
|
95
|
+
break;
|
|
96
|
+
case "justify-items":
|
|
97
|
+
case "align-items":
|
|
98
|
+
case "justify-items--mobile":
|
|
99
|
+
case "align-items--mobile":
|
|
100
|
+
case "justify-items--tablet":
|
|
101
|
+
case "align-items--tablet":
|
|
102
|
+
case "justify-items--laptop":
|
|
103
|
+
case "align-items--laptop":
|
|
104
|
+
case "justify-items--desktop":
|
|
105
|
+
case "align-items--desktop":
|
|
106
|
+
this.updateAttribute(e, t, n, h);
|
|
107
|
+
break;
|
|
108
|
+
default: super.attributeChangedCallback(e, t, n);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
updateGap(e, t, n) {
|
|
112
|
+
if (!this.checkName(n, t)) {
|
|
113
|
+
c(`"${t}" is not a valid gap value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
let r = (e) => {
|
|
117
|
+
e !== null && e !== "" && e !== "default" && (this.$el.style.setProperty("--grid-gap--mobile", `var(--px-spacing-${e}-mobile)`), this.$el.style.setProperty("--grid-gap--tablet", `var(--px-spacing-${e}-tablet)`), this.$el.style.setProperty("--grid-gap--laptop", `var(--px-spacing-${e}-laptop)`));
|
|
118
|
+
};
|
|
119
|
+
r(e), r(t);
|
|
120
|
+
}
|
|
121
|
+
updateAttribute(e, t, n, r) {
|
|
122
|
+
this.checkName(r, n) ? e === "grid-cols" || e === "grid-cols--mobile" || e === "grid-cols--tablet" || e === "grid-cols--laptop" || e === "grid-cols--desktop" ? this.$el.style.setProperty(`--${e}`, n) : (t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`${e}-${t}`), n !== null && n !== "" && n !== "default" && this.$el.classList.toggle(`${e}-${n}`)) : c(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
123
|
+
}
|
|
124
|
+
get gap() {
|
|
125
|
+
return this.getAttribute("gap");
|
|
126
|
+
}
|
|
127
|
+
set gap(e) {
|
|
128
|
+
this._updateAttribute("gap", e);
|
|
129
|
+
}
|
|
130
|
+
get gapMobile() {
|
|
131
|
+
return this.getAttribute("gap--mobile");
|
|
132
|
+
}
|
|
133
|
+
set gapMobile(e) {
|
|
134
|
+
this._updateAttribute("gap--mobile", e);
|
|
135
|
+
}
|
|
136
|
+
get gapTablet() {
|
|
137
|
+
return this.getAttribute("gap--tablet");
|
|
138
|
+
}
|
|
139
|
+
set gapTablet(e) {
|
|
140
|
+
this._updateAttribute("gap--tablet", e);
|
|
141
|
+
}
|
|
142
|
+
get gapLaptop() {
|
|
143
|
+
return this.getAttribute("gap--laptop");
|
|
144
|
+
}
|
|
145
|
+
set gapLaptop(e) {
|
|
146
|
+
this._updateAttribute("gap--laptop", e);
|
|
147
|
+
}
|
|
148
|
+
get gridCols() {
|
|
149
|
+
return this.getAttribute("grid-cols");
|
|
150
|
+
}
|
|
151
|
+
set gridCols(e) {
|
|
152
|
+
this._updateAttribute("grid-cols", e);
|
|
153
|
+
}
|
|
154
|
+
get gridColsMobile() {
|
|
155
|
+
return this.getAttribute("grid-cols--mobile");
|
|
156
|
+
}
|
|
157
|
+
set gridColsMobile(e) {
|
|
158
|
+
this._updateAttribute("grid-cols--mobile", e);
|
|
159
|
+
}
|
|
160
|
+
get gridColsTablet() {
|
|
161
|
+
return this.getAttribute("grid-cols--tablet");
|
|
162
|
+
}
|
|
163
|
+
set gridColsTablet(e) {
|
|
164
|
+
this._updateAttribute("grid-cols--tablet", e);
|
|
165
|
+
}
|
|
166
|
+
get gridColsLaptop() {
|
|
167
|
+
return this.getAttribute("grid-cols--laptop");
|
|
168
|
+
}
|
|
169
|
+
set gridColsLaptop(e) {
|
|
170
|
+
this._updateAttribute("grid-cols--laptop", e);
|
|
171
|
+
}
|
|
172
|
+
get justifyContent() {
|
|
173
|
+
return this.getAttribute("justify-content");
|
|
174
|
+
}
|
|
175
|
+
set justifyContent(e) {
|
|
176
|
+
this._updateAttribute("justify-content", e);
|
|
177
|
+
}
|
|
178
|
+
get justifyItems() {
|
|
179
|
+
return this.getAttribute("justify-items");
|
|
180
|
+
}
|
|
181
|
+
set justifyItems(e) {
|
|
182
|
+
this._updateAttribute("justify-items", e);
|
|
183
|
+
}
|
|
184
|
+
get alignContent() {
|
|
185
|
+
return this.getAttribute("align-content");
|
|
186
|
+
}
|
|
187
|
+
set alignContent(e) {
|
|
188
|
+
this._updateAttribute("align-content", e);
|
|
189
|
+
}
|
|
190
|
+
get alignItems() {
|
|
191
|
+
return this.getAttribute("align-items");
|
|
192
|
+
}
|
|
193
|
+
set alignItems(e) {
|
|
194
|
+
this._updateAttribute("align-items", e);
|
|
195
|
+
}
|
|
196
|
+
get justifyContentMobile() {
|
|
197
|
+
return this.getAttribute("justify-content--mobile");
|
|
198
|
+
}
|
|
199
|
+
set justifyContentMobile(e) {
|
|
200
|
+
this._updateAttribute("justify-content--mobile", e);
|
|
201
|
+
}
|
|
202
|
+
get justifyItemsMobile() {
|
|
203
|
+
return this.getAttribute("justify-items--mobile");
|
|
204
|
+
}
|
|
205
|
+
set justifyItemsMobile(e) {
|
|
206
|
+
this._updateAttribute("justify-items--mobile", e);
|
|
207
|
+
}
|
|
208
|
+
get alignContentMobile() {
|
|
209
|
+
return this.getAttribute("align-content--mobile");
|
|
210
|
+
}
|
|
211
|
+
set alignContentMobile(e) {
|
|
212
|
+
this._updateAttribute("align-content--mobile", e);
|
|
213
|
+
}
|
|
214
|
+
get alignItemsMobile() {
|
|
215
|
+
return this.getAttribute("align-items--mobile");
|
|
216
|
+
}
|
|
217
|
+
set alignItemsMobile(e) {
|
|
218
|
+
this._updateAttribute("align-items--mobile", e);
|
|
219
|
+
}
|
|
220
|
+
get justifyContentTablet() {
|
|
221
|
+
return this.getAttribute("justify-content--tablet");
|
|
222
|
+
}
|
|
223
|
+
set justifyContentTablet(e) {
|
|
224
|
+
this._updateAttribute("justify-content--tablet", e);
|
|
225
|
+
}
|
|
226
|
+
get justifyItemsTablet() {
|
|
227
|
+
return this.getAttribute("justify-items--tablet");
|
|
228
|
+
}
|
|
229
|
+
set justifyItemsTablet(e) {
|
|
230
|
+
this._updateAttribute("justify-items--tablet", e);
|
|
231
|
+
}
|
|
232
|
+
get alignContentTablet() {
|
|
233
|
+
return this.getAttribute("align-content--tablet");
|
|
234
|
+
}
|
|
235
|
+
set alignContentTablet(e) {
|
|
236
|
+
this._updateAttribute("align-content--tablet", e);
|
|
237
|
+
}
|
|
238
|
+
get alignItemsTablet() {
|
|
239
|
+
return this.getAttribute("align-items--tablet");
|
|
240
|
+
}
|
|
241
|
+
set alignItemsTablet(e) {
|
|
242
|
+
this._updateAttribute("align-items--tablet", e);
|
|
243
|
+
}
|
|
244
|
+
get justifyContentLaptop() {
|
|
245
|
+
return this.getAttribute("justify-content--laptop");
|
|
246
|
+
}
|
|
247
|
+
set justifyContentLaptop(e) {
|
|
248
|
+
this._updateAttribute("justify-content--laptop", e);
|
|
249
|
+
}
|
|
250
|
+
get justifyItemsLaptop() {
|
|
251
|
+
return this.getAttribute("justify-items--laptop");
|
|
252
|
+
}
|
|
253
|
+
set justifyItemsLaptop(e) {
|
|
254
|
+
this._updateAttribute("justify-items--laptop", e);
|
|
255
|
+
}
|
|
256
|
+
get alignContentLaptop() {
|
|
257
|
+
return this.getAttribute("align-content--laptop");
|
|
258
|
+
}
|
|
259
|
+
set alignContentLaptop(e) {
|
|
260
|
+
this._updateAttribute("align-content--laptop", e);
|
|
261
|
+
}
|
|
262
|
+
get alignItemsLaptop() {
|
|
263
|
+
return this.getAttribute("align-items--laptop");
|
|
264
|
+
}
|
|
265
|
+
set alignItemsLaptop(e) {
|
|
266
|
+
this._updateAttribute("align-items--laptop", e);
|
|
267
|
+
}
|
|
268
|
+
get justifyContentDesktop() {
|
|
269
|
+
return this.getAttribute("justify-content--desktop");
|
|
270
|
+
}
|
|
271
|
+
set justifyContentDesktop(e) {
|
|
272
|
+
this._updateAttribute("justify-content--desktop", e);
|
|
273
|
+
}
|
|
274
|
+
get justifyItemsDesktop() {
|
|
275
|
+
return this.getAttribute("justify-items--desktop");
|
|
276
|
+
}
|
|
277
|
+
set justifyItemsDesktop(e) {
|
|
278
|
+
this._updateAttribute("justify-items--desktop", e);
|
|
279
|
+
}
|
|
280
|
+
get alignContentDesktop() {
|
|
281
|
+
return this.getAttribute("align-content--desktop");
|
|
282
|
+
}
|
|
283
|
+
set alignContentDesktop(e) {
|
|
284
|
+
this._updateAttribute("align-content--desktop", e);
|
|
285
|
+
}
|
|
286
|
+
get alignItemsDesktop() {
|
|
287
|
+
return this.getAttribute("align-items--desktop");
|
|
288
|
+
}
|
|
289
|
+
set alignItemsDesktop(e) {
|
|
290
|
+
this._updateAttribute("align-items--desktop", e);
|
|
291
|
+
}
|
|
313
292
|
};
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
set hasGriddingLaptop(t) {
|
|
561
|
-
t ? this.setAttribute("has-gridding--laptop", "") : this.removeAttribute("has-gridding--laptop");
|
|
562
|
-
}
|
|
563
|
-
};
|
|
564
|
-
l.nativeName = "div";
|
|
565
|
-
let r = l;
|
|
566
|
-
customElements.get("px-banner") || customElements.define("px-banner", r);
|
|
567
|
-
export {
|
|
568
|
-
r as Banner
|
|
293
|
+
customElements.get("px-grid") || customElements.define("px-grid", _);
|
|
294
|
+
//#endregion
|
|
295
|
+
//#region src/Banner.ts
|
|
296
|
+
var v = new CSSStyleSheet();
|
|
297
|
+
v.replaceSync(u);
|
|
298
|
+
var y = class e extends t {
|
|
299
|
+
static {
|
|
300
|
+
this.template = i("<div class=\"banner\"><div class=\"contrast-helper\"></div><px-container class=\"banner-container\" padding--mobile=\"m\" border-radius=\"main\" ><px-vstack><px-grid gap=\"none\"><px-container padding=\"none\" background-color=\"none\"><div class=\"banner-content\"><slot name=\"tag\"></slot><slot name=\"media\"></slot><slot name=\"title\"></slot><slot name=\"description\"></slot><slot name=\"content\"></slot></div></px-container></px-grid><slot name=\"action\"></slot></px-vstack></px-container></div>");
|
|
301
|
+
}
|
|
302
|
+
static {
|
|
303
|
+
this.nativeName = "div";
|
|
304
|
+
}
|
|
305
|
+
constructor() {
|
|
306
|
+
super(v), this.observer = new MutationObserver(() => {
|
|
307
|
+
this.createGridTemplateAreas(), this.createGridding();
|
|
308
|
+
}), l(this.shadowRoot, e.template);
|
|
309
|
+
}
|
|
310
|
+
static get observedAttributes() {
|
|
311
|
+
return [
|
|
312
|
+
...super.observedAttributes,
|
|
313
|
+
"background-color",
|
|
314
|
+
"background-gradient",
|
|
315
|
+
"background-image",
|
|
316
|
+
"background-image--mobile",
|
|
317
|
+
"background-image--tablet",
|
|
318
|
+
"background-image--laptop",
|
|
319
|
+
"background-size",
|
|
320
|
+
"background-position",
|
|
321
|
+
"contrast-helper-gradient",
|
|
322
|
+
"contrast-helper-overlay",
|
|
323
|
+
"has-gridding",
|
|
324
|
+
"has-gridding--mobile",
|
|
325
|
+
"has-gridding--tablet",
|
|
326
|
+
"has-gridding--laptop",
|
|
327
|
+
"reduced",
|
|
328
|
+
"inverted"
|
|
329
|
+
];
|
|
330
|
+
}
|
|
331
|
+
connectedCallback() {
|
|
332
|
+
super.connectedCallback?.(), this.#e(), this.createGridTemplateAreas(), this.createGridding(), this.observer.observe(this, {
|
|
333
|
+
childList: !0,
|
|
334
|
+
subtree: !0
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
#e() {
|
|
338
|
+
this.$container.setAttribute("padding", this.reduced ? "m" : "l");
|
|
339
|
+
}
|
|
340
|
+
attributeChangedCallback(e, t, i) {
|
|
341
|
+
if (t !== i) switch (e) {
|
|
342
|
+
case "background-color":
|
|
343
|
+
this.$container.backgroundColor = n.indexOf(i) > 0 ? i : "none";
|
|
344
|
+
break;
|
|
345
|
+
case "background-gradient":
|
|
346
|
+
this.$container.gradient = s.indexOf(i) > 0 ? i : "none";
|
|
347
|
+
break;
|
|
348
|
+
case "background-image":
|
|
349
|
+
this.$container.backgroundImage = i;
|
|
350
|
+
break;
|
|
351
|
+
case "background-image--mobile":
|
|
352
|
+
this.$container.backgroundImageMobile = i;
|
|
353
|
+
break;
|
|
354
|
+
case "background-image--tablet":
|
|
355
|
+
this.$container.backgroundImageTablet = i;
|
|
356
|
+
break;
|
|
357
|
+
case "background-image--laptop":
|
|
358
|
+
this.$container.backgroundImageLaptop = i;
|
|
359
|
+
break;
|
|
360
|
+
case "background-size":
|
|
361
|
+
this.$container.backgroundSize = r.indexOf(i) > 0 ? i : "";
|
|
362
|
+
break;
|
|
363
|
+
case "background-position":
|
|
364
|
+
this.$container.backgroundPosition = i;
|
|
365
|
+
break;
|
|
366
|
+
case "reduced":
|
|
367
|
+
this.$el.toggleAttribute("reduced", i !== null), this.isConnected && this.#e(), this.createGridTemplateAreas();
|
|
368
|
+
break;
|
|
369
|
+
case "has-gridding":
|
|
370
|
+
case "has-gridding--mobile":
|
|
371
|
+
case "has-gridding--tablet":
|
|
372
|
+
case "has-gridding--laptop":
|
|
373
|
+
this.createGridding(i);
|
|
374
|
+
break;
|
|
375
|
+
case "inverted":
|
|
376
|
+
for (let e = 0; e < this.$children.length; e++) this.$children[e].hasAttribute("inverted") || this.$children[e].toggleAttribute("inverted");
|
|
377
|
+
this.$el.toggleAttribute("inverted", i !== null);
|
|
378
|
+
break;
|
|
379
|
+
default: super.attributeChangedCallback(e, t, i);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
disconnectedCallback() {
|
|
383
|
+
this.observer.disconnect();
|
|
384
|
+
}
|
|
385
|
+
createGridTemplateAreas() {
|
|
386
|
+
let e = this.shadowRoot.querySelector(".banner-content"), t = [
|
|
387
|
+
"tag",
|
|
388
|
+
"media",
|
|
389
|
+
"title",
|
|
390
|
+
"description",
|
|
391
|
+
"content",
|
|
392
|
+
"action"
|
|
393
|
+
], n = "";
|
|
394
|
+
this.reduced ? t.forEach((e) => {
|
|
395
|
+
let t = this.shadowRoot.querySelector(`slot[name="${e}"]`);
|
|
396
|
+
if (t && t.assignedElements().length > 0) {
|
|
397
|
+
if (e === "media") return;
|
|
398
|
+
n += `'media ${e}'\n`;
|
|
399
|
+
}
|
|
400
|
+
}) : t.forEach((e) => {
|
|
401
|
+
let t = this.shadowRoot.querySelector(`slot[name="${e}"]`);
|
|
402
|
+
t && t.assignedElements().length > 0 && (n += `'${e}'\n`);
|
|
403
|
+
}), n ||= "'content'", e.style.gridTemplateAreas = n;
|
|
404
|
+
}
|
|
405
|
+
createGridding(e) {
|
|
406
|
+
let t = [
|
|
407
|
+
{
|
|
408
|
+
prop: "hasGridding",
|
|
409
|
+
gridAttr: "grid-cols",
|
|
410
|
+
attr: "col-span"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
prop: "hasGriddingMobile",
|
|
414
|
+
gridAttr: "grid-cols--mobile",
|
|
415
|
+
attr: "col-span--mobile"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
prop: "hasGriddingTablet",
|
|
419
|
+
gridAttr: "grid-cols--tablet",
|
|
420
|
+
attr: "col-span--tablet"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
prop: "hasGriddingLaptop",
|
|
424
|
+
gridAttr: "grid-cols--laptop",
|
|
425
|
+
attr: "col-span--laptop"
|
|
426
|
+
}
|
|
427
|
+
], n = this.shadowRoot.querySelector("px-grid > px-container");
|
|
428
|
+
e === null ? t.forEach(({ gridAttr: e, attr: t }) => {
|
|
429
|
+
this.$grid.setAttribute(e, "1"), n.setAttribute(t, "1");
|
|
430
|
+
}) : t.forEach(({ prop: e, gridAttr: t, attr: r }) => {
|
|
431
|
+
this[e] && (this.$grid.setAttribute(t, "3"), n.setAttribute(r, "2"));
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
get $grid() {
|
|
435
|
+
return this.shadowRoot.querySelector("px-grid");
|
|
436
|
+
}
|
|
437
|
+
get $container() {
|
|
438
|
+
return this.shadowRoot.querySelector(".banner-container");
|
|
439
|
+
}
|
|
440
|
+
get $children() {
|
|
441
|
+
return this.querySelectorAll("px-banner > *");
|
|
442
|
+
}
|
|
443
|
+
get backgroundColor() {
|
|
444
|
+
return this.getAttribute("background-color");
|
|
445
|
+
}
|
|
446
|
+
set backgroundColor(e) {
|
|
447
|
+
this._updateAttribute("background-color", e);
|
|
448
|
+
}
|
|
449
|
+
get gradient() {
|
|
450
|
+
return this.getAttribute("background-gradient");
|
|
451
|
+
}
|
|
452
|
+
set gradient(e) {
|
|
453
|
+
this._updateAttribute("background-gradient", e);
|
|
454
|
+
}
|
|
455
|
+
get backgroundImage() {
|
|
456
|
+
return this.getAttribute("background-image");
|
|
457
|
+
}
|
|
458
|
+
set backgroundImage(e) {
|
|
459
|
+
this._updateAttribute("background-image", e);
|
|
460
|
+
}
|
|
461
|
+
get backgroundImageMobile() {
|
|
462
|
+
return this.getAttribute("background-image--mobile");
|
|
463
|
+
}
|
|
464
|
+
set backgroundImageMobile(e) {
|
|
465
|
+
this._updateAttribute("background-image--mobile", e);
|
|
466
|
+
}
|
|
467
|
+
get backgroundImageTablet() {
|
|
468
|
+
return this.getAttribute("background-image--tablet");
|
|
469
|
+
}
|
|
470
|
+
set backgroundImageTablet(e) {
|
|
471
|
+
this._updateAttribute("background-image--tablet", e);
|
|
472
|
+
}
|
|
473
|
+
get backgroundImageLaptop() {
|
|
474
|
+
return this.getAttribute("background-image--laptop");
|
|
475
|
+
}
|
|
476
|
+
set backgroundImageLaptop(e) {
|
|
477
|
+
this._updateAttribute("background-image--laptop", e);
|
|
478
|
+
}
|
|
479
|
+
get backgroundSize() {
|
|
480
|
+
return this.getAttribute("background-size");
|
|
481
|
+
}
|
|
482
|
+
set backgroundSize(e) {
|
|
483
|
+
this._updateAttribute("background-size", e);
|
|
484
|
+
}
|
|
485
|
+
get backgroundPosition() {
|
|
486
|
+
return this.getAttribute("background-position");
|
|
487
|
+
}
|
|
488
|
+
set backgroundPosition(e) {
|
|
489
|
+
this._updateAttribute("background-position", e);
|
|
490
|
+
}
|
|
491
|
+
get gradientContrastHelper() {
|
|
492
|
+
return this.hasAttribute("contrast-helper-gradient");
|
|
493
|
+
}
|
|
494
|
+
set gradientContrastHelper(e) {
|
|
495
|
+
this._updateBooleanAttribute("contrast-helper-gradient", e);
|
|
496
|
+
}
|
|
497
|
+
get overlayContrastHelper() {
|
|
498
|
+
return this.hasAttribute("contrast-helper-overlay");
|
|
499
|
+
}
|
|
500
|
+
set overlayContrastHelper(e) {
|
|
501
|
+
this._updateBooleanAttribute("contrast-helper-overlay", e);
|
|
502
|
+
}
|
|
503
|
+
get inverted() {
|
|
504
|
+
return this.hasAttribute("inverted");
|
|
505
|
+
}
|
|
506
|
+
set inverted(e) {
|
|
507
|
+
this._updateBooleanAttribute("inverted", e);
|
|
508
|
+
}
|
|
509
|
+
get reduced() {
|
|
510
|
+
return this.hasAttribute("reduced");
|
|
511
|
+
}
|
|
512
|
+
set reduced(e) {
|
|
513
|
+
this._updateBooleanAttribute("reduced", e);
|
|
514
|
+
}
|
|
515
|
+
get hasGridding() {
|
|
516
|
+
return this.hasAttribute("has-gridding");
|
|
517
|
+
}
|
|
518
|
+
set hasGridding(e) {
|
|
519
|
+
this._updateBooleanAttribute("has-gridding", e);
|
|
520
|
+
}
|
|
521
|
+
get hasGriddingMobile() {
|
|
522
|
+
return this.hasAttribute("has-gridding--mobile");
|
|
523
|
+
}
|
|
524
|
+
set hasGriddingMobile(e) {
|
|
525
|
+
this._updateBooleanAttribute("has-gridding--mobile", e);
|
|
526
|
+
}
|
|
527
|
+
get hasGriddingTablet() {
|
|
528
|
+
return this.hasAttribute("has-gridding--tablet");
|
|
529
|
+
}
|
|
530
|
+
set hasGriddingTablet(e) {
|
|
531
|
+
this._updateBooleanAttribute("has-gridding--tablet", e);
|
|
532
|
+
}
|
|
533
|
+
get hasGriddingLaptop() {
|
|
534
|
+
return this.hasAttribute("has-gridding--laptop");
|
|
535
|
+
}
|
|
536
|
+
set hasGriddingLaptop(e) {
|
|
537
|
+
this._updateBooleanAttribute("has-gridding--laptop", e);
|
|
538
|
+
}
|
|
569
539
|
};
|
|
540
|
+
customElements.get("px-banner") || customElements.define("px-banner", y);
|
|
541
|
+
//#endregion
|
|
542
|
+
export { y as Banner };
|