@proximus/lavender-content-header 2.0.0-alpha.165 → 2.0.0-alpha.169
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/ContentHeader.d.ts +18 -18
- package/dist/index.es.js +1966 -2216
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,1185 +1,1036 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AttributeBreakpointHandlerDelegate as e, PxElement as t, WithExtraAttributes as n, backgroundColorValues as r, backgroundSizeValues as i, booleanPropertyToAttributeSetter as a, borderColorValues as o, borderRadiusValues as s, borderSideValues as c, borderValues as l, boxShadowValues as u, checkName as d, cssTokenBreakpoints as f, gapValues as p, gradientValues as m, log as h, noBorderRadiusValues as g, paddingValues as _, propertyToAttributeSetter as v } from "@proximus/lavender-common";
|
|
2
2
|
import "@proximus/lavender-heading";
|
|
3
|
-
const q = ':host{--min-height--mobile: 15.625rem;--min-height--tablet: 17.5rem;--min-height--laptop: 17.5rem;--min-height--desktop: 17.5rem}:host,:host>*{display:block;box-sizing:border-box}.content-header{position:relative;z-index:0}[min-height] .content-header-content{min-height:calc(var(--min-height--mobile) - (var(--px-spacing-l-mobile) * 2))}.content-header-content{display:flex;flex-direction:column;z-index:2;position:relative;box-sizing:border-box}.content-header-content ::slotted([slot="patch"]){margin-top:var(--px-spacing-l-mobile)}.contrast-helper{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none;display:none}[contrast-helper-gradient] .contrast-helper{display:block;background-image:linear-gradient(90deg,#fff 23.43%,#fff0 81.69%)}[inverted] :is([contrast-helper-gradient] .contrast-helper){background-image:linear-gradient(90deg,#000 23.43%,#0000 81.69%)}[contrast-helper-overlay] .contrast-helper{display:block;background-color:#ffffffb3}[inverted] :is([contrast-helper-overlay] .contrast-helper){background-color:#0006}@media screen and (min-width: 48rem){.content-header-content ::slotted([slot="patch"]){flex-shrink:0}.content-header-content ::slotted([slot="patch"]),.content-header-content ::slotted([slot="patch-description"]){margin-top:var(--px-spacing-l-tablet)}[min-height] .content-header-content{min-height:calc(var(--min-height--tablet) - (var(--px-spacing-l-tablet) * 2))}}@media screen and (min-width: 64.0625rem){.content-header-content ::slotted([slot="patch"]),.content-header-content ::slotted([slot="patch-description"]){margin-top:var(--px-spacing-l-laptop)}[min-height] .content-header-content{min-height:calc(var(--min-height--laptop) - (var(--px-spacing-l-laptop) * 2))}}@media screen and (min-width: 90.0625rem){.content-header-content ::slotted([slot="patch"]),.content-header-content ::slotted([slot="patch-description"]){margin-top:var(--px-spacing-l-desktop)}[min-height] .content-header-content{min-height:calc(var(--min-height--desktop) - (var(--px-spacing-l-desktop) * 2))}}', N = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media screen and (min-width: 77rem){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media screen and (min-width: 48rem){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media screen and (min-width: 64.0625rem){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', X = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--mobile)}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}:host([subgrid-rows]){display:contents}:host([subgrid-rows]) .container{display:grid;grid-template-rows:subgrid;grid-row:span var(--subgrid-rows)}:host([subgrid-rows]):host([grow]) .container{flex-grow:var(--grow-value)}:host([subgrid-rows]):host([shrink]) .container{flex-shrink:var(--shrink-value)}:host([subgrid-rows]):host([basis]) .container{flex-basis:var(--basis-value)}:host([subgrid-rows]):host([align-self]) .container{align-self:var(--align-self-value)}:host([subgrid-rows]):host([col-span]) .container{grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([subgrid-rows]):host([justify-self]) .container{justify-self:var(--justify-self-value)}:host([subgrid-rows]):host([order]) .container{order:var(--order-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--mobile)}@media screen and (max-width: 47.938rem){.container{background-color:var(--background-color--mobile, var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile, var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var( --background-gradient--mobile, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}:host([subgrid-rows]):host([grow--mobile]) .container{flex-grow:var(--grow--mobile-value)}:host([subgrid-rows]):host([shrink--mobile]) .container{flex-shrink:var(--shrink--mobile-value)}:host([subgrid-rows]):host([basis--mobile]) .container{flex-basis:var(--basis--mobile-value)}:host([subgrid-rows]):host([align-self--mobile]) .container{align-self:var(--align-self--mobile-value)}:host([subgrid-rows]):host([col-span--mobile]) .container{grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)}:host([subgrid-rows]):host([justify-self--mobile]) .container{justify-self:var(--justify-self--mobile-value)}:host([subgrid-rows]):host([order--mobile]) .container{order:var(--order--mobile-value)}}@media screen and (min-width: 48rem) and (max-width: 64rem){.container{background-color:var(--background-color--tablet, var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet, var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var( --background-gradient--tablet, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--tablet)}:host([subgrid-rows]):host([col-span--tablet]) .container{grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)}:host([subgrid-rows]):host([grow--tablet]) .container{flex-grow:var(--grow--tablet-value)}:host([subgrid-rows]):host([shrink--tablet]) .container{flex-shrink:var(--shrink--tablet-value)}:host([subgrid-rows]):host([basis--tablet]) .container{flex-basis:var(--basis--tablet-value)}:host([subgrid-rows]):host([align-self--tablet]) .container{align-self:var(--align-self--tablet-value)}:host([subgrid-rows]):host([justify-self--tablet]) .container{justify-self:var(--justify-self--tablet-value)}:host([subgrid-rows]):host([order--tablet]) .container{order:var(--order--tablet-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--tablet)}}@media screen and (min-width: 64.0625rem) and (max-width: 90rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}:host([subgrid-rows]):host([col-span--laptop]) .container{grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)}:host([subgrid-rows]):host([grow--laptop]) .container{flex-grow:var(--grow--laptop-value)}:host([subgrid-rows]):host([shrink--laptop]) .container{flex-shrink:var(--shrink--laptop-value)}:host([subgrid-rows]):host([basis--laptop]) .container{flex-basis:var(--basis--laptop-value)}:host([subgrid-rows]):host([align-self--laptop]) .container{align-self:var(--align-self--laptop-value)}:host([subgrid-rows]):host([justify-self--laptop]) .container{justify-self:var(--justify-self--laptop-value)}:host([subgrid-rows]):host([order--laptop]) .container{order:var(--order--laptop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--laptop)}}@media screen and (min-width: 64.0625rem){.container{background-color:var(--background-color--laptop, var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop, var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var( --background-gradient--laptop, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}@media screen and (min-width: 90.0625rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--desktop)}:host([subgrid-rows]):host([col-span--desktop]) .container{grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)}:host([subgrid-rows]):host([grow--desktop]) .container{flex-grow:var(--grow--desktop-value)}:host([subgrid-rows]):host([shrink--desktop]) .container{flex-shrink:var(--shrink--desktop-value)}:host([subgrid-rows]):host([basis--desktop]) .container{flex-basis:var(--basis--desktop-value)}:host([subgrid-rows]):host([align-self--desktop]) .container{align-self:var(--align-self--desktop-value)}:host([subgrid-rows]):host([justify-self--desktop]) .container{justify-self:var(--justify-self--desktop-value)}:host([subgrid-rows]):host([order--desktop]) .container{order:var(--order--desktop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--desktop)}}', T = new CSSStyleSheet();
|
|
4
|
-
T.replaceSync(X);
|
|
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
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
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
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
return this.getAttribute("background-color--mobile");
|
|
620
|
-
}
|
|
621
|
-
set backgroundColorMobile(t) {
|
|
622
|
-
this.setAttribute("background-color--mobile", t);
|
|
623
|
-
}
|
|
624
|
-
get backgroundColorTablet() {
|
|
625
|
-
return this.getAttribute("background-color--tablet");
|
|
626
|
-
}
|
|
627
|
-
set backgroundColorTablet(t) {
|
|
628
|
-
this.setAttribute("background-color--tablet", t);
|
|
629
|
-
}
|
|
630
|
-
get backgroundColorLaptop() {
|
|
631
|
-
return this.getAttribute("background-color--laptop");
|
|
632
|
-
}
|
|
633
|
-
set backgroundColorLaptop(t) {
|
|
634
|
-
this.setAttribute("background-color--laptop", t);
|
|
635
|
-
}
|
|
636
|
-
get gradient() {
|
|
637
|
-
return this.getAttribute("background-gradient");
|
|
638
|
-
}
|
|
639
|
-
set gradient(t) {
|
|
640
|
-
this.setAttribute("background-gradient", t);
|
|
641
|
-
}
|
|
642
|
-
get gradientMobile() {
|
|
643
|
-
return this.getAttribute("background-gradient--mobile");
|
|
644
|
-
}
|
|
645
|
-
set gradientMobile(t) {
|
|
646
|
-
this.setAttribute("background-gradient--mobile", t);
|
|
647
|
-
}
|
|
648
|
-
get gradientTablet() {
|
|
649
|
-
return this.getAttribute("background-gradient--tablet");
|
|
650
|
-
}
|
|
651
|
-
set gradientTablet(t) {
|
|
652
|
-
this.setAttribute("background-gradient--tablet", t);
|
|
653
|
-
}
|
|
654
|
-
get gradientLaptop() {
|
|
655
|
-
return this.getAttribute("background-gradient--laptop");
|
|
656
|
-
}
|
|
657
|
-
set gradientLaptop(t) {
|
|
658
|
-
this.setAttribute("background-gradient--laptop", t);
|
|
659
|
-
}
|
|
660
|
-
get backgroundImage() {
|
|
661
|
-
return this.getAttribute("background-image");
|
|
662
|
-
}
|
|
663
|
-
set backgroundImage(t) {
|
|
664
|
-
this.setAttribute("background-image", t);
|
|
665
|
-
}
|
|
666
|
-
get backgroundImageMobile() {
|
|
667
|
-
return this.getAttribute("background-image--mobile");
|
|
668
|
-
}
|
|
669
|
-
set backgroundImageMobile(t) {
|
|
670
|
-
this.setAttribute("background-image--mobile", t);
|
|
671
|
-
}
|
|
672
|
-
get backgroundImageTablet() {
|
|
673
|
-
return this.getAttribute("background-image--tablet");
|
|
674
|
-
}
|
|
675
|
-
set backgroundImageTablet(t) {
|
|
676
|
-
this.setAttribute("background-image--tablet", t);
|
|
677
|
-
}
|
|
678
|
-
get backgroundImageLaptop() {
|
|
679
|
-
return this.getAttribute("background-image--laptop");
|
|
680
|
-
}
|
|
681
|
-
set backgroundImageLaptop(t) {
|
|
682
|
-
this.setAttribute("background-image--laptop", t);
|
|
683
|
-
}
|
|
684
|
-
get backgroundSize() {
|
|
685
|
-
return this.getAttribute("background-size");
|
|
686
|
-
}
|
|
687
|
-
set backgroundSize(t) {
|
|
688
|
-
this.setAttribute("background-size", t);
|
|
689
|
-
}
|
|
690
|
-
get backgroundPosition() {
|
|
691
|
-
return this.getAttribute("background-position");
|
|
692
|
-
}
|
|
693
|
-
set backgroundPosition(t) {
|
|
694
|
-
this.setAttribute("background-position", t);
|
|
695
|
-
}
|
|
696
|
-
get boxShadow() {
|
|
697
|
-
return this.getAttribute("box-shadow");
|
|
698
|
-
}
|
|
699
|
-
set boxShadow(t) {
|
|
700
|
-
this.setAttribute("box-shadow", t);
|
|
701
|
-
}
|
|
702
|
-
get anchorOffset() {
|
|
703
|
-
return this.getAttribute("anchor-offset");
|
|
704
|
-
}
|
|
705
|
-
set anchorOffset(t) {
|
|
706
|
-
this.setAttribute("anchor-offset", t);
|
|
707
|
-
}
|
|
708
|
-
get anchorSpacing() {
|
|
709
|
-
return this.getAttribute("anchor-spacing");
|
|
710
|
-
}
|
|
711
|
-
set anchorSpacing(t) {
|
|
712
|
-
this.setAttribute("anchor-spacing", t);
|
|
713
|
-
}
|
|
714
|
-
get inverted() {
|
|
715
|
-
return this.hasAttribute("inverted");
|
|
716
|
-
}
|
|
717
|
-
set inverted(t) {
|
|
718
|
-
t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
|
|
719
|
-
}
|
|
720
|
-
get subgridRows() {
|
|
721
|
-
return this.getAttribute("subgrid-rows");
|
|
722
|
-
}
|
|
723
|
-
set subgridRows(t) {
|
|
724
|
-
this.setAttribute("subgrid-rows", t);
|
|
725
|
-
}
|
|
726
|
-
get subgridGap() {
|
|
727
|
-
return this.getAttribute("subgrid-gap");
|
|
728
|
-
}
|
|
729
|
-
set subgridGap(t) {
|
|
730
|
-
this.setAttribute("subgrid-gap", t);
|
|
731
|
-
}
|
|
732
|
-
get subgridGapMobile() {
|
|
733
|
-
return this.getAttribute("subgrid-gap--mobile");
|
|
734
|
-
}
|
|
735
|
-
set subgridGapMobile(t) {
|
|
736
|
-
this.setAttribute("subgrid-gap--mobile", t);
|
|
737
|
-
}
|
|
738
|
-
get subgridGapTablet() {
|
|
739
|
-
return this.getAttribute("subgrid-gap--tablet");
|
|
740
|
-
}
|
|
741
|
-
set subgridGapTablet(t) {
|
|
742
|
-
this.setAttribute("subgrid-gap--tablet", t);
|
|
743
|
-
}
|
|
744
|
-
get subgridGapLaptop() {
|
|
745
|
-
return this.getAttribute("subgrid-gap--laptop");
|
|
746
|
-
}
|
|
747
|
-
set subgridGapLaptop(t) {
|
|
748
|
-
this.setAttribute("subgrid-gap--laptop", t);
|
|
749
|
-
}
|
|
3
|
+
//#region src/contentheader.css?inline
|
|
4
|
+
var y = ":host{--min-height--mobile:15.625rem;--min-height--tablet:17.5rem;--min-height--laptop:17.5rem;--min-height--desktop:17.5rem}:host,:host>*{box-sizing:border-box;display:block}.content-header{z-index:0;position:relative}[min-height] .content-header-content{min-height:calc(var(--min-height--mobile) - (var(--px-spacing-l-mobile) * 2) )}.content-header-content{z-index:2;box-sizing:border-box;flex-direction:column;display:flex;position:relative}.content-header-content ::slotted([slot=patch]){margin-top:var(--px-spacing-l-mobile)}.contrast-helper{z-index:1;pointer-events:none;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){.content-header-content ::slotted([slot=patch]){flex-shrink:0}.content-header-content ::slotted([slot=patch]),.content-header-content ::slotted([slot=patch-description]){margin-top:var(--px-spacing-l-tablet)}[min-height] .content-header-content{min-height:calc(var(--min-height--tablet) - (var(--px-spacing-l-tablet) * 2))}}@media screen and (width>=64.0625rem){.content-header-content ::slotted([slot=patch]),.content-header-content ::slotted([slot=patch-description]){margin-top:var(--px-spacing-l-laptop)}[min-height] .content-header-content{min-height:calc(var(--min-height--laptop) - (var(--px-spacing-l-laptop) * 2))}}@media screen and (width>=90.0625rem){.content-header-content ::slotted([slot=patch]),.content-header-content ::slotted([slot=patch-description]){margin-top:var(--px-spacing-l-desktop)}[min-height] .content-header-content{min-height:calc(var(--min-height--desktop) - (var(--px-spacing-l-desktop) * 2))}}", b = ":host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media screen and (width>=77rem){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot=overlap]){margin-top:var(--px-overlapped-mobile)}@media screen and (width>=48rem){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot=overlap]){margin-top:var(--px-overlapped-desktop)}}@media screen and (width>=64.0625rem){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot=overlap]){margin-top:var(--px-overlapped-desktop)}}", x = ":host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-left-style:none;border-right-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-left-style:none;border-right-style:none}.border-side-left{border-top-style:none;border-bottom-style:none;border-right-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-position:50%;background-size:cover}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot=anchor-right]),::slotted([slot=anchor-left]),::slotted([slot=anchor-full]){position:absolute;top:0}::slotted([slot=anchor-right]),::slotted([slot=anchor-left]){z-index:3;transform:translateY(-50%)}::slotted([slot=anchor-right]){right:var(--container-anchor-offset--mobile,var(--container-padding-right,var(--container-padding-inline,var(--container-padding))))}::slotted([slot=anchor-left]){left:var(--container-anchor-offset--mobile,var(--container-padding-left,var(--container-padding-inline,var(--container-padding))))}::slotted([slot=anchor-full]){text-align:center;z-index:2;left:0;right:0;transform:translateY(-100%)}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--mobile)}.border-s ::slotted([slot=anchor-full]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot=anchor-full]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot=anchor-full]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}:host([subgrid-rows]){display:contents}:host([subgrid-rows]) .container{grid-template-rows:subgrid;grid-row:span var(--subgrid-rows);display:grid}:host([subgrid-rows]):host([grow]) .container{flex-grow:var(--grow-value)}:host([subgrid-rows]):host([shrink]) .container{flex-shrink:var(--shrink-value)}:host([subgrid-rows]):host([basis]) .container{flex-basis:var(--basis-value)}:host([subgrid-rows]):host([align-self]) .container{align-self:var(--align-self-value)}:host([subgrid-rows]):host([col-span]) .container{grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([subgrid-rows]):host([justify-self]) .container{justify-self:var(--justify-self-value)}:host([subgrid-rows]):host([order]) .container{order:var(--order-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--mobile)}@media screen and (width<=47.938rem){.container{background-color:var(--background-color--mobile,var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile,var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var(--background-gradient--mobile,var(--background-gradient))}:host([inverted]) .container{background-color:var(--background-color-inverted--mobile,var(--background-color-inverted))}.border-side-top--mobile{border-style:solid none none}.border-side-right--mobile{border-style:none solid none none}.border-side-bottom--mobile{border-style:none none solid}.border-side-left--mobile{border-style:none none none solid}.border-side-block--mobile{border-block-style:solid;border-inline-style:none}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}:host([subgrid-rows]):host([grow--mobile]) .container{flex-grow:var(--grow--mobile-value)}:host([subgrid-rows]):host([shrink--mobile]) .container{flex-shrink:var(--shrink--mobile-value)}:host([subgrid-rows]):host([basis--mobile]) .container{flex-basis:var(--basis--mobile-value)}:host([subgrid-rows]):host([align-self--mobile]) .container{align-self:var(--align-self--mobile-value)}:host([subgrid-rows]):host([col-span--mobile]) .container{grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)}:host([subgrid-rows]):host([justify-self--mobile]) .container{justify-self:var(--justify-self--mobile-value)}:host([subgrid-rows]):host([order--mobile]) .container{order:var(--order--mobile-value)}}@media screen and (width>=48rem) and (width<=64rem){.container{background-color:var(--background-color--tablet,var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet,var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var(--background-gradient--tablet,var(--background-gradient))}:host([inverted]) .container{background-color:var(--background-color-inverted--tablet,var(--background-color-inverted))}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-style:solid none none}.border-side-right--tablet{border-style:none solid none none}.border-side-bottom--tablet{border-style:none none solid}.border-side-left--tablet{border-style:none none none solid}.border-side-block--tablet{border-block-style:solid;border-inline-style:none}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot=anchor-right]){right:var(--container-anchor-offset--tablet,var(--container-padding-right,var(--container-padding-inline,var(--container-padding))))}::slotted([slot=anchor-left]){left:var(--container-anchor-offset--tablet,var(--container-padding-left,var(--container-padding-inline,var(--container-padding))))}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--tablet)}:host([subgrid-rows]):host([col-span--tablet]) .container{grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)}:host([subgrid-rows]):host([grow--tablet]) .container{flex-grow:var(--grow--tablet-value)}:host([subgrid-rows]):host([shrink--tablet]) .container{flex-shrink:var(--shrink--tablet-value)}:host([subgrid-rows]):host([basis--tablet]) .container{flex-basis:var(--basis--tablet-value)}:host([subgrid-rows]):host([align-self--tablet]) .container{align-self:var(--align-self--tablet-value)}:host([subgrid-rows]):host([justify-self--tablet]) .container{justify-self:var(--justify-self--tablet-value)}:host([subgrid-rows]):host([order--tablet]) .container{order:var(--order--tablet-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--tablet)}}@media screen and (width>=64.0625rem) and (width<=90rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}:host([subgrid-rows]):host([col-span--laptop]) .container{grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)}:host([subgrid-rows]):host([grow--laptop]) .container{flex-grow:var(--grow--laptop-value)}:host([subgrid-rows]):host([shrink--laptop]) .container{flex-shrink:var(--shrink--laptop-value)}:host([subgrid-rows]):host([basis--laptop]) .container{flex-basis:var(--basis--laptop-value)}:host([subgrid-rows]):host([align-self--laptop]) .container{align-self:var(--align-self--laptop-value)}:host([subgrid-rows]):host([justify-self--laptop]) .container{justify-self:var(--justify-self--laptop-value)}:host([subgrid-rows]):host([order--laptop]) .container{order:var(--order--laptop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--laptop)}}@media screen and (width>=64.0625rem){.container{background-color:var(--background-color--laptop,var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop,var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var(--background-gradient--laptop,var(--background-gradient))}:host([inverted]) .container{background-color:var(--background-color-inverted--laptop,var(--background-color-inverted))}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot=anchor-right]){right:var(--container-anchor-offset--laptop,var(--container-padding-right,var(--container-padding-inline,var(--container-padding))))}::slotted([slot=anchor-left]){left:var(--container-anchor-offset--laptop,var(--container-padding-left,var(--container-padding-inline,var(--container-padding))))}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}.border-side-top--laptop{border-style:solid none none}.border-side-right--laptop{border-style:none solid none none}.border-side-bottom--laptop{border-style:none none solid}.border-side-left--laptop{border-style:none none none solid}.border-side-block--laptop{border-block-style:solid;border-inline-style:none}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}@media screen and (width>=90.0625rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--desktop)}:host([subgrid-rows]):host([col-span--desktop]) .container{grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)}:host([subgrid-rows]):host([grow--desktop]) .container{flex-grow:var(--grow--desktop-value)}:host([subgrid-rows]):host([shrink--desktop]) .container{flex-shrink:var(--shrink--desktop-value)}:host([subgrid-rows]):host([basis--desktop]) .container{flex-basis:var(--basis--desktop-value)}:host([subgrid-rows]):host([align-self--desktop]) .container{align-self:var(--align-self--desktop-value)}:host([subgrid-rows]):host([justify-self--desktop]) .container{justify-self:var(--justify-self--desktop-value)}:host([subgrid-rows]):host([order--desktop]) .container{order:var(--order--desktop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--desktop)}}", S = new CSSStyleSheet();
|
|
5
|
+
S.replaceSync(x);
|
|
6
|
+
var C = [
|
|
7
|
+
"top-patch",
|
|
8
|
+
"top-neighbor-patch",
|
|
9
|
+
"top-ribbon",
|
|
10
|
+
"top-neighbor-ribbon",
|
|
11
|
+
"top-patch-and-neighbor-ribbon"
|
|
12
|
+
], w = [
|
|
13
|
+
"1",
|
|
14
|
+
"2",
|
|
15
|
+
"3",
|
|
16
|
+
"4",
|
|
17
|
+
"5",
|
|
18
|
+
"6",
|
|
19
|
+
"7",
|
|
20
|
+
"8",
|
|
21
|
+
"9",
|
|
22
|
+
"10",
|
|
23
|
+
"11",
|
|
24
|
+
"12"
|
|
25
|
+
], T = (e, t, n) => `:host([${e}${n ? `--${n}` : ""}='${t}']) .container`, E = "px-padding", D = [
|
|
26
|
+
f("padding", T, _, E, "--container-padding"),
|
|
27
|
+
f("padding-inline", T, _, E),
|
|
28
|
+
f("padding-block", T, _, E),
|
|
29
|
+
f("padding-top", T, _, E),
|
|
30
|
+
f("padding-right", T, _, E, "--container-padding-right"),
|
|
31
|
+
f("padding-bottom", T, _, E),
|
|
32
|
+
f("padding-left", T, _, E, "--container-padding-left"),
|
|
33
|
+
f("gap", T, p, "px-spacing", void 0, "subgrid-gap")
|
|
34
|
+
], O = class extends n {
|
|
35
|
+
static {
|
|
36
|
+
this.nativeName = "div";
|
|
37
|
+
}
|
|
38
|
+
constructor() {
|
|
39
|
+
super(S, ...D), this.template = () => "<div class=\"container\">\n <slot></slot>\n <slot name=\"anchor-left\"></slot>\n <slot name=\"anchor-right\"></slot>\n <slot name=\"anchor-full\"></slot>\n </div>", this._bgObserver = null, this._isInViewport = !1, this.contentObserver = null, this.shadowRoot.innerHTML = this.template();
|
|
40
|
+
}
|
|
41
|
+
static get observedAttributes() {
|
|
42
|
+
return [
|
|
43
|
+
...super.observedAttributes,
|
|
44
|
+
"border",
|
|
45
|
+
"border-color",
|
|
46
|
+
"border-side",
|
|
47
|
+
"border-side--mobile",
|
|
48
|
+
"border-side--tablet",
|
|
49
|
+
"border-side--laptop",
|
|
50
|
+
"border-radius",
|
|
51
|
+
"no-border-radius",
|
|
52
|
+
"no-border-radius--mobile",
|
|
53
|
+
"no-border-radius--tablet",
|
|
54
|
+
"no-border-radius--laptop",
|
|
55
|
+
"background-color",
|
|
56
|
+
"background-color--mobile",
|
|
57
|
+
"background-color--tablet",
|
|
58
|
+
"background-color--laptop",
|
|
59
|
+
"background-gradient",
|
|
60
|
+
"background-gradient--mobile",
|
|
61
|
+
"background-gradient--tablet",
|
|
62
|
+
"background-gradient--laptop",
|
|
63
|
+
"background-image",
|
|
64
|
+
"background-image--mobile",
|
|
65
|
+
"background-image--tablet",
|
|
66
|
+
"background-image--laptop",
|
|
67
|
+
"background-size",
|
|
68
|
+
"background-position",
|
|
69
|
+
"box-shadow",
|
|
70
|
+
"anchor-offset",
|
|
71
|
+
"anchor-spacing",
|
|
72
|
+
"inverted",
|
|
73
|
+
"subgrid-rows"
|
|
74
|
+
];
|
|
75
|
+
}
|
|
76
|
+
connectedCallback() {
|
|
77
|
+
this.padding ||= "m", this.backgroundColor ||= "surface-light", this.borderColor ||= "main", this.$slotAnchor && this.addAnchorClass(), this.contentObserver = new MutationObserver(() => {
|
|
78
|
+
this.$slotAnchor && this.addAnchorClass();
|
|
79
|
+
}), this.contentObserver.observe(this, {
|
|
80
|
+
childList: !0,
|
|
81
|
+
subtree: !0,
|
|
82
|
+
characterData: !0
|
|
83
|
+
}), this._bgObserver = new IntersectionObserver((e) => {
|
|
84
|
+
e.forEach((e) => {
|
|
85
|
+
e.isIntersecting && (this._isInViewport = !0, this._loadBackgroundImages(), this._bgObserver?.disconnect());
|
|
86
|
+
});
|
|
87
|
+
}), this._bgObserver.observe(this.$el);
|
|
88
|
+
}
|
|
89
|
+
disconnectedCallback() {
|
|
90
|
+
this._bgObserver?.disconnect(), this.contentObserver?.disconnect();
|
|
91
|
+
}
|
|
92
|
+
attributeChangedCallback(e, t, n) {
|
|
93
|
+
if (t !== n) switch (e) {
|
|
94
|
+
case "border":
|
|
95
|
+
this.updateAttribute(e, t, n, l);
|
|
96
|
+
break;
|
|
97
|
+
case "border-color":
|
|
98
|
+
this.updateBorderColor(e, n);
|
|
99
|
+
break;
|
|
100
|
+
case "border-side":
|
|
101
|
+
case "border-side--mobile":
|
|
102
|
+
case "border-side--tablet":
|
|
103
|
+
case "border-side--laptop":
|
|
104
|
+
this.updateAttribute(e, t, n, c);
|
|
105
|
+
break;
|
|
106
|
+
case "border-radius":
|
|
107
|
+
this.updateAttribute(e, t, n, s);
|
|
108
|
+
break;
|
|
109
|
+
case "no-border-radius":
|
|
110
|
+
case "no-border-radius--mobile":
|
|
111
|
+
case "no-border-radius--tablet":
|
|
112
|
+
case "no-border-radius--laptop":
|
|
113
|
+
this.updateNoBorderRadius(e, t, n, g);
|
|
114
|
+
break;
|
|
115
|
+
case "background-color":
|
|
116
|
+
case "background-color--mobile":
|
|
117
|
+
case "background-color--tablet":
|
|
118
|
+
case "background-color--laptop":
|
|
119
|
+
this.updateBackgroundColor(e, n);
|
|
120
|
+
break;
|
|
121
|
+
case "background-gradient":
|
|
122
|
+
case "background-gradient--mobile":
|
|
123
|
+
case "background-gradient--tablet":
|
|
124
|
+
case "background-gradient--laptop":
|
|
125
|
+
this.updateGradient(e, n);
|
|
126
|
+
break;
|
|
127
|
+
case "background-size":
|
|
128
|
+
this.updateAttribute(e, t, n, i);
|
|
129
|
+
break;
|
|
130
|
+
case "background-image":
|
|
131
|
+
case "background-image--mobile":
|
|
132
|
+
case "background-image--tablet":
|
|
133
|
+
case "background-image--laptop":
|
|
134
|
+
this._isInViewport && this.updateBackgroundImg(e, n);
|
|
135
|
+
break;
|
|
136
|
+
case "background-position":
|
|
137
|
+
n !== null && n !== "" && (this.$el.style.backgroundPosition = n);
|
|
138
|
+
break;
|
|
139
|
+
case "box-shadow":
|
|
140
|
+
this.updateAttribute(e, t, n, u);
|
|
141
|
+
break;
|
|
142
|
+
case "anchor-offset":
|
|
143
|
+
this.updateAnchorOffset(t, n, _);
|
|
144
|
+
break;
|
|
145
|
+
case "anchor-spacing":
|
|
146
|
+
this.updateAnchorSpacing(t, n, C);
|
|
147
|
+
break;
|
|
148
|
+
case "subgrid-rows":
|
|
149
|
+
this.updateSubgridRows(e, t, n, w);
|
|
150
|
+
break;
|
|
151
|
+
default: super.attributeChangedCallback(e, t, n);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
_loadBackgroundImages() {
|
|
155
|
+
[
|
|
156
|
+
"background-image",
|
|
157
|
+
"background-image--mobile",
|
|
158
|
+
"background-image--tablet",
|
|
159
|
+
"background-image--laptop"
|
|
160
|
+
].forEach((e) => {
|
|
161
|
+
let t = this.getAttribute(e);
|
|
162
|
+
t && this.updateBackgroundImg(e, t);
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
updateBackgroundImg(e, t) {
|
|
166
|
+
this.$el.style.setProperty(`--${e}`, `url("${t}")`);
|
|
167
|
+
}
|
|
168
|
+
updateGradient(e, t) {
|
|
169
|
+
if (this.checkName(m, t)) {
|
|
170
|
+
let n = this.splitAttrNameFromBreakpoint(e);
|
|
171
|
+
e = n.attrName;
|
|
172
|
+
let r = n.breakpoint;
|
|
173
|
+
this.$el.style.setProperty(`--${e}${r}`, `linear-gradient(var(--px-color-background-gradient-${t}))`);
|
|
174
|
+
} else h(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${m.join("\", \"")}".`);
|
|
175
|
+
}
|
|
176
|
+
updateBackgroundColor(e, t) {
|
|
177
|
+
let n = t.startsWith("surface-");
|
|
178
|
+
if (this.checkName(r, t)) {
|
|
179
|
+
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
180
|
+
this.$el.style.setProperty(`--${r.attrName}${i}`, `var(--px-color-background-${t}${n ? "" : "-default"})`), this.$el.style.setProperty(`--${r.attrName}-inverted${i}`, `var(--px-color-background-${t}${n ? "" : "-inverted"})`);
|
|
181
|
+
} else h(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
182
|
+
}
|
|
183
|
+
updateBorderColor(e, t) {
|
|
184
|
+
this.checkName(o, t) ? (this.$el.style.setProperty(`--${e}`, `var(--px-color-border-${t}-default)`), this.$el.style.setProperty(`--${e}-inverted`, `var(--px-color-border-${t}-inverted)`)) : h(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join("\", \"")}".`);
|
|
185
|
+
}
|
|
186
|
+
updateNoBorderRadius(e, t, n, r) {
|
|
187
|
+
if (!this.checkName(r, n)) h(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
188
|
+
else {
|
|
189
|
+
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
190
|
+
t !== null && t !== "" && this.$el.classList.toggle(`${r.attrName}-${t}${i}`), n !== null && n !== "" && this.$el.classList.toggle(`${r.attrName}-${n}${i}`);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
updateAttribute(e, t, n, r) {
|
|
194
|
+
if (!this.checkName(r, n)) h(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
195
|
+
else {
|
|
196
|
+
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
197
|
+
t !== null && t !== "" && this.$el.classList.toggle(`${r.attrName}-${t}${i}`), n !== null && n !== "" && this.$el.classList.toggle(`${r.attrName}-${n}${i}`);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
splitAttrNameFromBreakpoint(e) {
|
|
201
|
+
let t = "";
|
|
202
|
+
if ([
|
|
203
|
+
"--mobile",
|
|
204
|
+
"--tablet",
|
|
205
|
+
"--laptop"
|
|
206
|
+
].some((t) => e.includes(t))) {
|
|
207
|
+
let n = e.split("--");
|
|
208
|
+
e = n[0], t = `--${n[1]}`;
|
|
209
|
+
}
|
|
210
|
+
return {
|
|
211
|
+
attrName: e,
|
|
212
|
+
breakpoint: t
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
updateAnchorOffset(e, t, n) {
|
|
216
|
+
if (!d(n, t)) {
|
|
217
|
+
h(`"${t}" is not a valid anchor-offset value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
let r = (e) => {
|
|
221
|
+
e !== null && e !== "" && e !== "default" && (this.$el.style.setProperty("--container-anchor-offset--mobile", `var(--px-padding-${e}-mobile)`), this.$el.style.setProperty("--container-anchor-offset--tablet", `var(--px-padding-${e}-tablet)`), this.$el.style.setProperty("--container-anchor-offset--laptop", `var(--px-padding-${e}-laptop)`));
|
|
222
|
+
};
|
|
223
|
+
r(e), r(t);
|
|
224
|
+
}
|
|
225
|
+
addAnchorClass() {
|
|
226
|
+
this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
|
|
227
|
+
}
|
|
228
|
+
updateAnchorSpacing(e, t, n) {
|
|
229
|
+
if (!d(n, t)) {
|
|
230
|
+
h(`"${t}" is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
let r = (e) => {
|
|
234
|
+
e !== null && e !== "" && e !== "default" && (this.style.setProperty("--container-anchor-spacing--mobile", `var(--px-spacing-${e}-mobile)`), this.style.setProperty("--container-anchor-spacing--tablet", `var(--px-spacing-${e}-tablet)`), this.style.setProperty("--container-anchor-spacing--laptop", `var(--px-spacing-${e}-laptop)`), this.style.setProperty("--container-anchor-spacing--desktop", `var(--px-spacing-${e}-desktop)`));
|
|
235
|
+
};
|
|
236
|
+
r(e), r(t);
|
|
237
|
+
}
|
|
238
|
+
updateSubgridRows(e, t, n, r) {
|
|
239
|
+
d(r, n) ? this.style.setProperty(`--${e}`, n) : h(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
240
|
+
}
|
|
241
|
+
get $el() {
|
|
242
|
+
return this?.shadowRoot?.querySelector(".container");
|
|
243
|
+
}
|
|
244
|
+
get $slotAnchor() {
|
|
245
|
+
return this.querySelector("[slot^=\"anchor\"]");
|
|
246
|
+
}
|
|
247
|
+
get padding() {
|
|
248
|
+
return this.getAttribute("padding");
|
|
249
|
+
}
|
|
250
|
+
set padding(e) {
|
|
251
|
+
v(this, "padding", e);
|
|
252
|
+
}
|
|
253
|
+
get paddingBlock() {
|
|
254
|
+
return this.getAttribute("padding-block");
|
|
255
|
+
}
|
|
256
|
+
set paddingBlock(e) {
|
|
257
|
+
v(this, "padding-block", e);
|
|
258
|
+
}
|
|
259
|
+
get paddingInline() {
|
|
260
|
+
return this.getAttribute("padding-inline");
|
|
261
|
+
}
|
|
262
|
+
set paddingInline(e) {
|
|
263
|
+
v(this, "padding-inline", e);
|
|
264
|
+
}
|
|
265
|
+
get paddingTop() {
|
|
266
|
+
return this.getAttribute("padding-top");
|
|
267
|
+
}
|
|
268
|
+
set paddingTop(e) {
|
|
269
|
+
v(this, "padding-top", e);
|
|
270
|
+
}
|
|
271
|
+
get paddingRight() {
|
|
272
|
+
return this.getAttribute("padding-right");
|
|
273
|
+
}
|
|
274
|
+
set paddingRight(e) {
|
|
275
|
+
v(this, "padding-right", e);
|
|
276
|
+
}
|
|
277
|
+
get paddingBottom() {
|
|
278
|
+
return this.getAttribute("padding-bottom");
|
|
279
|
+
}
|
|
280
|
+
set paddingBottom(e) {
|
|
281
|
+
v(this, "padding-bottom", e);
|
|
282
|
+
}
|
|
283
|
+
get paddingLeft() {
|
|
284
|
+
return this.getAttribute("padding-left");
|
|
285
|
+
}
|
|
286
|
+
set paddingLeft(e) {
|
|
287
|
+
v(this, "padding-left", e);
|
|
288
|
+
}
|
|
289
|
+
get paddingMobile() {
|
|
290
|
+
return this.getAttribute("padding--mobile");
|
|
291
|
+
}
|
|
292
|
+
set paddingMobile(e) {
|
|
293
|
+
v(this, "padding--mobile", e);
|
|
294
|
+
}
|
|
295
|
+
get paddingBlockMobile() {
|
|
296
|
+
return this.getAttribute("padding-block--mobile");
|
|
297
|
+
}
|
|
298
|
+
set paddingBlockMobile(e) {
|
|
299
|
+
v(this, "padding-block--mobile", e);
|
|
300
|
+
}
|
|
301
|
+
get paddingInlineMobile() {
|
|
302
|
+
return this.getAttribute("padding-inline--mobile");
|
|
303
|
+
}
|
|
304
|
+
set paddingInlineMobile(e) {
|
|
305
|
+
v(this, "padding-inline--mobile", e);
|
|
306
|
+
}
|
|
307
|
+
get paddingTopMobile() {
|
|
308
|
+
return this.getAttribute("padding-top--mobile");
|
|
309
|
+
}
|
|
310
|
+
set paddingTopMobile(e) {
|
|
311
|
+
v(this, "padding-top--mobile", e);
|
|
312
|
+
}
|
|
313
|
+
get paddingRightMobile() {
|
|
314
|
+
return this.getAttribute("padding-right--mobile");
|
|
315
|
+
}
|
|
316
|
+
set paddingRightMobile(e) {
|
|
317
|
+
v(this, "padding-right--mobile", e);
|
|
318
|
+
}
|
|
319
|
+
get paddingBottomMobile() {
|
|
320
|
+
return this.getAttribute("padding-bottom--mobile");
|
|
321
|
+
}
|
|
322
|
+
set paddingBottomMobile(e) {
|
|
323
|
+
v(this, "padding-bottom--mobile", e);
|
|
324
|
+
}
|
|
325
|
+
get paddingLeftMobile() {
|
|
326
|
+
return this.getAttribute("padding-left--mobile");
|
|
327
|
+
}
|
|
328
|
+
set paddingLeftMobile(e) {
|
|
329
|
+
v(this, "padding-left--mobile", e);
|
|
330
|
+
}
|
|
331
|
+
get paddingTablet() {
|
|
332
|
+
return this.getAttribute("padding--tablet");
|
|
333
|
+
}
|
|
334
|
+
set paddingTablet(e) {
|
|
335
|
+
v(this, "padding--tablet", e);
|
|
336
|
+
}
|
|
337
|
+
get paddingBlockTablet() {
|
|
338
|
+
return this.getAttribute("padding-block--tablet");
|
|
339
|
+
}
|
|
340
|
+
set paddingBlockTablet(e) {
|
|
341
|
+
v(this, "padding-block--tablet", e);
|
|
342
|
+
}
|
|
343
|
+
get paddingInlineTablet() {
|
|
344
|
+
return this.getAttribute("padding-inline--tablet");
|
|
345
|
+
}
|
|
346
|
+
set paddingInlineTablet(e) {
|
|
347
|
+
v(this, "padding-inline--tablet", e);
|
|
348
|
+
}
|
|
349
|
+
get paddingTopTablet() {
|
|
350
|
+
return this.getAttribute("padding-top--tablet");
|
|
351
|
+
}
|
|
352
|
+
set paddingTopTablet(e) {
|
|
353
|
+
v(this, "padding-top--tablet", e);
|
|
354
|
+
}
|
|
355
|
+
get paddingRightTablet() {
|
|
356
|
+
return this.getAttribute("padding-right--tablet");
|
|
357
|
+
}
|
|
358
|
+
set paddingRightTablet(e) {
|
|
359
|
+
v(this, "padding-right--tablet", e);
|
|
360
|
+
}
|
|
361
|
+
get paddingBottomTablet() {
|
|
362
|
+
return this.getAttribute("padding-bottom--tablet");
|
|
363
|
+
}
|
|
364
|
+
set paddingBottomTablet(e) {
|
|
365
|
+
v(this, "padding-bottom--tablet", e);
|
|
366
|
+
}
|
|
367
|
+
get paddingLeftTablet() {
|
|
368
|
+
return this.getAttribute("padding-left--tablet");
|
|
369
|
+
}
|
|
370
|
+
set paddingLeftTablet(e) {
|
|
371
|
+
v(this, "padding-left--tablet", e);
|
|
372
|
+
}
|
|
373
|
+
get paddingLaptop() {
|
|
374
|
+
return this.getAttribute("padding--laptop");
|
|
375
|
+
}
|
|
376
|
+
set paddingLaptop(e) {
|
|
377
|
+
v(this, "padding--laptop", e);
|
|
378
|
+
}
|
|
379
|
+
get paddingBlockLaptop() {
|
|
380
|
+
return this.getAttribute("padding-block--laptop");
|
|
381
|
+
}
|
|
382
|
+
set paddingBlockLaptop(e) {
|
|
383
|
+
v(this, "padding-block--laptop", e);
|
|
384
|
+
}
|
|
385
|
+
get paddingInlineLaptop() {
|
|
386
|
+
return this.getAttribute("padding-inline--laptop");
|
|
387
|
+
}
|
|
388
|
+
set paddingInlineLaptop(e) {
|
|
389
|
+
v(this, "padding-inline--laptop", e);
|
|
390
|
+
}
|
|
391
|
+
get paddingTopLaptop() {
|
|
392
|
+
return this.getAttribute("padding-top--laptop");
|
|
393
|
+
}
|
|
394
|
+
set paddingTopLaptop(e) {
|
|
395
|
+
v(this, "padding-top--laptop", e);
|
|
396
|
+
}
|
|
397
|
+
get paddingRightLaptop() {
|
|
398
|
+
return this.getAttribute("padding-right--laptop");
|
|
399
|
+
}
|
|
400
|
+
set paddingRightLaptop(e) {
|
|
401
|
+
v(this, "padding-right--laptop", e);
|
|
402
|
+
}
|
|
403
|
+
get paddingBottomLaptop() {
|
|
404
|
+
return this.getAttribute("padding-bottom--laptop");
|
|
405
|
+
}
|
|
406
|
+
set paddingBottomLaptop(e) {
|
|
407
|
+
v(this, "padding-bottom--laptop", e);
|
|
408
|
+
}
|
|
409
|
+
get paddingLeftLaptop() {
|
|
410
|
+
return this.getAttribute("padding-left--laptop");
|
|
411
|
+
}
|
|
412
|
+
set paddingLeftLaptop(e) {
|
|
413
|
+
v(this, "padding-left--laptop", e);
|
|
414
|
+
}
|
|
415
|
+
get border() {
|
|
416
|
+
return this.getAttribute("border");
|
|
417
|
+
}
|
|
418
|
+
set border(e) {
|
|
419
|
+
v(this, "border", e);
|
|
420
|
+
}
|
|
421
|
+
get borderColor() {
|
|
422
|
+
return this.getAttribute("border-color");
|
|
423
|
+
}
|
|
424
|
+
set borderColor(e) {
|
|
425
|
+
v(this, "border-color", e);
|
|
426
|
+
}
|
|
427
|
+
get borderSide() {
|
|
428
|
+
return this.getAttribute("border-side");
|
|
429
|
+
}
|
|
430
|
+
set borderSide(e) {
|
|
431
|
+
v(this, "border-side", e);
|
|
432
|
+
}
|
|
433
|
+
get borderSideMobile() {
|
|
434
|
+
return this.getAttribute("border-side--mobile");
|
|
435
|
+
}
|
|
436
|
+
set borderSideMobile(e) {
|
|
437
|
+
v(this, "border-side--mobile", e);
|
|
438
|
+
}
|
|
439
|
+
get borderSideTablet() {
|
|
440
|
+
return this.getAttribute("border-side--tablet");
|
|
441
|
+
}
|
|
442
|
+
set borderSideTablet(e) {
|
|
443
|
+
v(this, "border-side--tablet", e);
|
|
444
|
+
}
|
|
445
|
+
get borderSideLaptop() {
|
|
446
|
+
return this.getAttribute("border-side--laptop");
|
|
447
|
+
}
|
|
448
|
+
set borderSideLaptop(e) {
|
|
449
|
+
v(this, "border-side--laptop", e);
|
|
450
|
+
}
|
|
451
|
+
get borderRadius() {
|
|
452
|
+
return this.getAttribute("border-radius");
|
|
453
|
+
}
|
|
454
|
+
set borderRadius(e) {
|
|
455
|
+
v(this, "border-radius", e);
|
|
456
|
+
}
|
|
457
|
+
get noBorderRadius() {
|
|
458
|
+
return this.getAttribute("no-border-radius");
|
|
459
|
+
}
|
|
460
|
+
set noBorderRadius(e) {
|
|
461
|
+
v(this, "no-border-radius", e);
|
|
462
|
+
}
|
|
463
|
+
get noBorderRadiusMobile() {
|
|
464
|
+
return this.getAttribute("no-border-radius--mobile");
|
|
465
|
+
}
|
|
466
|
+
set noBorderRadiusMobile(e) {
|
|
467
|
+
v(this, "no-border-radius--mobile", e);
|
|
468
|
+
}
|
|
469
|
+
get noBorderRadiusTablet() {
|
|
470
|
+
return this.getAttribute("no-border-radius--tablet");
|
|
471
|
+
}
|
|
472
|
+
set noBorderRadiusTablet(e) {
|
|
473
|
+
v(this, "no-border-radius--tablet", e);
|
|
474
|
+
}
|
|
475
|
+
get noBorderRadiusLaptop() {
|
|
476
|
+
return this.getAttribute("no-border-radius--laptop");
|
|
477
|
+
}
|
|
478
|
+
set noBorderRadiusLaptop(e) {
|
|
479
|
+
v(this, "no-border-radius--laptop", e);
|
|
480
|
+
}
|
|
481
|
+
get backgroundColor() {
|
|
482
|
+
return this.getAttribute("background-color");
|
|
483
|
+
}
|
|
484
|
+
set backgroundColor(e) {
|
|
485
|
+
v(this, "background-color", e);
|
|
486
|
+
}
|
|
487
|
+
get backgroundColorMobile() {
|
|
488
|
+
return this.getAttribute("background-color--mobile");
|
|
489
|
+
}
|
|
490
|
+
set backgroundColorMobile(e) {
|
|
491
|
+
v(this, "background-color--mobile", e);
|
|
492
|
+
}
|
|
493
|
+
get backgroundColorTablet() {
|
|
494
|
+
return this.getAttribute("background-color--tablet");
|
|
495
|
+
}
|
|
496
|
+
set backgroundColorTablet(e) {
|
|
497
|
+
v(this, "background-color--tablet", e);
|
|
498
|
+
}
|
|
499
|
+
get backgroundColorLaptop() {
|
|
500
|
+
return this.getAttribute("background-color--laptop");
|
|
501
|
+
}
|
|
502
|
+
set backgroundColorLaptop(e) {
|
|
503
|
+
v(this, "background-color--laptop", e);
|
|
504
|
+
}
|
|
505
|
+
get gradient() {
|
|
506
|
+
return this.getAttribute("background-gradient");
|
|
507
|
+
}
|
|
508
|
+
set gradient(e) {
|
|
509
|
+
v(this, "background-gradient", e);
|
|
510
|
+
}
|
|
511
|
+
get gradientMobile() {
|
|
512
|
+
return this.getAttribute("background-gradient--mobile");
|
|
513
|
+
}
|
|
514
|
+
set gradientMobile(e) {
|
|
515
|
+
v(this, "background-gradient--mobile", e);
|
|
516
|
+
}
|
|
517
|
+
get gradientTablet() {
|
|
518
|
+
return this.getAttribute("background-gradient--tablet");
|
|
519
|
+
}
|
|
520
|
+
set gradientTablet(e) {
|
|
521
|
+
v(this, "background-gradient--tablet", e);
|
|
522
|
+
}
|
|
523
|
+
get gradientLaptop() {
|
|
524
|
+
return this.getAttribute("background-gradient--laptop");
|
|
525
|
+
}
|
|
526
|
+
set gradientLaptop(e) {
|
|
527
|
+
v(this, "background-gradient--laptop", e);
|
|
528
|
+
}
|
|
529
|
+
get backgroundImage() {
|
|
530
|
+
return this.getAttribute("background-image");
|
|
531
|
+
}
|
|
532
|
+
set backgroundImage(e) {
|
|
533
|
+
v(this, "background-image", e);
|
|
534
|
+
}
|
|
535
|
+
get backgroundImageMobile() {
|
|
536
|
+
return this.getAttribute("background-image--mobile");
|
|
537
|
+
}
|
|
538
|
+
set backgroundImageMobile(e) {
|
|
539
|
+
v(this, "background-image--mobile", e);
|
|
540
|
+
}
|
|
541
|
+
get backgroundImageTablet() {
|
|
542
|
+
return this.getAttribute("background-image--tablet");
|
|
543
|
+
}
|
|
544
|
+
set backgroundImageTablet(e) {
|
|
545
|
+
v(this, "background-image--tablet", e);
|
|
546
|
+
}
|
|
547
|
+
get backgroundImageLaptop() {
|
|
548
|
+
return this.getAttribute("background-image--laptop");
|
|
549
|
+
}
|
|
550
|
+
set backgroundImageLaptop(e) {
|
|
551
|
+
v(this, "background-image--laptop", e);
|
|
552
|
+
}
|
|
553
|
+
get backgroundSize() {
|
|
554
|
+
return this.getAttribute("background-size");
|
|
555
|
+
}
|
|
556
|
+
set backgroundSize(e) {
|
|
557
|
+
v(this, "background-size", e);
|
|
558
|
+
}
|
|
559
|
+
get backgroundPosition() {
|
|
560
|
+
return this.getAttribute("background-position");
|
|
561
|
+
}
|
|
562
|
+
set backgroundPosition(e) {
|
|
563
|
+
v(this, "background-position", e);
|
|
564
|
+
}
|
|
565
|
+
get boxShadow() {
|
|
566
|
+
return this.getAttribute("box-shadow");
|
|
567
|
+
}
|
|
568
|
+
set boxShadow(e) {
|
|
569
|
+
v(this, "box-shadow", e);
|
|
570
|
+
}
|
|
571
|
+
get anchorOffset() {
|
|
572
|
+
return this.getAttribute("anchor-offset");
|
|
573
|
+
}
|
|
574
|
+
set anchorOffset(e) {
|
|
575
|
+
v(this, "anchor-offset", e);
|
|
576
|
+
}
|
|
577
|
+
get anchorSpacing() {
|
|
578
|
+
return this.getAttribute("anchor-spacing");
|
|
579
|
+
}
|
|
580
|
+
set anchorSpacing(e) {
|
|
581
|
+
v(this, "anchor-spacing", e);
|
|
582
|
+
}
|
|
583
|
+
get inverted() {
|
|
584
|
+
return this.hasAttribute("inverted");
|
|
585
|
+
}
|
|
586
|
+
set inverted(e) {
|
|
587
|
+
a(this, "inverted", e);
|
|
588
|
+
}
|
|
589
|
+
get subgridRows() {
|
|
590
|
+
return this.getAttribute("subgrid-rows");
|
|
591
|
+
}
|
|
592
|
+
set subgridRows(e) {
|
|
593
|
+
v(this, "subgrid-rows", e);
|
|
594
|
+
}
|
|
595
|
+
get subgridGap() {
|
|
596
|
+
return this.getAttribute("subgrid-gap");
|
|
597
|
+
}
|
|
598
|
+
set subgridGap(e) {
|
|
599
|
+
v(this, "subgrid-gap", e);
|
|
600
|
+
}
|
|
601
|
+
get subgridGapMobile() {
|
|
602
|
+
return this.getAttribute("subgrid-gap--mobile");
|
|
603
|
+
}
|
|
604
|
+
set subgridGapMobile(e) {
|
|
605
|
+
v(this, "subgrid-gap--mobile", e);
|
|
606
|
+
}
|
|
607
|
+
get subgridGapTablet() {
|
|
608
|
+
return this.getAttribute("subgrid-gap--tablet");
|
|
609
|
+
}
|
|
610
|
+
set subgridGapTablet(e) {
|
|
611
|
+
v(this, "subgrid-gap--tablet", e);
|
|
612
|
+
}
|
|
613
|
+
get subgridGapLaptop() {
|
|
614
|
+
return this.getAttribute("subgrid-gap--laptop");
|
|
615
|
+
}
|
|
616
|
+
set subgridGapLaptop(e) {
|
|
617
|
+
v(this, "subgrid-gap--laptop", e);
|
|
618
|
+
}
|
|
750
619
|
};
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
],
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
],
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
],
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
this.isZeroSized !== i && (this.isZeroSized = i, this.updateParticipation());
|
|
1166
|
-
}
|
|
1167
|
-
updateParticipation() {
|
|
1168
|
-
this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
|
|
1169
|
-
}
|
|
1170
|
-
get nogap() {
|
|
1171
|
-
return this.hasAttribute("nogap");
|
|
1172
|
-
}
|
|
1173
|
-
set nogap(t) {
|
|
1174
|
-
t ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
1175
|
-
}
|
|
1176
|
-
}
|
|
1177
|
-
customElements.get("px-spacer") || customElements.define("px-spacer", et);
|
|
1178
|
-
const it = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", M = new CSSStyleSheet();
|
|
1179
|
-
M.replaceSync(it);
|
|
1180
|
-
class ot extends m {
|
|
1181
|
-
constructor() {
|
|
1182
|
-
super(M), this.template = (t) => `
|
|
620
|
+
customElements.get("px-container") || customElements.define("px-container", O);
|
|
621
|
+
//#endregion
|
|
622
|
+
//#region ../Layout/src/Stack.css?inline
|
|
623
|
+
var k = ":host{display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);width:100%;height:100%;overflow-x:var(--overflow-x-all);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop,var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}", A = new CSSStyleSheet();
|
|
624
|
+
A.replaceSync(k);
|
|
625
|
+
var j = [
|
|
626
|
+
"",
|
|
627
|
+
"default",
|
|
628
|
+
"row",
|
|
629
|
+
"row-reverse",
|
|
630
|
+
"column",
|
|
631
|
+
"column-reverse"
|
|
632
|
+
], M = [
|
|
633
|
+
"",
|
|
634
|
+
"default",
|
|
635
|
+
"stretch",
|
|
636
|
+
"flex-start",
|
|
637
|
+
"start",
|
|
638
|
+
"flex-end",
|
|
639
|
+
"end",
|
|
640
|
+
"center",
|
|
641
|
+
"baseline"
|
|
642
|
+
], N = [
|
|
643
|
+
"",
|
|
644
|
+
"default",
|
|
645
|
+
"flex-start",
|
|
646
|
+
"start",
|
|
647
|
+
"flex-end",
|
|
648
|
+
"end",
|
|
649
|
+
"center",
|
|
650
|
+
"space-between",
|
|
651
|
+
"space-around",
|
|
652
|
+
"space-evenly"
|
|
653
|
+
], P = [
|
|
654
|
+
"",
|
|
655
|
+
"default",
|
|
656
|
+
"nowrap",
|
|
657
|
+
"wrap",
|
|
658
|
+
"wrap-reverse"
|
|
659
|
+
], F = [
|
|
660
|
+
"",
|
|
661
|
+
"visible",
|
|
662
|
+
"hidden",
|
|
663
|
+
"scroll",
|
|
664
|
+
"auto"
|
|
665
|
+
], I = class extends n {
|
|
666
|
+
constructor() {
|
|
667
|
+
super(A), this.overflowXAttributeDelegate = new e(this, "overflow-x", (e) => e, "--overflow-x"), this.template = "<div class=\"flex-container\">\n <slot></slot>\n </div>", this.shadowRoot.innerHTML = this.template;
|
|
668
|
+
}
|
|
669
|
+
connectedCallback() {
|
|
670
|
+
this.hasAttribute("direction") || (this.direction = "row"), this.hasAttribute("gap") || (this.gap = "none"), this.hasAttribute("align-items") || (this.alignItems = "stretch"), this.hasAttribute("justify-content") || (this.justifyContent = "flex-start"), this.hasAttribute("wrap") || (this.wrap = "nowrap"), this.hasAttribute("overflow-x") || this.overflowXAttributeDelegate.init("visible");
|
|
671
|
+
}
|
|
672
|
+
static get observedAttributes() {
|
|
673
|
+
return [
|
|
674
|
+
...super.observedAttributes,
|
|
675
|
+
"direction",
|
|
676
|
+
"direction--mobile",
|
|
677
|
+
"direction--tablet",
|
|
678
|
+
"direction--laptop",
|
|
679
|
+
"direction--desktop",
|
|
680
|
+
"gap",
|
|
681
|
+
"gap--mobile",
|
|
682
|
+
"gap--tablet",
|
|
683
|
+
"gap--laptop",
|
|
684
|
+
"gap--desktop",
|
|
685
|
+
"justify-content",
|
|
686
|
+
"justify-content--mobile",
|
|
687
|
+
"justify-content--tablet",
|
|
688
|
+
"justify-content--laptop",
|
|
689
|
+
"justify-content--desktop",
|
|
690
|
+
"align-items",
|
|
691
|
+
"align-items--mobile",
|
|
692
|
+
"align-items--tablet",
|
|
693
|
+
"align-items--laptop",
|
|
694
|
+
"align-items--desktop",
|
|
695
|
+
"wrap",
|
|
696
|
+
"wrap--mobile",
|
|
697
|
+
"wrap--tablet",
|
|
698
|
+
"wrap--laptop",
|
|
699
|
+
"wrap--desktop",
|
|
700
|
+
"overflow-x",
|
|
701
|
+
"overflow-x--mobile",
|
|
702
|
+
"overflow-x--tablet",
|
|
703
|
+
"overflow-x--laptop",
|
|
704
|
+
"overflow-x--desktop"
|
|
705
|
+
];
|
|
706
|
+
}
|
|
707
|
+
attributeChangedCallback(e, t, n) {
|
|
708
|
+
switch (e) {
|
|
709
|
+
case "gap":
|
|
710
|
+
case "gap--mobile":
|
|
711
|
+
case "gap--tablet":
|
|
712
|
+
case "gap--laptop":
|
|
713
|
+
case "gap--desktop":
|
|
714
|
+
this.updateFlexProperties(e, t, n, p);
|
|
715
|
+
break;
|
|
716
|
+
case "justify-content":
|
|
717
|
+
case "justify-content--mobile":
|
|
718
|
+
case "justify-content--tablet":
|
|
719
|
+
case "justify-content--laptop":
|
|
720
|
+
case "justify-content--desktop":
|
|
721
|
+
this.updateFlexProperties(e, t, n, N);
|
|
722
|
+
break;
|
|
723
|
+
case "align-items":
|
|
724
|
+
case "align-items--mobile":
|
|
725
|
+
case "align-items--tablet":
|
|
726
|
+
case "align-items--laptop":
|
|
727
|
+
case "align-items--desktop":
|
|
728
|
+
this.updateFlexProperties(e, t, n, M);
|
|
729
|
+
break;
|
|
730
|
+
case "wrap":
|
|
731
|
+
case "wrap--mobile":
|
|
732
|
+
case "wrap--tablet":
|
|
733
|
+
case "wrap--laptop":
|
|
734
|
+
case "wrap--desktop":
|
|
735
|
+
this.updateFlexProperties(e, t, n, P);
|
|
736
|
+
break;
|
|
737
|
+
case "direction":
|
|
738
|
+
case "direction--mobile":
|
|
739
|
+
case "direction--tablet":
|
|
740
|
+
case "direction--laptop":
|
|
741
|
+
case "direction--desktop":
|
|
742
|
+
this.updateFlexProperties(e, t, n, j);
|
|
743
|
+
break;
|
|
744
|
+
case "overflow-x":
|
|
745
|
+
case "overflow-x--mobile":
|
|
746
|
+
case "overflow-x--tablet":
|
|
747
|
+
case "overflow-x--laptop":
|
|
748
|
+
case "overflow-x--desktop":
|
|
749
|
+
this.updateOverflowX(e, t, n, F);
|
|
750
|
+
break;
|
|
751
|
+
default: super.attributeChangedCallback(e, t, n);
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
updateOverflowX(e, t, n, r) {
|
|
755
|
+
if (!d(r, n)) {
|
|
756
|
+
h(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
757
|
+
return;
|
|
758
|
+
}
|
|
759
|
+
this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n);
|
|
760
|
+
}
|
|
761
|
+
updateFlexProperties(e, t, n, r) {
|
|
762
|
+
this.checkName(r, n) || h(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
763
|
+
let i = e.indexOf("--") > -1, a = i ? e.split("--")[0] : e, o = [];
|
|
764
|
+
if (!i) this.getAttribute(a + "--mobile") || o.push("mobile"), this.getAttribute(a + "--tablet") || o.push("tablet"), this.getAttribute(a + "--laptop") || o.push("laptop"), this.getAttribute(a + "--desktop") || o.push("desktop"), o.forEach((e) => {
|
|
765
|
+
this.updateStyle(a, e, t, r), this.updateStyle(a, e, n, r);
|
|
766
|
+
});
|
|
767
|
+
else {
|
|
768
|
+
let i = e.split("--")[1];
|
|
769
|
+
this.updateStyle(a, i, t, r), this.updateStyle(a, i, n, r);
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
updateStyle(e, t, n, r) {
|
|
773
|
+
n && (e === "gap" && r && r.includes(n) ? (this.$el.style.setProperty(`--flex-${e}--${t}-value`, `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`), this.style.setProperty(`--host-gap--${t}`, `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`)) : this.$el.style.setProperty(`--flex-${e}--${t}-value`, n));
|
|
774
|
+
}
|
|
775
|
+
get direction() {
|
|
776
|
+
return this.getAttribute("direction");
|
|
777
|
+
}
|
|
778
|
+
set direction(e) {
|
|
779
|
+
v(this, "direction", e);
|
|
780
|
+
}
|
|
781
|
+
get directionMobile() {
|
|
782
|
+
return this.getAttribute("direction--mobile");
|
|
783
|
+
}
|
|
784
|
+
set directionMobile(e) {
|
|
785
|
+
v(this, "direction--mobile", e);
|
|
786
|
+
}
|
|
787
|
+
get directionTablet() {
|
|
788
|
+
return this.getAttribute("direction--tablet");
|
|
789
|
+
}
|
|
790
|
+
set directionTablet(e) {
|
|
791
|
+
v(this, "direction--tablet", e);
|
|
792
|
+
}
|
|
793
|
+
get directionLaptop() {
|
|
794
|
+
return this.getAttribute("direction--laptop");
|
|
795
|
+
}
|
|
796
|
+
set directionLaptop(e) {
|
|
797
|
+
v(this, "direction--laptop", e);
|
|
798
|
+
}
|
|
799
|
+
get directionDesktop() {
|
|
800
|
+
return this.getAttribute("direction--desktop");
|
|
801
|
+
}
|
|
802
|
+
set directionDesktop(e) {
|
|
803
|
+
v(this, "direction--desktop", e);
|
|
804
|
+
}
|
|
805
|
+
get gap() {
|
|
806
|
+
return this.getAttribute("gap");
|
|
807
|
+
}
|
|
808
|
+
set gap(e) {
|
|
809
|
+
v(this, "gap", e);
|
|
810
|
+
}
|
|
811
|
+
get gapMobile() {
|
|
812
|
+
return this.getAttribute("gap--mobile");
|
|
813
|
+
}
|
|
814
|
+
set gapMobile(e) {
|
|
815
|
+
v(this, "gap--mobile", e);
|
|
816
|
+
}
|
|
817
|
+
get gapTablet() {
|
|
818
|
+
return this.getAttribute("gap--tablet");
|
|
819
|
+
}
|
|
820
|
+
set gapTablet(e) {
|
|
821
|
+
v(this, "gap--tablet", e);
|
|
822
|
+
}
|
|
823
|
+
get gapLaptop() {
|
|
824
|
+
return this.getAttribute("gap--laptop");
|
|
825
|
+
}
|
|
826
|
+
set gapLaptop(e) {
|
|
827
|
+
v(this, "gap--laptop", e);
|
|
828
|
+
}
|
|
829
|
+
get gapDesktop() {
|
|
830
|
+
return this.getAttribute("gap--desktop");
|
|
831
|
+
}
|
|
832
|
+
set gapDesktop(e) {
|
|
833
|
+
v(this, "gap--desktop", e);
|
|
834
|
+
}
|
|
835
|
+
get justifyContent() {
|
|
836
|
+
return this.getAttribute("justify-content");
|
|
837
|
+
}
|
|
838
|
+
set justifyContent(e) {
|
|
839
|
+
v(this, "justify-content", e);
|
|
840
|
+
}
|
|
841
|
+
get justifyContentMobile() {
|
|
842
|
+
return this.getAttribute("justify-content--mobile");
|
|
843
|
+
}
|
|
844
|
+
set justifyContentMobile(e) {
|
|
845
|
+
v(this, "justify-content--mobile", e);
|
|
846
|
+
}
|
|
847
|
+
get justifyContentTablet() {
|
|
848
|
+
return this.getAttribute("justify-content--tablet");
|
|
849
|
+
}
|
|
850
|
+
set justifyContentTablet(e) {
|
|
851
|
+
v(this, "justify-content--tablet", e);
|
|
852
|
+
}
|
|
853
|
+
get justifyContentLaptop() {
|
|
854
|
+
return this.getAttribute("justify-content--laptop");
|
|
855
|
+
}
|
|
856
|
+
set justifyContentLaptop(e) {
|
|
857
|
+
v(this, "justify-content--laptop", e);
|
|
858
|
+
}
|
|
859
|
+
get justifyContentDesktop() {
|
|
860
|
+
return this.getAttribute("justify-content--desktop");
|
|
861
|
+
}
|
|
862
|
+
set justifyContentDesktop(e) {
|
|
863
|
+
v(this, "justify-content--desktop", e);
|
|
864
|
+
}
|
|
865
|
+
get alignItems() {
|
|
866
|
+
return this.getAttribute("align-items");
|
|
867
|
+
}
|
|
868
|
+
set alignItems(e) {
|
|
869
|
+
v(this, "align-items", e);
|
|
870
|
+
}
|
|
871
|
+
get alignItemsMobile() {
|
|
872
|
+
return this.getAttribute("align-items--mobile");
|
|
873
|
+
}
|
|
874
|
+
set alignItemsMobile(e) {
|
|
875
|
+
v(this, "align-items--mobile", e);
|
|
876
|
+
}
|
|
877
|
+
get alignItemsTablet() {
|
|
878
|
+
return this.getAttribute("align-items--tablet");
|
|
879
|
+
}
|
|
880
|
+
set alignItemsTablet(e) {
|
|
881
|
+
v(this, "align-items--tablet", e);
|
|
882
|
+
}
|
|
883
|
+
get alignItemsLaptop() {
|
|
884
|
+
return this.getAttribute("align-items--laptop");
|
|
885
|
+
}
|
|
886
|
+
set alignItemsLaptop(e) {
|
|
887
|
+
v(this, "align-items--laptop", e);
|
|
888
|
+
}
|
|
889
|
+
get alignItemsDesktop() {
|
|
890
|
+
return this.getAttribute("align-items--desktop");
|
|
891
|
+
}
|
|
892
|
+
set alignItemsDesktop(e) {
|
|
893
|
+
v(this, "align-items--desktop", e);
|
|
894
|
+
}
|
|
895
|
+
get wrap() {
|
|
896
|
+
return this.getAttribute("wrap");
|
|
897
|
+
}
|
|
898
|
+
set wrap(e) {
|
|
899
|
+
v(this, "wrap", e);
|
|
900
|
+
}
|
|
901
|
+
get wrapMobile() {
|
|
902
|
+
return this.getAttribute("wrap--mobile");
|
|
903
|
+
}
|
|
904
|
+
set wrapMobile(e) {
|
|
905
|
+
v(this, "wrap--mobile", e);
|
|
906
|
+
}
|
|
907
|
+
get wrapTablet() {
|
|
908
|
+
return this.getAttribute("wrap--tablet");
|
|
909
|
+
}
|
|
910
|
+
set wrapTablet(e) {
|
|
911
|
+
v(this, "wrap--tablet", e);
|
|
912
|
+
}
|
|
913
|
+
get wrapLaptop() {
|
|
914
|
+
return this.getAttribute("wrap--laptop");
|
|
915
|
+
}
|
|
916
|
+
set wrapLaptop(e) {
|
|
917
|
+
v(this, "wrap--laptop", e);
|
|
918
|
+
}
|
|
919
|
+
get wrapDesktop() {
|
|
920
|
+
return this.getAttribute("wrap--desktop");
|
|
921
|
+
}
|
|
922
|
+
set wrapDesktop(e) {
|
|
923
|
+
v(this, "wrap--desktop", e);
|
|
924
|
+
}
|
|
925
|
+
get overflowX() {
|
|
926
|
+
return this.getAttribute("overflow-x");
|
|
927
|
+
}
|
|
928
|
+
set overflowX(e) {
|
|
929
|
+
v(this, "overflow-x", e);
|
|
930
|
+
}
|
|
931
|
+
get overflowXMobile() {
|
|
932
|
+
return this.getAttribute("overflow-x--mobile");
|
|
933
|
+
}
|
|
934
|
+
set overflowXMobile(e) {
|
|
935
|
+
v(this, "overflow-x--mobile", e);
|
|
936
|
+
}
|
|
937
|
+
get overflowXTablet() {
|
|
938
|
+
return this.getAttribute("overflow-x--tablet");
|
|
939
|
+
}
|
|
940
|
+
set overflowXTablet(e) {
|
|
941
|
+
v(this, "overflow-x--tablet", e);
|
|
942
|
+
}
|
|
943
|
+
get overflowXLaptop() {
|
|
944
|
+
return this.getAttribute("overflow-x--laptop");
|
|
945
|
+
}
|
|
946
|
+
set overflowXLaptop(e) {
|
|
947
|
+
v(this, "overflow-x--laptop", e);
|
|
948
|
+
}
|
|
949
|
+
get overflowXDesktop() {
|
|
950
|
+
return this.getAttribute("overflow-x--desktop");
|
|
951
|
+
}
|
|
952
|
+
set overflowXDesktop(e) {
|
|
953
|
+
v(this, "overflow-x--desktop", e);
|
|
954
|
+
}
|
|
955
|
+
get $el() {
|
|
956
|
+
return this.shadowRoot.querySelector(".flex-container");
|
|
957
|
+
}
|
|
958
|
+
};
|
|
959
|
+
customElements.get("px-stack") || customElements.define("px-stack", I);
|
|
960
|
+
var L = class extends I {
|
|
961
|
+
constructor() {
|
|
962
|
+
super();
|
|
963
|
+
}
|
|
964
|
+
connectedCallback() {
|
|
965
|
+
super.connectedCallback(), this.direction = "column", this.directionMobile = "column", this.directionTablet = "column", this.directionLaptop = "column", this.directionDesktop = "column";
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
customElements.get("px-vstack") || customElements.define("px-vstack", L);
|
|
969
|
+
var R = class extends I {
|
|
970
|
+
constructor() {
|
|
971
|
+
super();
|
|
972
|
+
}
|
|
973
|
+
connectedCallback() {
|
|
974
|
+
super.connectedCallback(), this.direction = "row", this.directionMobile = "row", this.directionTablet = "row", this.directionLaptop = "row", this.directionDesktop = "row";
|
|
975
|
+
}
|
|
976
|
+
};
|
|
977
|
+
customElements.get("px-hstack") || customElements.define("px-hstack", R);
|
|
978
|
+
//#endregion
|
|
979
|
+
//#region ../Layout/src/Spacer.ts
|
|
980
|
+
var z = class extends HTMLElement {
|
|
981
|
+
constructor() {
|
|
982
|
+
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
983
|
+
}
|
|
984
|
+
static get observedAttributes() {
|
|
985
|
+
return ["grow", "nogap"];
|
|
986
|
+
}
|
|
987
|
+
attributeChangedCallback(e, t, n) {
|
|
988
|
+
e === "grow" && (this.growValue = n || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
|
|
989
|
+
}
|
|
990
|
+
connectedCallback() {
|
|
991
|
+
this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.nogap && this.parentElement && (this.resizeObserver = new ResizeObserver(() => {
|
|
992
|
+
this.handleSizeChange();
|
|
993
|
+
}), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck());
|
|
994
|
+
}
|
|
995
|
+
disconnectedCallback() {
|
|
996
|
+
this.resizeObserver?.disconnect(), this.recheckHandle &&= (cancelAnimationFrame(this.recheckHandle), void 0);
|
|
997
|
+
}
|
|
998
|
+
get grow() {
|
|
999
|
+
return this.getAttribute("grow");
|
|
1000
|
+
}
|
|
1001
|
+
set grow(e) {
|
|
1002
|
+
this.setAttribute("grow", `${e}`);
|
|
1003
|
+
}
|
|
1004
|
+
scheduleRecheck() {
|
|
1005
|
+
this.recheckHandle && cancelAnimationFrame(this.recheckHandle), this.recheckHandle = requestAnimationFrame(() => {
|
|
1006
|
+
this.recheckHandle = void 0, this.recalculateVisibility();
|
|
1007
|
+
});
|
|
1008
|
+
}
|
|
1009
|
+
recalculateVisibility() {
|
|
1010
|
+
this.isConnected && (this.style.display = "", this.style.flexGrow = this.growValue, this.handleSizeChange());
|
|
1011
|
+
}
|
|
1012
|
+
handleSizeChange() {
|
|
1013
|
+
let e = this.getBoundingClientRect(), t = e.width === 0 && !this.isVertical || e.height === 0 && this.isVertical;
|
|
1014
|
+
this.isZeroSized !== t && (this.isZeroSized = t, this.updateParticipation());
|
|
1015
|
+
}
|
|
1016
|
+
updateParticipation() {
|
|
1017
|
+
this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
|
|
1018
|
+
}
|
|
1019
|
+
get nogap() {
|
|
1020
|
+
return this.hasAttribute("nogap");
|
|
1021
|
+
}
|
|
1022
|
+
set nogap(e) {
|
|
1023
|
+
e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
1024
|
+
}
|
|
1025
|
+
};
|
|
1026
|
+
customElements.get("px-spacer") || customElements.define("px-spacer", z);
|
|
1027
|
+
//#endregion
|
|
1028
|
+
//#region ../Layout/src/Page.css?inline
|
|
1029
|
+
var B = ":host{box-sizing:border-box;display:block}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", V = new CSSStyleSheet();
|
|
1030
|
+
V.replaceSync(B);
|
|
1031
|
+
var H = class extends n {
|
|
1032
|
+
constructor() {
|
|
1033
|
+
super(V), this.template = (e) => `
|
|
1183
1034
|
<px-container border-radius="none" padding="none">
|
|
1184
1035
|
<px-vstack>
|
|
1185
1036
|
<px-container id="header-container" border-radius="none">
|
|
@@ -1216,7 +1067,7 @@ class ot extends m {
|
|
|
1216
1067
|
<px-spacer></px-spacer>
|
|
1217
1068
|
</px-hstack>
|
|
1218
1069
|
</px-container>
|
|
1219
|
-
${
|
|
1070
|
+
${e ? ` <px-hstack>
|
|
1220
1071
|
<px-spacer></px-spacer>
|
|
1221
1072
|
<px-container border-radius="none" box-shadow="xl" id="image-sticky-box" border="s" grow="${this.grow}" basis="${this.basis}" border-radius="m">
|
|
1222
1073
|
<px-vstack gap="s">
|
|
@@ -1282,1041 +1133,940 @@ class ot extends m {
|
|
|
1282
1133
|
</px-vstack>
|
|
1283
1134
|
</px-container>
|
|
1284
1135
|
`, this.shadowRoot.innerHTML = this.template(!!this.$imageStickySlot);
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
this.$headerContainer.setAttribute("padding-top", t), this.$footerContainer.setAttribute("padding-bottom", t);
|
|
1374
|
-
}
|
|
1375
|
-
handlePaddingHorizontalChange(t) {
|
|
1376
|
-
this.$headerContainer.paddingLeft = t, this.$headerContainer.paddingRight = t, this.$bodyContainer.paddingLeft = t, this.$bodyContainer.paddingRight = t, this.$contactContainer.paddingLeft = t, this.$contactContainer.paddingRight = t, this.$footerContainer.paddingLeft = t, this.$footerContainer.paddingRight = t, this.$imageContainer.paddingLeft = t, this.$imageContainer.paddingRight = t;
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
customElements.get("px-page") === void 0 && customElements.define("px-page", ot);
|
|
1380
|
-
const B = new CSSStyleSheet();
|
|
1381
|
-
B.replaceSync(N);
|
|
1382
|
-
class rt extends m {
|
|
1383
|
-
constructor() {
|
|
1384
|
-
super(B), this.template = () => `
|
|
1385
|
-
<px-container border-radius="none" padding-inline="none">
|
|
1386
|
-
<div class="content-wrapper">
|
|
1387
|
-
<px-vstack gap="heading-to-content">
|
|
1388
|
-
<slot name="heading"></slot>
|
|
1389
|
-
<px-vstack gap="none">
|
|
1390
|
-
<slot></slot>
|
|
1391
|
-
</px-vstack>
|
|
1392
|
-
</px-vstack>
|
|
1393
|
-
</div>
|
|
1394
|
-
</px-container>
|
|
1395
|
-
<div class="content-wrapper">
|
|
1396
|
-
<slot name="overlap"></slot>
|
|
1397
|
-
</div>
|
|
1398
|
-
`, this.shadowRoot.innerHTML = this.template();
|
|
1399
|
-
}
|
|
1400
|
-
connectedCallback() {
|
|
1401
|
-
var t, i;
|
|
1402
|
-
this.$container.setAttribute("background-color", this.backgroundColor), !this.paddingBlock && !this.paddingTop && !this.paddingBottom && !this.paddingBlockMobile && !this.paddingTopMobile && !this.paddingBottomMobile && !this.paddingBlockTablet && !this.paddingTopTablet && !this.paddingBottomTablet && !this.paddingBlockLaptop && !this.paddingTopLaptop && !this.paddingBottomLaptop && (this.$container.paddingBlock = "none"), this.setHeadingSpacing = this.setHeadingSpacing.bind(this), this.setHeadingSpacing(), (t = this.$slotHeading) == null || t.addEventListener("slotchange", this.setHeadingSpacing), this.toggleOverlapSpacing = this.toggleOverlapSpacing.bind(this), this.toggleOverlapSpacing(), (i = this.$slotOverlap) == null || i.addEventListener(
|
|
1403
|
-
"slotchange",
|
|
1404
|
-
this.toggleOverlapSpacing
|
|
1405
|
-
);
|
|
1406
|
-
}
|
|
1407
|
-
static get observedAttributes() {
|
|
1408
|
-
return [
|
|
1409
|
-
...super.observedAttributes,
|
|
1410
|
-
"background-color",
|
|
1411
|
-
"background-gradient",
|
|
1412
|
-
"background-image",
|
|
1413
|
-
"background-image--mobile",
|
|
1414
|
-
"background-image--tablet",
|
|
1415
|
-
"background-image--laptop",
|
|
1416
|
-
"background-size",
|
|
1417
|
-
"background-position",
|
|
1418
|
-
"padding-block",
|
|
1419
|
-
"padding-top",
|
|
1420
|
-
"padding-bottom",
|
|
1421
|
-
"padding-block--mobile",
|
|
1422
|
-
"padding-top--mobile",
|
|
1423
|
-
"padding-bottom--mobile",
|
|
1424
|
-
"padding-block--tablet",
|
|
1425
|
-
"padding-top--tablet",
|
|
1426
|
-
"padding-bottom--tablet",
|
|
1427
|
-
"padding-block--laptop",
|
|
1428
|
-
"padding-top--laptop",
|
|
1429
|
-
"padding-bottom--laptop",
|
|
1430
|
-
"border",
|
|
1431
|
-
"border-side",
|
|
1432
|
-
"border-side--mobile",
|
|
1433
|
-
"border-side--tablet",
|
|
1434
|
-
"border-side--laptop"
|
|
1435
|
-
];
|
|
1436
|
-
}
|
|
1437
|
-
attributeChangedCallback(t, i, e) {
|
|
1438
|
-
if (i !== e)
|
|
1439
|
-
switch (t) {
|
|
1440
|
-
case "background-color":
|
|
1441
|
-
this.$container.backgroundColor = u.indexOf(e) > 0 ? e : "none";
|
|
1442
|
-
break;
|
|
1443
|
-
case "background-gradient":
|
|
1444
|
-
this.$container.gradient = this.gradient;
|
|
1445
|
-
break;
|
|
1446
|
-
case "background-image":
|
|
1447
|
-
this.$container.backgroundImage = e;
|
|
1448
|
-
break;
|
|
1449
|
-
case "background-image--mobile":
|
|
1450
|
-
this.$container.backgroundImageMobile = e;
|
|
1451
|
-
break;
|
|
1452
|
-
case "background-image--tablet":
|
|
1453
|
-
this.$container.backgroundImageTablet = e;
|
|
1454
|
-
break;
|
|
1455
|
-
case "background-image--laptop":
|
|
1456
|
-
this.$container.backgroundImageLaptop = e;
|
|
1457
|
-
break;
|
|
1458
|
-
case "background-size":
|
|
1459
|
-
this.$container.backgroundSize = e;
|
|
1460
|
-
break;
|
|
1461
|
-
case "background-position":
|
|
1462
|
-
this.$container.backgroundPosition = e;
|
|
1463
|
-
break;
|
|
1464
|
-
case "padding-block":
|
|
1465
|
-
this.$container.paddingBlock = e;
|
|
1466
|
-
break;
|
|
1467
|
-
case "padding-top":
|
|
1468
|
-
this.$container.paddingTop = e;
|
|
1469
|
-
break;
|
|
1470
|
-
case "padding-bottom":
|
|
1471
|
-
this.$container.paddingBottom = e;
|
|
1472
|
-
break;
|
|
1473
|
-
case "padding-block--mobile":
|
|
1474
|
-
this.$container.paddingBlockMobile = e;
|
|
1475
|
-
break;
|
|
1476
|
-
case "padding-top--mobile":
|
|
1477
|
-
this.$container.paddingTopMobile = e;
|
|
1478
|
-
break;
|
|
1479
|
-
case "padding-bottom--mobile":
|
|
1480
|
-
this.$container.paddingBottomMobile = e;
|
|
1481
|
-
break;
|
|
1482
|
-
case "padding-block--tablet":
|
|
1483
|
-
this.$container.paddingBlockTablet = e;
|
|
1484
|
-
break;
|
|
1485
|
-
case "padding-top--tablet":
|
|
1486
|
-
this.$container.paddingTopTablet = e;
|
|
1487
|
-
break;
|
|
1488
|
-
case "padding-bottom--tablet":
|
|
1489
|
-
this.$container.paddingBottomTablet = e;
|
|
1490
|
-
break;
|
|
1491
|
-
case "padding-block--laptop":
|
|
1492
|
-
this.$container.paddingBlockLaptop = e;
|
|
1493
|
-
break;
|
|
1494
|
-
case "padding-top--laptop":
|
|
1495
|
-
this.$container.paddingTopLaptop = e;
|
|
1496
|
-
break;
|
|
1497
|
-
case "padding-bottom--laptop":
|
|
1498
|
-
this.$container.paddingBottomLaptop = e;
|
|
1499
|
-
break;
|
|
1500
|
-
case "border":
|
|
1501
|
-
this.$container.border = e;
|
|
1502
|
-
break;
|
|
1503
|
-
case "border-side":
|
|
1504
|
-
this.$container.borderSide = e;
|
|
1505
|
-
break;
|
|
1506
|
-
case "border-side--mobile":
|
|
1507
|
-
this.$container.borderSideMobile = e;
|
|
1508
|
-
break;
|
|
1509
|
-
case "border-side--tablet":
|
|
1510
|
-
this.$container.borderSideTablet = e;
|
|
1511
|
-
break;
|
|
1512
|
-
case "border-side--laptop":
|
|
1513
|
-
this.$container.borderSideLaptop = e;
|
|
1514
|
-
break;
|
|
1515
|
-
default:
|
|
1516
|
-
super.attributeChangedCallback(t, i, e);
|
|
1517
|
-
break;
|
|
1518
|
-
}
|
|
1519
|
-
}
|
|
1520
|
-
disconnectedCallback() {
|
|
1521
|
-
var t, i;
|
|
1522
|
-
(t = this.$slotHeading) == null || t.removeEventListener(
|
|
1523
|
-
"slotchange",
|
|
1524
|
-
this.setHeadingSpacing
|
|
1525
|
-
), (i = this.$slotOverlap) == null || i.removeEventListener(
|
|
1526
|
-
"slotchange",
|
|
1527
|
-
this.toggleOverlapSpacing
|
|
1528
|
-
);
|
|
1529
|
-
}
|
|
1530
|
-
toggleOverlapSpacing() {
|
|
1531
|
-
const t = this.$slotOverlap, i = this.$mainContentWrapper;
|
|
1532
|
-
if (!t || !i) return;
|
|
1533
|
-
const o = t.assignedNodes({ flatten: !0 }).some(this.isNotEmptyNode);
|
|
1534
|
-
i.classList.toggle("overlapped", o);
|
|
1535
|
-
}
|
|
1536
|
-
isNotEmptyNode(t) {
|
|
1537
|
-
return t.nodeType === Node.ELEMENT_NODE ? !0 : t.nodeType === Node.TEXT_NODE ? (t.textContent ?? "").trim().length > 0 : !1;
|
|
1538
|
-
}
|
|
1539
|
-
setHeadingSpacing() {
|
|
1540
|
-
var e;
|
|
1541
|
-
const t = this.$slotHeading, i = (e = this.shadowRoot) == null ? void 0 : e.querySelector("px-vstack");
|
|
1542
|
-
t && i && (t.assignedElements().length > 0 ? i.setAttribute("gap", "heading-to-content") : i.setAttribute("gap", "none"));
|
|
1543
|
-
}
|
|
1544
|
-
get $container() {
|
|
1545
|
-
var t;
|
|
1546
|
-
return (t = this.shadowRoot) == null ? void 0 : t.querySelector("px-container");
|
|
1547
|
-
}
|
|
1548
|
-
get $mainContentWrapper() {
|
|
1549
|
-
var t;
|
|
1550
|
-
return (t = this.$container) == null ? void 0 : t.querySelector(".content-wrapper");
|
|
1551
|
-
}
|
|
1552
|
-
get $slotOverlap() {
|
|
1553
|
-
var t;
|
|
1554
|
-
return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
|
|
1555
|
-
'slot[name="overlap"]'
|
|
1556
|
-
);
|
|
1557
|
-
}
|
|
1558
|
-
get $slottedOverlap() {
|
|
1559
|
-
return this.querySelector('[slot="overlap"]');
|
|
1560
|
-
}
|
|
1561
|
-
get $slotHeading() {
|
|
1562
|
-
var t;
|
|
1563
|
-
return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
|
|
1564
|
-
'slot[name="heading"]'
|
|
1565
|
-
);
|
|
1566
|
-
}
|
|
1567
|
-
get $slottedHeading() {
|
|
1568
|
-
return this.querySelector('[slot="heading"]');
|
|
1569
|
-
}
|
|
1570
|
-
get backgroundColor() {
|
|
1571
|
-
return this.getAttribute("background-color") || "none";
|
|
1572
|
-
}
|
|
1573
|
-
set backgroundColor(t) {
|
|
1574
|
-
this.setAttribute("background-color", t);
|
|
1575
|
-
}
|
|
1576
|
-
get gradient() {
|
|
1577
|
-
return this.getAttribute("background-gradient");
|
|
1578
|
-
}
|
|
1579
|
-
set gradient(t) {
|
|
1580
|
-
this.setAttribute("background-gradient", t);
|
|
1581
|
-
}
|
|
1582
|
-
get backgroundImage() {
|
|
1583
|
-
return this.getAttribute("background-image");
|
|
1584
|
-
}
|
|
1585
|
-
set backgroundImage(t) {
|
|
1586
|
-
this.setAttribute("background-image", t);
|
|
1587
|
-
}
|
|
1588
|
-
get backgroundImageMobile() {
|
|
1589
|
-
return this.getAttribute("background-image--mobile");
|
|
1590
|
-
}
|
|
1591
|
-
set backgroundImageMobile(t) {
|
|
1592
|
-
this.setAttribute("background-image--mobile", t);
|
|
1593
|
-
}
|
|
1594
|
-
get backgroundImageTablet() {
|
|
1595
|
-
return this.getAttribute("background-image--tablet");
|
|
1596
|
-
}
|
|
1597
|
-
set backgroundImageTablet(t) {
|
|
1598
|
-
this.setAttribute("background-image--tablet", t);
|
|
1599
|
-
}
|
|
1600
|
-
get backgroundImageLaptop() {
|
|
1601
|
-
return this.getAttribute("background-image--laptop");
|
|
1602
|
-
}
|
|
1603
|
-
set backgroundImageLaptop(t) {
|
|
1604
|
-
this.setAttribute("background-image--laptop", t);
|
|
1605
|
-
}
|
|
1606
|
-
get backgroundSize() {
|
|
1607
|
-
return this.getAttribute("background-size");
|
|
1608
|
-
}
|
|
1609
|
-
set backgroundSize(t) {
|
|
1610
|
-
this.setAttribute("background-size", t);
|
|
1611
|
-
}
|
|
1612
|
-
get backgroundPosition() {
|
|
1613
|
-
return this.getAttribute("background-position");
|
|
1614
|
-
}
|
|
1615
|
-
set backgroundPosition(t) {
|
|
1616
|
-
this.setAttribute("background-position", t);
|
|
1617
|
-
}
|
|
1618
|
-
get paddingBlock() {
|
|
1619
|
-
return this.getAttribute("padding-block");
|
|
1620
|
-
}
|
|
1621
|
-
set paddingBlock(t) {
|
|
1622
|
-
this.setAttribute("padding-block", t);
|
|
1623
|
-
}
|
|
1624
|
-
get paddingTop() {
|
|
1625
|
-
return this.getAttribute("padding-top");
|
|
1626
|
-
}
|
|
1627
|
-
set paddingTop(t) {
|
|
1628
|
-
this.setAttribute("padding-top", t);
|
|
1629
|
-
}
|
|
1630
|
-
get paddingBottom() {
|
|
1631
|
-
return this.getAttribute("padding-bottom");
|
|
1632
|
-
}
|
|
1633
|
-
set paddingBottom(t) {
|
|
1634
|
-
this.setAttribute("padding-bottom", t);
|
|
1635
|
-
}
|
|
1636
|
-
get paddingBlockMobile() {
|
|
1637
|
-
return this.getAttribute("padding-block--mobile");
|
|
1638
|
-
}
|
|
1639
|
-
set paddingBlockMobile(t) {
|
|
1640
|
-
this.setAttribute("padding-block--mobile", t);
|
|
1641
|
-
}
|
|
1642
|
-
get paddingTopMobile() {
|
|
1643
|
-
return this.getAttribute("padding-top--mobile");
|
|
1644
|
-
}
|
|
1645
|
-
set paddingTopMobile(t) {
|
|
1646
|
-
this.setAttribute("padding-top--mobile", t);
|
|
1647
|
-
}
|
|
1648
|
-
get paddingBottomMobile() {
|
|
1649
|
-
return this.getAttribute("padding-bottom--mobile");
|
|
1650
|
-
}
|
|
1651
|
-
set paddingBottomMobile(t) {
|
|
1652
|
-
this.setAttribute("padding-bottom--mobile", t);
|
|
1653
|
-
}
|
|
1654
|
-
get paddingBlockTablet() {
|
|
1655
|
-
return this.getAttribute("padding-block--tablet");
|
|
1656
|
-
}
|
|
1657
|
-
set paddingBlockTablet(t) {
|
|
1658
|
-
this.setAttribute("padding-block--tablet", t);
|
|
1659
|
-
}
|
|
1660
|
-
get paddingTopTablet() {
|
|
1661
|
-
return this.getAttribute("padding-top--tablet");
|
|
1662
|
-
}
|
|
1663
|
-
set paddingTopTablet(t) {
|
|
1664
|
-
this.setAttribute("padding-top--tablet", t);
|
|
1665
|
-
}
|
|
1666
|
-
get paddingBottomTablet() {
|
|
1667
|
-
return this.getAttribute("padding-bottom--tablet");
|
|
1668
|
-
}
|
|
1669
|
-
set paddingBottomTablet(t) {
|
|
1670
|
-
this.setAttribute("padding-bottom--tablet", t);
|
|
1671
|
-
}
|
|
1672
|
-
get paddingBlockLaptop() {
|
|
1673
|
-
return this.getAttribute("padding-block--laptop");
|
|
1674
|
-
}
|
|
1675
|
-
set paddingBlockLaptop(t) {
|
|
1676
|
-
this.setAttribute("padding-block--laptop", t);
|
|
1677
|
-
}
|
|
1678
|
-
get paddingTopLaptop() {
|
|
1679
|
-
return this.getAttribute("padding-top--laptop");
|
|
1680
|
-
}
|
|
1681
|
-
set paddingTopLaptop(t) {
|
|
1682
|
-
this.setAttribute("padding-top--laptop", t);
|
|
1683
|
-
}
|
|
1684
|
-
get paddingBottomLaptop() {
|
|
1685
|
-
return this.getAttribute("padding-bottom--laptop");
|
|
1686
|
-
}
|
|
1687
|
-
set paddingBottomLaptop(t) {
|
|
1688
|
-
this.setAttribute("padding-bottom--laptop", t);
|
|
1689
|
-
}
|
|
1690
|
-
get border() {
|
|
1691
|
-
return this.getAttribute("border");
|
|
1692
|
-
}
|
|
1693
|
-
set border(t) {
|
|
1694
|
-
this.setAttribute("border", t);
|
|
1695
|
-
}
|
|
1696
|
-
get borderSide() {
|
|
1697
|
-
return this.getAttribute("border-side");
|
|
1698
|
-
}
|
|
1699
|
-
set borderSide(t) {
|
|
1700
|
-
this.setAttribute("border-side", t);
|
|
1701
|
-
}
|
|
1702
|
-
get borderSideMobile() {
|
|
1703
|
-
return this.getAttribute("border-side--mobile");
|
|
1704
|
-
}
|
|
1705
|
-
set borderSideMobile(t) {
|
|
1706
|
-
this.setAttribute("border-side--mobile", t);
|
|
1707
|
-
}
|
|
1708
|
-
get borderSideTablet() {
|
|
1709
|
-
return this.getAttribute("border-side--tablet");
|
|
1710
|
-
}
|
|
1711
|
-
set borderSideTablet(t) {
|
|
1712
|
-
this.setAttribute("border-side--tablet", t);
|
|
1713
|
-
}
|
|
1714
|
-
get borderSideLaptop() {
|
|
1715
|
-
return this.getAttribute("border-side--laptop");
|
|
1716
|
-
}
|
|
1717
|
-
set borderSideLaptop(t) {
|
|
1718
|
-
this.setAttribute("border-side--laptop", t);
|
|
1719
|
-
}
|
|
1720
|
-
}
|
|
1721
|
-
customElements.get("px-section") || customElements.define("px-section", rt);
|
|
1722
|
-
const at = ":host{display:block;--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}.grid{display: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)}.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 (max-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 (min-width: 48rem) and (max-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 (min-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}}", z = new CSSStyleSheet();
|
|
1723
|
-
z.replaceSync(at);
|
|
1724
|
-
const st = [
|
|
1725
|
-
"1",
|
|
1726
|
-
"2",
|
|
1727
|
-
"3",
|
|
1728
|
-
"4",
|
|
1729
|
-
"5",
|
|
1730
|
-
"6",
|
|
1731
|
-
"7",
|
|
1732
|
-
"8",
|
|
1733
|
-
"9",
|
|
1734
|
-
"10",
|
|
1735
|
-
"11",
|
|
1736
|
-
"12"
|
|
1737
|
-
], nt = [
|
|
1738
|
-
"",
|
|
1739
|
-
"start",
|
|
1740
|
-
"end",
|
|
1741
|
-
"center",
|
|
1742
|
-
"space-between",
|
|
1743
|
-
"space-around",
|
|
1744
|
-
"space-evenly",
|
|
1745
|
-
"stretch"
|
|
1746
|
-
], dt = ["", "start", "end", "center", "stretch"], lt = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .grid`, gt = "px-spacing", pt = d(
|
|
1747
|
-
"gap",
|
|
1748
|
-
lt,
|
|
1749
|
-
x,
|
|
1750
|
-
gt,
|
|
1751
|
-
"--grid-gap"
|
|
1752
|
-
), w = class w extends L {
|
|
1753
|
-
constructor() {
|
|
1754
|
-
super(z, pt), this.template = () => `<div class="grid">
|
|
1755
|
-
<slot></slot>
|
|
1756
|
-
</div>`, this.shadowRoot.innerHTML = this.template();
|
|
1757
|
-
}
|
|
1758
|
-
static get observedAttributes() {
|
|
1759
|
-
return [
|
|
1760
|
-
...super.observedAttributes,
|
|
1761
|
-
"grid-cols",
|
|
1762
|
-
"grid-cols--mobile",
|
|
1763
|
-
"grid-cols--tablet",
|
|
1764
|
-
"grid-cols--laptop",
|
|
1765
|
-
"justify-content",
|
|
1766
|
-
"justify-items",
|
|
1767
|
-
"align-content",
|
|
1768
|
-
"align-items",
|
|
1769
|
-
"justify-content--mobile",
|
|
1770
|
-
"justify-items--mobile",
|
|
1771
|
-
"align-content--mobile",
|
|
1772
|
-
"align-items--mobile",
|
|
1773
|
-
"justify-content--tablet",
|
|
1774
|
-
"justify-items--tablet",
|
|
1775
|
-
"align-content--tablet",
|
|
1776
|
-
"align-items--tablet",
|
|
1777
|
-
"justify-content--laptop",
|
|
1778
|
-
"justify-items--laptop",
|
|
1779
|
-
"align-content--laptop",
|
|
1780
|
-
"align-items--laptop",
|
|
1781
|
-
"justify-content--desktop",
|
|
1782
|
-
"justify-items--desktop",
|
|
1783
|
-
"align-content--desktop",
|
|
1784
|
-
"align-items--desktop"
|
|
1785
|
-
];
|
|
1786
|
-
}
|
|
1787
|
-
connectedCallback() {
|
|
1788
|
-
this.gap || (this.gap = "default"), this.alignItems || (this.alignItems = "stretch");
|
|
1789
|
-
}
|
|
1790
|
-
attributeChangedCallback(t, i, e) {
|
|
1791
|
-
if (i !== e)
|
|
1792
|
-
switch (t) {
|
|
1793
|
-
case "grid-cols":
|
|
1794
|
-
case "grid-cols--mobile":
|
|
1795
|
-
case "grid-cols--tablet":
|
|
1796
|
-
case "grid-cols--laptop":
|
|
1797
|
-
this.updateAttribute(t, i, e, st);
|
|
1798
|
-
break;
|
|
1799
|
-
case "justify-content":
|
|
1800
|
-
case "align-content":
|
|
1801
|
-
case "justify-content--mobile":
|
|
1802
|
-
case "align-content--mobile":
|
|
1803
|
-
case "justify-content--tablet":
|
|
1804
|
-
case "align-content--tablet":
|
|
1805
|
-
case "justify-content--laptop":
|
|
1806
|
-
case "align-content--laptop":
|
|
1807
|
-
case "justify-content--desktop":
|
|
1808
|
-
case "align-content--desktop":
|
|
1809
|
-
this.updateAttribute(
|
|
1810
|
-
t,
|
|
1811
|
-
i,
|
|
1812
|
-
e,
|
|
1813
|
-
nt
|
|
1814
|
-
);
|
|
1815
|
-
break;
|
|
1816
|
-
case "justify-items":
|
|
1817
|
-
case "align-items":
|
|
1818
|
-
case "justify-items--mobile":
|
|
1819
|
-
case "align-items--mobile":
|
|
1820
|
-
case "justify-items--tablet":
|
|
1821
|
-
case "align-items--tablet":
|
|
1822
|
-
case "justify-items--laptop":
|
|
1823
|
-
case "align-items--laptop":
|
|
1824
|
-
case "justify-items--desktop":
|
|
1825
|
-
case "align-items--desktop":
|
|
1826
|
-
this.updateAttribute(
|
|
1827
|
-
t,
|
|
1828
|
-
i,
|
|
1829
|
-
e,
|
|
1830
|
-
dt
|
|
1831
|
-
);
|
|
1832
|
-
break;
|
|
1833
|
-
default:
|
|
1834
|
-
super.attributeChangedCallback(t, i, e);
|
|
1835
|
-
break;
|
|
1836
|
-
}
|
|
1837
|
-
}
|
|
1838
|
-
updateGap(t, i, e) {
|
|
1839
|
-
if (!this.checkName(e, i)) {
|
|
1840
|
-
s(
|
|
1841
|
-
`"${i}" is not a valid gap value for ${this.tagName.toLowerCase()}. Allowed values are: "${e.join('", "')}".`
|
|
1842
|
-
);
|
|
1843
|
-
return;
|
|
1844
|
-
}
|
|
1845
|
-
const o = (r) => {
|
|
1846
|
-
r !== null && r !== "" && r !== "default" && (this.$el.style.setProperty(
|
|
1847
|
-
"--grid-gap--mobile",
|
|
1848
|
-
`var(--px-spacing-${r}-mobile)`
|
|
1849
|
-
), this.$el.style.setProperty(
|
|
1850
|
-
"--grid-gap--tablet",
|
|
1851
|
-
`var(--px-spacing-${r}-tablet)`
|
|
1852
|
-
), this.$el.style.setProperty(
|
|
1853
|
-
"--grid-gap--laptop",
|
|
1854
|
-
`var(--px-spacing-${r}-laptop)`
|
|
1855
|
-
));
|
|
1856
|
-
};
|
|
1857
|
-
o(t), o(i);
|
|
1858
|
-
}
|
|
1859
|
-
updateAttribute(t, i, e, o) {
|
|
1860
|
-
this.checkName(o, e) ? t === "grid-cols" || t === "grid-cols--mobile" || t === "grid-cols--tablet" || t === "grid-cols--laptop" || t === "grid-cols--desktop" ? this.$el.style.setProperty(`--${t}`, e) : (i !== null && i !== "" && i !== "default" && this.$el.classList.toggle(`${t}-${i}`), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`${t}-${e}`)) : s(
|
|
1861
|
-
`"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
|
|
1862
|
-
);
|
|
1863
|
-
}
|
|
1864
|
-
get gap() {
|
|
1865
|
-
return this.getAttribute("gap");
|
|
1866
|
-
}
|
|
1867
|
-
set gap(t) {
|
|
1868
|
-
this.setAttribute("gap", t);
|
|
1869
|
-
}
|
|
1870
|
-
get gapMobile() {
|
|
1871
|
-
return this.getAttribute("gap--mobile");
|
|
1872
|
-
}
|
|
1873
|
-
set gapMobile(t) {
|
|
1874
|
-
this.setAttribute("gap--mobile", t);
|
|
1875
|
-
}
|
|
1876
|
-
get gapTablet() {
|
|
1877
|
-
return this.getAttribute("gap--tablet");
|
|
1878
|
-
}
|
|
1879
|
-
set gapTablet(t) {
|
|
1880
|
-
this.setAttribute("gap--tablet", t);
|
|
1881
|
-
}
|
|
1882
|
-
get gapLaptop() {
|
|
1883
|
-
return this.getAttribute("gap--laptop");
|
|
1884
|
-
}
|
|
1885
|
-
set gapLaptop(t) {
|
|
1886
|
-
this.setAttribute("gap--laptop", t);
|
|
1887
|
-
}
|
|
1888
|
-
get gridCols() {
|
|
1889
|
-
return this.getAttribute("grid-cols");
|
|
1890
|
-
}
|
|
1891
|
-
set gridCols(t) {
|
|
1892
|
-
this.setAttribute("grid-cols", t);
|
|
1893
|
-
}
|
|
1894
|
-
get gridColsMobile() {
|
|
1895
|
-
return this.getAttribute("grid-cols--mobile");
|
|
1896
|
-
}
|
|
1897
|
-
set gridColsMobile(t) {
|
|
1898
|
-
this.setAttribute("grid-cols--mobile", t);
|
|
1899
|
-
}
|
|
1900
|
-
get gridColsTablet() {
|
|
1901
|
-
return this.getAttribute("grid-cols--tablet");
|
|
1902
|
-
}
|
|
1903
|
-
set gridColsTablet(t) {
|
|
1904
|
-
this.setAttribute("grid-cols--tablet", t);
|
|
1905
|
-
}
|
|
1906
|
-
get gridColsLaptop() {
|
|
1907
|
-
return this.getAttribute("grid-cols--laptop");
|
|
1908
|
-
}
|
|
1909
|
-
set gridColsLaptop(t) {
|
|
1910
|
-
this.setAttribute("grid-cols--laptop", t);
|
|
1911
|
-
}
|
|
1912
|
-
get justifyContent() {
|
|
1913
|
-
return this.getAttribute("justify-content");
|
|
1914
|
-
}
|
|
1915
|
-
set justifyContent(t) {
|
|
1916
|
-
this.setAttribute("justify-content", t);
|
|
1917
|
-
}
|
|
1918
|
-
get justifyItems() {
|
|
1919
|
-
return this.getAttribute("justify-items");
|
|
1920
|
-
}
|
|
1921
|
-
set justifyItems(t) {
|
|
1922
|
-
this.setAttribute("justify-items", t);
|
|
1923
|
-
}
|
|
1924
|
-
get alignContent() {
|
|
1925
|
-
return this.getAttribute("align-content");
|
|
1926
|
-
}
|
|
1927
|
-
set alignContent(t) {
|
|
1928
|
-
this.setAttribute("align-content", t);
|
|
1929
|
-
}
|
|
1930
|
-
get alignItems() {
|
|
1931
|
-
return this.getAttribute("align-items");
|
|
1932
|
-
}
|
|
1933
|
-
set alignItems(t) {
|
|
1934
|
-
this.setAttribute("align-items", t);
|
|
1935
|
-
}
|
|
1936
|
-
get justifyContentMobile() {
|
|
1937
|
-
return this.getAttribute("justify-content--mobile");
|
|
1938
|
-
}
|
|
1939
|
-
set justifyContentMobile(t) {
|
|
1940
|
-
this.setAttribute("justify-content--mobile", t);
|
|
1941
|
-
}
|
|
1942
|
-
get justifyItemsMobile() {
|
|
1943
|
-
return this.getAttribute("justify-items--mobile");
|
|
1944
|
-
}
|
|
1945
|
-
set justifyItemsMobile(t) {
|
|
1946
|
-
this.setAttribute("justify-items--mobile", t);
|
|
1947
|
-
}
|
|
1948
|
-
get alignContentMobile() {
|
|
1949
|
-
return this.getAttribute("align-content--mobile");
|
|
1950
|
-
}
|
|
1951
|
-
set alignContentMobile(t) {
|
|
1952
|
-
this.setAttribute("align-content--mobile", t);
|
|
1953
|
-
}
|
|
1954
|
-
get alignItemsMobile() {
|
|
1955
|
-
return this.getAttribute("align-items--mobile");
|
|
1956
|
-
}
|
|
1957
|
-
set alignItemsMobile(t) {
|
|
1958
|
-
this.setAttribute("align-items--mobile", t);
|
|
1959
|
-
}
|
|
1960
|
-
get justifyContentTablet() {
|
|
1961
|
-
return this.getAttribute("justify-content--tablet");
|
|
1962
|
-
}
|
|
1963
|
-
set justifyContentTablet(t) {
|
|
1964
|
-
this.setAttribute("justify-content--tablet", t);
|
|
1965
|
-
}
|
|
1966
|
-
get justifyItemsTablet() {
|
|
1967
|
-
return this.getAttribute("justify-items--tablet");
|
|
1968
|
-
}
|
|
1969
|
-
set justifyItemsTablet(t) {
|
|
1970
|
-
this.setAttribute("justify-items--tablet", t);
|
|
1971
|
-
}
|
|
1972
|
-
get alignContentTablet() {
|
|
1973
|
-
return this.getAttribute("align-content--tablet");
|
|
1974
|
-
}
|
|
1975
|
-
set alignContentTablet(t) {
|
|
1976
|
-
this.setAttribute("align-content--tablet", t);
|
|
1977
|
-
}
|
|
1978
|
-
get alignItemsTablet() {
|
|
1979
|
-
return this.getAttribute("align-items--tablet");
|
|
1980
|
-
}
|
|
1981
|
-
set alignItemsTablet(t) {
|
|
1982
|
-
this.setAttribute("align-items--tablet", t);
|
|
1983
|
-
}
|
|
1984
|
-
get justifyContentLaptop() {
|
|
1985
|
-
return this.getAttribute("justify-content--laptop");
|
|
1986
|
-
}
|
|
1987
|
-
set justifyContentLaptop(t) {
|
|
1988
|
-
this.setAttribute("justify-content--laptop", t);
|
|
1989
|
-
}
|
|
1990
|
-
get justifyItemsLaptop() {
|
|
1991
|
-
return this.getAttribute("justify-items--laptop");
|
|
1992
|
-
}
|
|
1993
|
-
set justifyItemsLaptop(t) {
|
|
1994
|
-
this.setAttribute("justify-items--laptop", t);
|
|
1995
|
-
}
|
|
1996
|
-
get alignContentLaptop() {
|
|
1997
|
-
return this.getAttribute("align-content--laptop");
|
|
1998
|
-
}
|
|
1999
|
-
set alignContentLaptop(t) {
|
|
2000
|
-
this.setAttribute("align-content--laptop", t);
|
|
2001
|
-
}
|
|
2002
|
-
get alignItemsLaptop() {
|
|
2003
|
-
return this.getAttribute("align-items--laptop");
|
|
2004
|
-
}
|
|
2005
|
-
set alignItemsLaptop(t) {
|
|
2006
|
-
this.setAttribute("align-items--laptop", t);
|
|
2007
|
-
}
|
|
2008
|
-
get justifyContentDesktop() {
|
|
2009
|
-
return this.getAttribute("justify-content--desktop");
|
|
2010
|
-
}
|
|
2011
|
-
set justifyContentDesktop(t) {
|
|
2012
|
-
this.setAttribute("justify-content--desktop", t);
|
|
2013
|
-
}
|
|
2014
|
-
get justifyItemsDesktop() {
|
|
2015
|
-
return this.getAttribute("justify-items--desktop");
|
|
2016
|
-
}
|
|
2017
|
-
set justifyItemsDesktop(t) {
|
|
2018
|
-
this.setAttribute("justify-items--desktop", t);
|
|
2019
|
-
}
|
|
2020
|
-
get alignContentDesktop() {
|
|
2021
|
-
return this.getAttribute("align-content--desktop");
|
|
2022
|
-
}
|
|
2023
|
-
set alignContentDesktop(t) {
|
|
2024
|
-
this.setAttribute("align-content--desktop", t);
|
|
2025
|
-
}
|
|
2026
|
-
get alignItemsDesktop() {
|
|
2027
|
-
return this.getAttribute("align-items--desktop");
|
|
2028
|
-
}
|
|
2029
|
-
set alignItemsDesktop(t) {
|
|
2030
|
-
this.setAttribute("align-items--desktop", t);
|
|
2031
|
-
}
|
|
1136
|
+
}
|
|
1137
|
+
static get observedAttributes() {
|
|
1138
|
+
return [
|
|
1139
|
+
...super.observedAttributes,
|
|
1140
|
+
"background-image",
|
|
1141
|
+
"gap",
|
|
1142
|
+
"background-color",
|
|
1143
|
+
"padding-vertical",
|
|
1144
|
+
"padding-horizontal"
|
|
1145
|
+
];
|
|
1146
|
+
}
|
|
1147
|
+
get $wideImage() {
|
|
1148
|
+
return this.shadowRoot.querySelector("#image-box");
|
|
1149
|
+
}
|
|
1150
|
+
get $bodyVStackContainer() {
|
|
1151
|
+
return this.shadowRoot.querySelector("#header-vstack-container");
|
|
1152
|
+
}
|
|
1153
|
+
get $bodyContainer() {
|
|
1154
|
+
return this.shadowRoot.querySelector("#body-container");
|
|
1155
|
+
}
|
|
1156
|
+
get $contactContainer() {
|
|
1157
|
+
return this.shadowRoot.querySelector("#contact-container");
|
|
1158
|
+
}
|
|
1159
|
+
get $footerContainer() {
|
|
1160
|
+
return this.shadowRoot.querySelector("#footer-container");
|
|
1161
|
+
}
|
|
1162
|
+
get $headerContainer() {
|
|
1163
|
+
return this.shadowRoot.querySelector("#header-container");
|
|
1164
|
+
}
|
|
1165
|
+
get $imageContainer() {
|
|
1166
|
+
return this.shadowRoot.querySelector("#image-container");
|
|
1167
|
+
}
|
|
1168
|
+
get backgroundImage() {
|
|
1169
|
+
return this.getAttribute("background-image");
|
|
1170
|
+
}
|
|
1171
|
+
get $imageStickySlot() {
|
|
1172
|
+
return this.querySelector("*[slot=\"image-sticky-container\"]");
|
|
1173
|
+
}
|
|
1174
|
+
get $main() {
|
|
1175
|
+
return this.shadowRoot.querySelector("#main");
|
|
1176
|
+
}
|
|
1177
|
+
get backgroundColor() {
|
|
1178
|
+
return this.getAttribute("background-color") || "none";
|
|
1179
|
+
}
|
|
1180
|
+
get paddingVertical() {
|
|
1181
|
+
return this.getAttribute("padding-vertical");
|
|
1182
|
+
}
|
|
1183
|
+
get paddingHorizontal() {
|
|
1184
|
+
return this.getAttribute("padding-horizontal");
|
|
1185
|
+
}
|
|
1186
|
+
set paddingVertical(e) {
|
|
1187
|
+
this.setAttribute("padding-vertical", `${e}`);
|
|
1188
|
+
}
|
|
1189
|
+
set paddingHorizontal(e) {
|
|
1190
|
+
this.setAttribute("padding-horizontal", `${e}`);
|
|
1191
|
+
}
|
|
1192
|
+
get gap() {
|
|
1193
|
+
return this.getAttribute("gap");
|
|
1194
|
+
}
|
|
1195
|
+
connectedCallback() {
|
|
1196
|
+
this.handlePaddingVerticalChange(this.paddingVertical), this.handlePaddingHorizontalChange(this.paddingHorizontal);
|
|
1197
|
+
}
|
|
1198
|
+
attributeChangedCallback(e, t, n) {
|
|
1199
|
+
if (t !== n) switch (e) {
|
|
1200
|
+
case "background-image":
|
|
1201
|
+
this.$imageContainer.setAttribute("background-image", n);
|
|
1202
|
+
break;
|
|
1203
|
+
case "gap":
|
|
1204
|
+
this.$bodyVStackContainer.setAttribute("gap", n);
|
|
1205
|
+
break;
|
|
1206
|
+
case "background-color":
|
|
1207
|
+
this.$bodyContainer.setAttribute("background-color", r.indexOf(n) > 0 ? n : "none");
|
|
1208
|
+
break;
|
|
1209
|
+
case "padding-vertical":
|
|
1210
|
+
this.handlePaddingVerticalChange(n);
|
|
1211
|
+
break;
|
|
1212
|
+
case "padding-horizontal":
|
|
1213
|
+
this.handlePaddingHorizontalChange(n);
|
|
1214
|
+
break;
|
|
1215
|
+
default: super.attributeChangedCallback(e, t, n);
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
handlePaddingVerticalChange(e) {
|
|
1219
|
+
this.$bodyContainer.paddingTop = e, this.$bodyContainer.paddingBottom = e;
|
|
1220
|
+
}
|
|
1221
|
+
handlePaddingHorizontalChange(e) {
|
|
1222
|
+
this.$headerContainer.paddingLeft = e, this.$headerContainer.paddingRight = e, this.$bodyContainer.paddingLeft = e, this.$bodyContainer.paddingRight = e, this.$contactContainer.paddingLeft = e, this.$contactContainer.paddingRight = e, this.$footerContainer.paddingLeft = e, this.$footerContainer.paddingRight = e, this.$imageContainer.paddingLeft = e, this.$imageContainer.paddingRight = e;
|
|
1223
|
+
}
|
|
2032
1224
|
};
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
1225
|
+
customElements.get("px-page") === void 0 && customElements.define("px-page", H);
|
|
1226
|
+
//#endregion
|
|
1227
|
+
//#region ../Section/src/Section.ts
|
|
1228
|
+
var U = new CSSStyleSheet();
|
|
1229
|
+
U.replaceSync(b);
|
|
1230
|
+
var W = class extends n {
|
|
1231
|
+
constructor() {
|
|
1232
|
+
super(U), this.template = () => "\n <px-container border-radius=\"none\" padding-inline=\"none\">\n <div class=\"content-wrapper\">\n <px-vstack gap=\"heading-to-content\">\n <slot name=\"heading\"></slot>\n <px-vstack gap=\"none\">\n <slot></slot>\n </px-vstack>\n </px-vstack>\n </div>\n </px-container>\n <div class=\"content-wrapper\">\n <slot name=\"overlap\"></slot>\n </div>\n ", this.shadowRoot.innerHTML = this.template();
|
|
1233
|
+
}
|
|
1234
|
+
connectedCallback() {
|
|
1235
|
+
v(this.$container, "background-color", this.backgroundColor), !this.paddingBlock && !this.paddingTop && !this.paddingBottom && !this.paddingBlockMobile && !this.paddingTopMobile && !this.paddingBottomMobile && !this.paddingBlockTablet && !this.paddingTopTablet && !this.paddingBottomTablet && !this.paddingBlockLaptop && !this.paddingTopLaptop && !this.paddingBottomLaptop && (this.$container.paddingBlock = "none"), this.setHeadingSpacing = this.setHeadingSpacing.bind(this), this.setHeadingSpacing(), this.$slotHeading?.addEventListener("slotchange", this.setHeadingSpacing), this.toggleOverlapSpacing = this.toggleOverlapSpacing.bind(this), this.toggleOverlapSpacing(), this.$slotOverlap?.addEventListener("slotchange", this.toggleOverlapSpacing);
|
|
1236
|
+
}
|
|
1237
|
+
static get observedAttributes() {
|
|
1238
|
+
return [
|
|
1239
|
+
...super.observedAttributes,
|
|
1240
|
+
"background-color",
|
|
1241
|
+
"background-gradient",
|
|
1242
|
+
"background-image",
|
|
1243
|
+
"background-image--mobile",
|
|
1244
|
+
"background-image--tablet",
|
|
1245
|
+
"background-image--laptop",
|
|
1246
|
+
"background-size",
|
|
1247
|
+
"background-position",
|
|
1248
|
+
"padding-block",
|
|
1249
|
+
"padding-top",
|
|
1250
|
+
"padding-bottom",
|
|
1251
|
+
"padding-block--mobile",
|
|
1252
|
+
"padding-top--mobile",
|
|
1253
|
+
"padding-bottom--mobile",
|
|
1254
|
+
"padding-block--tablet",
|
|
1255
|
+
"padding-top--tablet",
|
|
1256
|
+
"padding-bottom--tablet",
|
|
1257
|
+
"padding-block--laptop",
|
|
1258
|
+
"padding-top--laptop",
|
|
1259
|
+
"padding-bottom--laptop",
|
|
1260
|
+
"border",
|
|
1261
|
+
"border-side",
|
|
1262
|
+
"border-side--mobile",
|
|
1263
|
+
"border-side--tablet",
|
|
1264
|
+
"border-side--laptop"
|
|
1265
|
+
];
|
|
1266
|
+
}
|
|
1267
|
+
attributeChangedCallback(e, t, n) {
|
|
1268
|
+
if (t !== n) switch (e) {
|
|
1269
|
+
case "background-color":
|
|
1270
|
+
this.$container.backgroundColor = r.indexOf(n) > 0 ? n : "none";
|
|
1271
|
+
break;
|
|
1272
|
+
case "background-gradient":
|
|
1273
|
+
this.$container.gradient = this.gradient;
|
|
1274
|
+
break;
|
|
1275
|
+
case "background-image":
|
|
1276
|
+
this.$container.backgroundImage = n;
|
|
1277
|
+
break;
|
|
1278
|
+
case "background-image--mobile":
|
|
1279
|
+
this.$container.backgroundImageMobile = n;
|
|
1280
|
+
break;
|
|
1281
|
+
case "background-image--tablet":
|
|
1282
|
+
this.$container.backgroundImageTablet = n;
|
|
1283
|
+
break;
|
|
1284
|
+
case "background-image--laptop":
|
|
1285
|
+
this.$container.backgroundImageLaptop = n;
|
|
1286
|
+
break;
|
|
1287
|
+
case "background-size":
|
|
1288
|
+
this.$container.backgroundSize = n;
|
|
1289
|
+
break;
|
|
1290
|
+
case "background-position":
|
|
1291
|
+
this.$container.backgroundPosition = n;
|
|
1292
|
+
break;
|
|
1293
|
+
case "padding-block":
|
|
1294
|
+
this.$container.paddingBlock = n;
|
|
1295
|
+
break;
|
|
1296
|
+
case "padding-top":
|
|
1297
|
+
this.$container.paddingTop = n;
|
|
1298
|
+
break;
|
|
1299
|
+
case "padding-bottom":
|
|
1300
|
+
this.$container.paddingBottom = n;
|
|
1301
|
+
break;
|
|
1302
|
+
case "padding-block--mobile":
|
|
1303
|
+
this.$container.paddingBlockMobile = n;
|
|
1304
|
+
break;
|
|
1305
|
+
case "padding-top--mobile":
|
|
1306
|
+
this.$container.paddingTopMobile = n;
|
|
1307
|
+
break;
|
|
1308
|
+
case "padding-bottom--mobile":
|
|
1309
|
+
this.$container.paddingBottomMobile = n;
|
|
1310
|
+
break;
|
|
1311
|
+
case "padding-block--tablet":
|
|
1312
|
+
this.$container.paddingBlockTablet = n;
|
|
1313
|
+
break;
|
|
1314
|
+
case "padding-top--tablet":
|
|
1315
|
+
this.$container.paddingTopTablet = n;
|
|
1316
|
+
break;
|
|
1317
|
+
case "padding-bottom--tablet":
|
|
1318
|
+
this.$container.paddingBottomTablet = n;
|
|
1319
|
+
break;
|
|
1320
|
+
case "padding-block--laptop":
|
|
1321
|
+
this.$container.paddingBlockLaptop = n;
|
|
1322
|
+
break;
|
|
1323
|
+
case "padding-top--laptop":
|
|
1324
|
+
this.$container.paddingTopLaptop = n;
|
|
1325
|
+
break;
|
|
1326
|
+
case "padding-bottom--laptop":
|
|
1327
|
+
this.$container.paddingBottomLaptop = n;
|
|
1328
|
+
break;
|
|
1329
|
+
case "border":
|
|
1330
|
+
this.$container.border = n;
|
|
1331
|
+
break;
|
|
1332
|
+
case "border-side":
|
|
1333
|
+
this.$container.borderSide = n;
|
|
1334
|
+
break;
|
|
1335
|
+
case "border-side--mobile":
|
|
1336
|
+
this.$container.borderSideMobile = n;
|
|
1337
|
+
break;
|
|
1338
|
+
case "border-side--tablet":
|
|
1339
|
+
this.$container.borderSideTablet = n;
|
|
1340
|
+
break;
|
|
1341
|
+
case "border-side--laptop":
|
|
1342
|
+
this.$container.borderSideLaptop = n;
|
|
1343
|
+
break;
|
|
1344
|
+
default: super.attributeChangedCallback(e, t, n);
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
disconnectedCallback() {
|
|
1348
|
+
this.$slotHeading?.removeEventListener("slotchange", this.setHeadingSpacing), this.$slotOverlap?.removeEventListener("slotchange", this.toggleOverlapSpacing);
|
|
1349
|
+
}
|
|
1350
|
+
toggleOverlapSpacing() {
|
|
1351
|
+
let e = this.$slotOverlap, t = this.$mainContentWrapper;
|
|
1352
|
+
if (!e || !t) return;
|
|
1353
|
+
let n = e.assignedNodes({ flatten: !0 }).some(this.isNotEmptyNode);
|
|
1354
|
+
t.classList.toggle("overlapped", n);
|
|
1355
|
+
}
|
|
1356
|
+
isNotEmptyNode(e) {
|
|
1357
|
+
return e.nodeType === Node.ELEMENT_NODE || e.nodeType === Node.TEXT_NODE && (e.textContent ?? "").trim().length > 0;
|
|
1358
|
+
}
|
|
1359
|
+
setHeadingSpacing() {
|
|
1360
|
+
let e = this.$slotHeading, t = this.shadowRoot?.querySelector("px-vstack");
|
|
1361
|
+
e && t && (e.assignedElements().length > 0 ? t.setAttribute("gap", "heading-to-content") : t.setAttribute("gap", "none"));
|
|
1362
|
+
}
|
|
1363
|
+
get $container() {
|
|
1364
|
+
return this.shadowRoot?.querySelector("px-container");
|
|
1365
|
+
}
|
|
1366
|
+
get $mainContentWrapper() {
|
|
1367
|
+
return this.$container?.querySelector(".content-wrapper");
|
|
1368
|
+
}
|
|
1369
|
+
get $slotOverlap() {
|
|
1370
|
+
return this.shadowRoot?.querySelector("slot[name=\"overlap\"]");
|
|
1371
|
+
}
|
|
1372
|
+
get $slottedOverlap() {
|
|
1373
|
+
return this.querySelector("[slot=\"overlap\"]");
|
|
1374
|
+
}
|
|
1375
|
+
get $slotHeading() {
|
|
1376
|
+
return this.shadowRoot?.querySelector("slot[name=\"heading\"]");
|
|
1377
|
+
}
|
|
1378
|
+
get $slottedHeading() {
|
|
1379
|
+
return this.querySelector("[slot=\"heading\"]");
|
|
1380
|
+
}
|
|
1381
|
+
get backgroundColor() {
|
|
1382
|
+
return this.getAttribute("background-color") || "none";
|
|
1383
|
+
}
|
|
1384
|
+
set backgroundColor(e) {
|
|
1385
|
+
v(this, "background-color", e);
|
|
1386
|
+
}
|
|
1387
|
+
get gradient() {
|
|
1388
|
+
return this.getAttribute("background-gradient");
|
|
1389
|
+
}
|
|
1390
|
+
set gradient(e) {
|
|
1391
|
+
v(this, "background-gradient", e);
|
|
1392
|
+
}
|
|
1393
|
+
get backgroundImage() {
|
|
1394
|
+
return this.getAttribute("background-image");
|
|
1395
|
+
}
|
|
1396
|
+
set backgroundImage(e) {
|
|
1397
|
+
v(this, "background-image", e);
|
|
1398
|
+
}
|
|
1399
|
+
get backgroundImageMobile() {
|
|
1400
|
+
return this.getAttribute("background-image--mobile");
|
|
1401
|
+
}
|
|
1402
|
+
set backgroundImageMobile(e) {
|
|
1403
|
+
v(this, "background-image--mobile", e);
|
|
1404
|
+
}
|
|
1405
|
+
get backgroundImageTablet() {
|
|
1406
|
+
return this.getAttribute("background-image--tablet");
|
|
1407
|
+
}
|
|
1408
|
+
set backgroundImageTablet(e) {
|
|
1409
|
+
v(this, "background-image--tablet", e);
|
|
1410
|
+
}
|
|
1411
|
+
get backgroundImageLaptop() {
|
|
1412
|
+
return this.getAttribute("background-image--laptop");
|
|
1413
|
+
}
|
|
1414
|
+
set backgroundImageLaptop(e) {
|
|
1415
|
+
v(this, "background-image--laptop", e);
|
|
1416
|
+
}
|
|
1417
|
+
get backgroundSize() {
|
|
1418
|
+
return this.getAttribute("background-size");
|
|
1419
|
+
}
|
|
1420
|
+
set backgroundSize(e) {
|
|
1421
|
+
v(this, "background-size", e);
|
|
1422
|
+
}
|
|
1423
|
+
get backgroundPosition() {
|
|
1424
|
+
return this.getAttribute("background-position");
|
|
1425
|
+
}
|
|
1426
|
+
set backgroundPosition(e) {
|
|
1427
|
+
v(this, "background-position", e);
|
|
1428
|
+
}
|
|
1429
|
+
get paddingBlock() {
|
|
1430
|
+
return this.getAttribute("padding-block");
|
|
1431
|
+
}
|
|
1432
|
+
set paddingBlock(e) {
|
|
1433
|
+
v(this, "padding-block", e);
|
|
1434
|
+
}
|
|
1435
|
+
get paddingTop() {
|
|
1436
|
+
return this.getAttribute("padding-top");
|
|
1437
|
+
}
|
|
1438
|
+
set paddingTop(e) {
|
|
1439
|
+
v(this, "padding-top", e);
|
|
1440
|
+
}
|
|
1441
|
+
get paddingBottom() {
|
|
1442
|
+
return this.getAttribute("padding-bottom");
|
|
1443
|
+
}
|
|
1444
|
+
set paddingBottom(e) {
|
|
1445
|
+
v(this, "padding-bottom", e);
|
|
1446
|
+
}
|
|
1447
|
+
get paddingBlockMobile() {
|
|
1448
|
+
return this.getAttribute("padding-block--mobile");
|
|
1449
|
+
}
|
|
1450
|
+
set paddingBlockMobile(e) {
|
|
1451
|
+
v(this, "padding-block--mobile", e);
|
|
1452
|
+
}
|
|
1453
|
+
get paddingTopMobile() {
|
|
1454
|
+
return this.getAttribute("padding-top--mobile");
|
|
1455
|
+
}
|
|
1456
|
+
set paddingTopMobile(e) {
|
|
1457
|
+
v(this, "padding-top--mobile", e);
|
|
1458
|
+
}
|
|
1459
|
+
get paddingBottomMobile() {
|
|
1460
|
+
return this.getAttribute("padding-bottom--mobile");
|
|
1461
|
+
}
|
|
1462
|
+
set paddingBottomMobile(e) {
|
|
1463
|
+
v(this, "padding-bottom--mobile", e);
|
|
1464
|
+
}
|
|
1465
|
+
get paddingBlockTablet() {
|
|
1466
|
+
return this.getAttribute("padding-block--tablet");
|
|
1467
|
+
}
|
|
1468
|
+
set paddingBlockTablet(e) {
|
|
1469
|
+
v(this, "padding-block--tablet", e);
|
|
1470
|
+
}
|
|
1471
|
+
get paddingTopTablet() {
|
|
1472
|
+
return this.getAttribute("padding-top--tablet");
|
|
1473
|
+
}
|
|
1474
|
+
set paddingTopTablet(e) {
|
|
1475
|
+
v(this, "padding-top--tablet", e);
|
|
1476
|
+
}
|
|
1477
|
+
get paddingBottomTablet() {
|
|
1478
|
+
return this.getAttribute("padding-bottom--tablet");
|
|
1479
|
+
}
|
|
1480
|
+
set paddingBottomTablet(e) {
|
|
1481
|
+
v(this, "padding-bottom--tablet", e);
|
|
1482
|
+
}
|
|
1483
|
+
get paddingBlockLaptop() {
|
|
1484
|
+
return this.getAttribute("padding-block--laptop");
|
|
1485
|
+
}
|
|
1486
|
+
set paddingBlockLaptop(e) {
|
|
1487
|
+
v(this, "padding-block--laptop", e);
|
|
1488
|
+
}
|
|
1489
|
+
get paddingTopLaptop() {
|
|
1490
|
+
return this.getAttribute("padding-top--laptop");
|
|
1491
|
+
}
|
|
1492
|
+
set paddingTopLaptop(e) {
|
|
1493
|
+
v(this, "padding-top--laptop", e);
|
|
1494
|
+
}
|
|
1495
|
+
get paddingBottomLaptop() {
|
|
1496
|
+
return this.getAttribute("padding-bottom--laptop");
|
|
1497
|
+
}
|
|
1498
|
+
set paddingBottomLaptop(e) {
|
|
1499
|
+
v(this, "padding-bottom--laptop", e);
|
|
1500
|
+
}
|
|
1501
|
+
get border() {
|
|
1502
|
+
return this.getAttribute("border");
|
|
1503
|
+
}
|
|
1504
|
+
set border(e) {
|
|
1505
|
+
v(this, "border", e);
|
|
1506
|
+
}
|
|
1507
|
+
get borderSide() {
|
|
1508
|
+
return this.getAttribute("border-side");
|
|
1509
|
+
}
|
|
1510
|
+
set borderSide(e) {
|
|
1511
|
+
v(this, "border-side", e);
|
|
1512
|
+
}
|
|
1513
|
+
get borderSideMobile() {
|
|
1514
|
+
return this.getAttribute("border-side--mobile");
|
|
1515
|
+
}
|
|
1516
|
+
set borderSideMobile(e) {
|
|
1517
|
+
v(this, "border-side--mobile", e);
|
|
1518
|
+
}
|
|
1519
|
+
get borderSideTablet() {
|
|
1520
|
+
return this.getAttribute("border-side--tablet");
|
|
1521
|
+
}
|
|
1522
|
+
set borderSideTablet(e) {
|
|
1523
|
+
v(this, "border-side--tablet", e);
|
|
1524
|
+
}
|
|
1525
|
+
get borderSideLaptop() {
|
|
1526
|
+
return this.getAttribute("border-side--laptop");
|
|
1527
|
+
}
|
|
1528
|
+
set borderSideLaptop(e) {
|
|
1529
|
+
v(this, "border-side--laptop", e);
|
|
1530
|
+
}
|
|
1531
|
+
};
|
|
1532
|
+
customElements.get("px-section") || customElements.define("px-section", W);
|
|
1533
|
+
//#endregion
|
|
1534
|
+
//#region ../Grid/src/grid.css?inline
|
|
1535
|
+
var G = ":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}}", K = new CSSStyleSheet();
|
|
1536
|
+
K.replaceSync(G);
|
|
1537
|
+
var q = [
|
|
1538
|
+
"1",
|
|
1539
|
+
"2",
|
|
1540
|
+
"3",
|
|
1541
|
+
"4",
|
|
1542
|
+
"5",
|
|
1543
|
+
"6",
|
|
1544
|
+
"7",
|
|
1545
|
+
"8",
|
|
1546
|
+
"9",
|
|
1547
|
+
"10",
|
|
1548
|
+
"11",
|
|
1549
|
+
"12"
|
|
1550
|
+
], J = [
|
|
1551
|
+
"",
|
|
1552
|
+
"start",
|
|
1553
|
+
"end",
|
|
1554
|
+
"center",
|
|
1555
|
+
"space-between",
|
|
1556
|
+
"space-around",
|
|
1557
|
+
"space-evenly",
|
|
1558
|
+
"stretch"
|
|
1559
|
+
], Y = [
|
|
1560
|
+
"",
|
|
1561
|
+
"start",
|
|
1562
|
+
"end",
|
|
1563
|
+
"center",
|
|
1564
|
+
"stretch"
|
|
1565
|
+
], X = f("gap", (e, t, n) => `:host([${e}${n ? `--${n}` : ""}='${t}']) .grid`, p, "px-spacing", "--grid-gap"), Z = class extends t {
|
|
1566
|
+
static {
|
|
1567
|
+
this.nativeName = "div";
|
|
1568
|
+
}
|
|
1569
|
+
constructor() {
|
|
1570
|
+
super(K, X), this.template = () => "<div class=\"grid\">\n <slot></slot>\n </div>", this.shadowRoot.innerHTML = this.template();
|
|
1571
|
+
}
|
|
1572
|
+
static get observedAttributes() {
|
|
1573
|
+
return [
|
|
1574
|
+
...super.observedAttributes,
|
|
1575
|
+
"grid-cols",
|
|
1576
|
+
"grid-cols--mobile",
|
|
1577
|
+
"grid-cols--tablet",
|
|
1578
|
+
"grid-cols--laptop",
|
|
1579
|
+
"justify-content",
|
|
1580
|
+
"justify-items",
|
|
1581
|
+
"align-content",
|
|
1582
|
+
"align-items",
|
|
1583
|
+
"justify-content--mobile",
|
|
1584
|
+
"justify-items--mobile",
|
|
1585
|
+
"align-content--mobile",
|
|
1586
|
+
"align-items--mobile",
|
|
1587
|
+
"justify-content--tablet",
|
|
1588
|
+
"justify-items--tablet",
|
|
1589
|
+
"align-content--tablet",
|
|
1590
|
+
"align-items--tablet",
|
|
1591
|
+
"justify-content--laptop",
|
|
1592
|
+
"justify-items--laptop",
|
|
1593
|
+
"align-content--laptop",
|
|
1594
|
+
"align-items--laptop",
|
|
1595
|
+
"justify-content--desktop",
|
|
1596
|
+
"justify-items--desktop",
|
|
1597
|
+
"align-content--desktop",
|
|
1598
|
+
"align-items--desktop"
|
|
1599
|
+
];
|
|
1600
|
+
}
|
|
1601
|
+
connectedCallback() {
|
|
1602
|
+
this.gap ||= "default", this.alignItems ||= "stretch";
|
|
1603
|
+
}
|
|
1604
|
+
attributeChangedCallback(e, t, n) {
|
|
1605
|
+
if (t !== n) switch (e) {
|
|
1606
|
+
case "grid-cols":
|
|
1607
|
+
case "grid-cols--mobile":
|
|
1608
|
+
case "grid-cols--tablet":
|
|
1609
|
+
case "grid-cols--laptop":
|
|
1610
|
+
this.updateAttribute(e, t, n, q);
|
|
1611
|
+
break;
|
|
1612
|
+
case "justify-content":
|
|
1613
|
+
case "align-content":
|
|
1614
|
+
case "justify-content--mobile":
|
|
1615
|
+
case "align-content--mobile":
|
|
1616
|
+
case "justify-content--tablet":
|
|
1617
|
+
case "align-content--tablet":
|
|
1618
|
+
case "justify-content--laptop":
|
|
1619
|
+
case "align-content--laptop":
|
|
1620
|
+
case "justify-content--desktop":
|
|
1621
|
+
case "align-content--desktop":
|
|
1622
|
+
this.updateAttribute(e, t, n, J);
|
|
1623
|
+
break;
|
|
1624
|
+
case "justify-items":
|
|
1625
|
+
case "align-items":
|
|
1626
|
+
case "justify-items--mobile":
|
|
1627
|
+
case "align-items--mobile":
|
|
1628
|
+
case "justify-items--tablet":
|
|
1629
|
+
case "align-items--tablet":
|
|
1630
|
+
case "justify-items--laptop":
|
|
1631
|
+
case "align-items--laptop":
|
|
1632
|
+
case "justify-items--desktop":
|
|
1633
|
+
case "align-items--desktop":
|
|
1634
|
+
this.updateAttribute(e, t, n, Y);
|
|
1635
|
+
break;
|
|
1636
|
+
default: super.attributeChangedCallback(e, t, n);
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
updateGap(e, t, n) {
|
|
1640
|
+
if (!this.checkName(n, t)) {
|
|
1641
|
+
h(`"${t}" is not a valid gap value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
1642
|
+
return;
|
|
1643
|
+
}
|
|
1644
|
+
let r = (e) => {
|
|
1645
|
+
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)`));
|
|
1646
|
+
};
|
|
1647
|
+
r(e), r(t);
|
|
1648
|
+
}
|
|
1649
|
+
updateAttribute(e, t, n, r) {
|
|
1650
|
+
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}`)) : h(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
1651
|
+
}
|
|
1652
|
+
get gap() {
|
|
1653
|
+
return this.getAttribute("gap");
|
|
1654
|
+
}
|
|
1655
|
+
set gap(e) {
|
|
1656
|
+
this._updateAttribute("gap", e);
|
|
1657
|
+
}
|
|
1658
|
+
get gapMobile() {
|
|
1659
|
+
return this.getAttribute("gap--mobile");
|
|
1660
|
+
}
|
|
1661
|
+
set gapMobile(e) {
|
|
1662
|
+
this._updateAttribute("gap--mobile", e);
|
|
1663
|
+
}
|
|
1664
|
+
get gapTablet() {
|
|
1665
|
+
return this.getAttribute("gap--tablet");
|
|
1666
|
+
}
|
|
1667
|
+
set gapTablet(e) {
|
|
1668
|
+
this._updateAttribute("gap--tablet", e);
|
|
1669
|
+
}
|
|
1670
|
+
get gapLaptop() {
|
|
1671
|
+
return this.getAttribute("gap--laptop");
|
|
1672
|
+
}
|
|
1673
|
+
set gapLaptop(e) {
|
|
1674
|
+
this._updateAttribute("gap--laptop", e);
|
|
1675
|
+
}
|
|
1676
|
+
get gridCols() {
|
|
1677
|
+
return this.getAttribute("grid-cols");
|
|
1678
|
+
}
|
|
1679
|
+
set gridCols(e) {
|
|
1680
|
+
this._updateAttribute("grid-cols", e);
|
|
1681
|
+
}
|
|
1682
|
+
get gridColsMobile() {
|
|
1683
|
+
return this.getAttribute("grid-cols--mobile");
|
|
1684
|
+
}
|
|
1685
|
+
set gridColsMobile(e) {
|
|
1686
|
+
this._updateAttribute("grid-cols--mobile", e);
|
|
1687
|
+
}
|
|
1688
|
+
get gridColsTablet() {
|
|
1689
|
+
return this.getAttribute("grid-cols--tablet");
|
|
1690
|
+
}
|
|
1691
|
+
set gridColsTablet(e) {
|
|
1692
|
+
this._updateAttribute("grid-cols--tablet", e);
|
|
1693
|
+
}
|
|
1694
|
+
get gridColsLaptop() {
|
|
1695
|
+
return this.getAttribute("grid-cols--laptop");
|
|
1696
|
+
}
|
|
1697
|
+
set gridColsLaptop(e) {
|
|
1698
|
+
this._updateAttribute("grid-cols--laptop", e);
|
|
1699
|
+
}
|
|
1700
|
+
get justifyContent() {
|
|
1701
|
+
return this.getAttribute("justify-content");
|
|
1702
|
+
}
|
|
1703
|
+
set justifyContent(e) {
|
|
1704
|
+
this._updateAttribute("justify-content", e);
|
|
1705
|
+
}
|
|
1706
|
+
get justifyItems() {
|
|
1707
|
+
return this.getAttribute("justify-items");
|
|
1708
|
+
}
|
|
1709
|
+
set justifyItems(e) {
|
|
1710
|
+
this._updateAttribute("justify-items", e);
|
|
1711
|
+
}
|
|
1712
|
+
get alignContent() {
|
|
1713
|
+
return this.getAttribute("align-content");
|
|
1714
|
+
}
|
|
1715
|
+
set alignContent(e) {
|
|
1716
|
+
this._updateAttribute("align-content", e);
|
|
1717
|
+
}
|
|
1718
|
+
get alignItems() {
|
|
1719
|
+
return this.getAttribute("align-items");
|
|
1720
|
+
}
|
|
1721
|
+
set alignItems(e) {
|
|
1722
|
+
this._updateAttribute("align-items", e);
|
|
1723
|
+
}
|
|
1724
|
+
get justifyContentMobile() {
|
|
1725
|
+
return this.getAttribute("justify-content--mobile");
|
|
1726
|
+
}
|
|
1727
|
+
set justifyContentMobile(e) {
|
|
1728
|
+
this._updateAttribute("justify-content--mobile", e);
|
|
1729
|
+
}
|
|
1730
|
+
get justifyItemsMobile() {
|
|
1731
|
+
return this.getAttribute("justify-items--mobile");
|
|
1732
|
+
}
|
|
1733
|
+
set justifyItemsMobile(e) {
|
|
1734
|
+
this._updateAttribute("justify-items--mobile", e);
|
|
1735
|
+
}
|
|
1736
|
+
get alignContentMobile() {
|
|
1737
|
+
return this.getAttribute("align-content--mobile");
|
|
1738
|
+
}
|
|
1739
|
+
set alignContentMobile(e) {
|
|
1740
|
+
this._updateAttribute("align-content--mobile", e);
|
|
1741
|
+
}
|
|
1742
|
+
get alignItemsMobile() {
|
|
1743
|
+
return this.getAttribute("align-items--mobile");
|
|
1744
|
+
}
|
|
1745
|
+
set alignItemsMobile(e) {
|
|
1746
|
+
this._updateAttribute("align-items--mobile", e);
|
|
1747
|
+
}
|
|
1748
|
+
get justifyContentTablet() {
|
|
1749
|
+
return this.getAttribute("justify-content--tablet");
|
|
1750
|
+
}
|
|
1751
|
+
set justifyContentTablet(e) {
|
|
1752
|
+
this._updateAttribute("justify-content--tablet", e);
|
|
1753
|
+
}
|
|
1754
|
+
get justifyItemsTablet() {
|
|
1755
|
+
return this.getAttribute("justify-items--tablet");
|
|
1756
|
+
}
|
|
1757
|
+
set justifyItemsTablet(e) {
|
|
1758
|
+
this._updateAttribute("justify-items--tablet", e);
|
|
1759
|
+
}
|
|
1760
|
+
get alignContentTablet() {
|
|
1761
|
+
return this.getAttribute("align-content--tablet");
|
|
1762
|
+
}
|
|
1763
|
+
set alignContentTablet(e) {
|
|
1764
|
+
this._updateAttribute("align-content--tablet", e);
|
|
1765
|
+
}
|
|
1766
|
+
get alignItemsTablet() {
|
|
1767
|
+
return this.getAttribute("align-items--tablet");
|
|
1768
|
+
}
|
|
1769
|
+
set alignItemsTablet(e) {
|
|
1770
|
+
this._updateAttribute("align-items--tablet", e);
|
|
1771
|
+
}
|
|
1772
|
+
get justifyContentLaptop() {
|
|
1773
|
+
return this.getAttribute("justify-content--laptop");
|
|
1774
|
+
}
|
|
1775
|
+
set justifyContentLaptop(e) {
|
|
1776
|
+
this._updateAttribute("justify-content--laptop", e);
|
|
1777
|
+
}
|
|
1778
|
+
get justifyItemsLaptop() {
|
|
1779
|
+
return this.getAttribute("justify-items--laptop");
|
|
1780
|
+
}
|
|
1781
|
+
set justifyItemsLaptop(e) {
|
|
1782
|
+
this._updateAttribute("justify-items--laptop", e);
|
|
1783
|
+
}
|
|
1784
|
+
get alignContentLaptop() {
|
|
1785
|
+
return this.getAttribute("align-content--laptop");
|
|
1786
|
+
}
|
|
1787
|
+
set alignContentLaptop(e) {
|
|
1788
|
+
this._updateAttribute("align-content--laptop", e);
|
|
1789
|
+
}
|
|
1790
|
+
get alignItemsLaptop() {
|
|
1791
|
+
return this.getAttribute("align-items--laptop");
|
|
1792
|
+
}
|
|
1793
|
+
set alignItemsLaptop(e) {
|
|
1794
|
+
this._updateAttribute("align-items--laptop", e);
|
|
1795
|
+
}
|
|
1796
|
+
get justifyContentDesktop() {
|
|
1797
|
+
return this.getAttribute("justify-content--desktop");
|
|
1798
|
+
}
|
|
1799
|
+
set justifyContentDesktop(e) {
|
|
1800
|
+
this._updateAttribute("justify-content--desktop", e);
|
|
1801
|
+
}
|
|
1802
|
+
get justifyItemsDesktop() {
|
|
1803
|
+
return this.getAttribute("justify-items--desktop");
|
|
1804
|
+
}
|
|
1805
|
+
set justifyItemsDesktop(e) {
|
|
1806
|
+
this._updateAttribute("justify-items--desktop", e);
|
|
1807
|
+
}
|
|
1808
|
+
get alignContentDesktop() {
|
|
1809
|
+
return this.getAttribute("align-content--desktop");
|
|
1810
|
+
}
|
|
1811
|
+
set alignContentDesktop(e) {
|
|
1812
|
+
this._updateAttribute("align-content--desktop", e);
|
|
1813
|
+
}
|
|
1814
|
+
get alignItemsDesktop() {
|
|
1815
|
+
return this.getAttribute("align-items--desktop");
|
|
1816
|
+
}
|
|
1817
|
+
set alignItemsDesktop(e) {
|
|
1818
|
+
this._updateAttribute("align-items--desktop", e);
|
|
1819
|
+
}
|
|
2316
1820
|
};
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
1821
|
+
customElements.get("px-grid") || customElements.define("px-grid", Z);
|
|
1822
|
+
//#endregion
|
|
1823
|
+
//#region src/ContentHeader.ts
|
|
1824
|
+
var Q = new CSSStyleSheet();
|
|
1825
|
+
Q.replaceSync(y);
|
|
1826
|
+
var $ = class extends t {
|
|
1827
|
+
static {
|
|
1828
|
+
this.nativeName = "div";
|
|
1829
|
+
}
|
|
1830
|
+
constructor() {
|
|
1831
|
+
super(Q), this.template = () => "<div class=\"content-header\">\n <div class=\"contrast-helper\"></div>\n <px-section padding-block=\"l\">\n <px-grid gap=\"none\">\n <px-container padding=\"none\" border-radius=\"none\" background-color=\"none\" >\n <div class=\"content-header-content\">\n <px-vstack gap=\"heading-to-subtitle\">\n <px-h1><slot></slot></px-h1>\n <slot name=\"subtitle\"></slot>\n </px-vstack>\n <px-stack gap=\"s\" direction=\"row\" direction--mobile=\"column\">\n <slot name=\"patch\" shrink></slot>\n <slot name=\"patch-description\"></slot>\n </px-stack>\n </div>\n </px-container>\n </px-grid>\n <slot name=\"overlap\" slot=\"overlap\"></slot>\n </px-section>\n </div>", this.shadowRoot.innerHTML = this.template();
|
|
1832
|
+
}
|
|
1833
|
+
static get observedAttributes() {
|
|
1834
|
+
return [
|
|
1835
|
+
"background-color",
|
|
1836
|
+
"background-gradient",
|
|
1837
|
+
"background-image",
|
|
1838
|
+
"background-image--mobile",
|
|
1839
|
+
"background-image--tablet",
|
|
1840
|
+
"background-image--laptop",
|
|
1841
|
+
"background-size",
|
|
1842
|
+
"background-position",
|
|
1843
|
+
"contrast-helper-gradient",
|
|
1844
|
+
"contrast-helper-overlay",
|
|
1845
|
+
"min-height",
|
|
1846
|
+
"has-gridding",
|
|
1847
|
+
"has-gridding--mobile",
|
|
1848
|
+
"has-gridding--tablet",
|
|
1849
|
+
"has-gridding--laptop",
|
|
1850
|
+
"has-gridding--desktop",
|
|
1851
|
+
"inverted"
|
|
1852
|
+
];
|
|
1853
|
+
}
|
|
1854
|
+
connectedCallback() {
|
|
1855
|
+
this.styleSubtitleSlot = this.styleSubtitleSlot.bind(this), this.stylepatchDescriptionSlotted = this.stylepatchDescriptionSlotted.bind(this), this.styleSubtitleSlot(), this.stylepatchDescriptionSlotted(), this.createGridding(), this.$subtitleSlot?.addEventListener("slotchange", this.styleSubtitleSlot), this.$patchDescriptionSlot?.addEventListener("slotchange", this.stylepatchDescriptionSlotted);
|
|
1856
|
+
}
|
|
1857
|
+
attributeChangedCallback(e, t, n) {
|
|
1858
|
+
if (t !== n) switch (e) {
|
|
1859
|
+
case "background-color":
|
|
1860
|
+
this.$section.backgroundColor = r.indexOf(n) > 0 ? n : "none";
|
|
1861
|
+
break;
|
|
1862
|
+
case "background-gradient":
|
|
1863
|
+
this.$section.gradient = m.indexOf(n) > 0 ? n : "none";
|
|
1864
|
+
break;
|
|
1865
|
+
case "background-image":
|
|
1866
|
+
this.$section.backgroundImage = n;
|
|
1867
|
+
break;
|
|
1868
|
+
case "background-image--mobile":
|
|
1869
|
+
this.$section.backgroundImageMobile = n;
|
|
1870
|
+
break;
|
|
1871
|
+
case "background-image--tablet":
|
|
1872
|
+
this.$section.backgroundImageTablet = n;
|
|
1873
|
+
break;
|
|
1874
|
+
case "background-image--laptop":
|
|
1875
|
+
this.$section.backgroundImageLaptop = n;
|
|
1876
|
+
break;
|
|
1877
|
+
case "background-size":
|
|
1878
|
+
this.$section.backgroundSize = i.indexOf(n) > 0 ? n : "";
|
|
1879
|
+
break;
|
|
1880
|
+
case "background-position":
|
|
1881
|
+
this.$section.backgroundPosition = n;
|
|
1882
|
+
break;
|
|
1883
|
+
case "has-gridding":
|
|
1884
|
+
case "has-gridding--mobile":
|
|
1885
|
+
case "has-gridding--tablet":
|
|
1886
|
+
case "has-gridding--laptop":
|
|
1887
|
+
case "has-gridding--desktop":
|
|
1888
|
+
this.createGridding(n);
|
|
1889
|
+
break;
|
|
1890
|
+
case "inverted":
|
|
1891
|
+
for (let e = 0; e < this.$children.length; e++) this.$children[e].hasAttribute("inverted") || this.$children[e].toggleAttribute("inverted");
|
|
1892
|
+
this.$h1.toggleAttribute("inverted", n !== null), this.$el.toggleAttribute("inverted", n !== null);
|
|
1893
|
+
break;
|
|
1894
|
+
default: super.attributeChangedCallback(e, t, n);
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
disconnectedCallback() {
|
|
1898
|
+
this.$subtitleSlot?.removeEventListener("slotchange", this.styleSubtitleSlot), this.$patchDescriptionSlot?.removeEventListener("slotchange", this.stylepatchDescriptionSlotted);
|
|
1899
|
+
}
|
|
1900
|
+
stylepatchDescriptionSlotted() {
|
|
1901
|
+
this.$patchDescriptionSlotted && (this.$patchDescriptionSlotted.localName === "px-p" && this.$patchDescriptionSlotted.setAttribute("variant", "default"), (this.$patchDescriptionSlotted.localName === "px-p" || this.$patchDescriptionSlotted.localName === "px-span") && (this.$patchDescriptionSlotted.setAttribute("font-size", "body-l"), this.$patchDescriptionSlotted.removeAttribute("font-weight"), this.$patchDescriptionSlotted.removeAttribute("color")), this.$patchDescriptionSlotted.localName === "px-price" && this.$patchDescriptionSlotted.setAttribute("size", "m"));
|
|
1902
|
+
}
|
|
1903
|
+
styleSubtitleSlot() {
|
|
1904
|
+
this.$subtitleSlotted && this.$subtitleSlotted.setAttribute("variant", "subtitle");
|
|
1905
|
+
}
|
|
1906
|
+
createGridding(e) {
|
|
1907
|
+
let t = [
|
|
1908
|
+
{
|
|
1909
|
+
prop: "hasGridding",
|
|
1910
|
+
gridAttr: "grid-cols",
|
|
1911
|
+
attr: "col-span"
|
|
1912
|
+
},
|
|
1913
|
+
{
|
|
1914
|
+
prop: "hasGriddingMobile",
|
|
1915
|
+
gridAttr: "grid-cols--mobile",
|
|
1916
|
+
attr: "col-span--mobile"
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
prop: "hasGriddingTablet",
|
|
1920
|
+
gridAttr: "grid-cols--tablet",
|
|
1921
|
+
attr: "col-span--tablet"
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
prop: "hasGriddingLaptop",
|
|
1925
|
+
gridAttr: "grid-cols--laptop",
|
|
1926
|
+
attr: "col-span--laptop"
|
|
1927
|
+
},
|
|
1928
|
+
{
|
|
1929
|
+
prop: "hasGriddingDesktop",
|
|
1930
|
+
gridAttr: "grid-cols--desktop",
|
|
1931
|
+
attr: "col-span--desktop"
|
|
1932
|
+
}
|
|
1933
|
+
], n = this.shadowRoot.querySelector("px-grid > px-container");
|
|
1934
|
+
e === null ? t.forEach(({ gridAttr: e, attr: t }) => {
|
|
1935
|
+
this.$grid.setAttribute(e, "1"), n?.setAttribute(t, "1");
|
|
1936
|
+
}) : t.forEach(({ prop: e, gridAttr: t, attr: r }) => {
|
|
1937
|
+
this[e] && (this.$grid.setAttribute(t, "2"), n?.setAttribute(r, "1"));
|
|
1938
|
+
});
|
|
1939
|
+
}
|
|
1940
|
+
get $grid() {
|
|
1941
|
+
return this.shadowRoot.querySelector("px-grid");
|
|
1942
|
+
}
|
|
1943
|
+
get $section() {
|
|
1944
|
+
return this.shadowRoot.querySelector("px-section");
|
|
1945
|
+
}
|
|
1946
|
+
get $h1() {
|
|
1947
|
+
return this.shadowRoot.querySelector("px-h1");
|
|
1948
|
+
}
|
|
1949
|
+
get $subtitleSlot() {
|
|
1950
|
+
return this.shadowRoot?.querySelector("slot[name=\"subtitle\"]");
|
|
1951
|
+
}
|
|
1952
|
+
get $subtitleSlotted() {
|
|
1953
|
+
return this.querySelector("[slot=\"subtitle\"]");
|
|
1954
|
+
}
|
|
1955
|
+
get $patchDescriptionSlot() {
|
|
1956
|
+
return this.shadowRoot?.querySelector("slot[name=\"patch-description\"]");
|
|
1957
|
+
}
|
|
1958
|
+
get $patchDescriptionSlotted() {
|
|
1959
|
+
return this.querySelector("[slot=\"patch-description\"]");
|
|
1960
|
+
}
|
|
1961
|
+
get $overlapSlot() {
|
|
1962
|
+
return this.querySelector("[slot=\"overlap\"]");
|
|
1963
|
+
}
|
|
1964
|
+
get $children() {
|
|
1965
|
+
return this.querySelectorAll("px-content-header > *");
|
|
1966
|
+
}
|
|
1967
|
+
get backgroundColor() {
|
|
1968
|
+
return this.getAttribute("background-color");
|
|
1969
|
+
}
|
|
1970
|
+
set backgroundColor(e) {
|
|
1971
|
+
this._updateAttribute("background-color", e);
|
|
1972
|
+
}
|
|
1973
|
+
get gradient() {
|
|
1974
|
+
return this.getAttribute("background-gradient");
|
|
1975
|
+
}
|
|
1976
|
+
set gradient(e) {
|
|
1977
|
+
this._updateAttribute("background-gradient", e);
|
|
1978
|
+
}
|
|
1979
|
+
get backgroundImage() {
|
|
1980
|
+
return this.getAttribute("background-image");
|
|
1981
|
+
}
|
|
1982
|
+
set backgroundImage(e) {
|
|
1983
|
+
this._updateAttribute("background-image", e);
|
|
1984
|
+
}
|
|
1985
|
+
get backgroundImageMobile() {
|
|
1986
|
+
return this.getAttribute("background-image--mobile");
|
|
1987
|
+
}
|
|
1988
|
+
set backgroundImageMobile(e) {
|
|
1989
|
+
this._updateAttribute("background-image--mobile", e);
|
|
1990
|
+
}
|
|
1991
|
+
get backgroundImageTablet() {
|
|
1992
|
+
return this.getAttribute("background-image--tablet");
|
|
1993
|
+
}
|
|
1994
|
+
set backgroundImageTablet(e) {
|
|
1995
|
+
this._updateAttribute("background-image--tablet", e);
|
|
1996
|
+
}
|
|
1997
|
+
get backgroundImageLaptop() {
|
|
1998
|
+
return this.getAttribute("background-image--laptop");
|
|
1999
|
+
}
|
|
2000
|
+
set backgroundImageLaptop(e) {
|
|
2001
|
+
this._updateAttribute("background-image--laptop", e);
|
|
2002
|
+
}
|
|
2003
|
+
get backgroundSize() {
|
|
2004
|
+
return this.getAttribute("background-size");
|
|
2005
|
+
}
|
|
2006
|
+
set backgroundSize(e) {
|
|
2007
|
+
this._updateAttribute("background-size", e);
|
|
2008
|
+
}
|
|
2009
|
+
get backgroundPosition() {
|
|
2010
|
+
return this.getAttribute("background-position");
|
|
2011
|
+
}
|
|
2012
|
+
set backgroundPosition(e) {
|
|
2013
|
+
this._updateAttribute("background-position", e);
|
|
2014
|
+
}
|
|
2015
|
+
get gradientContrastHelper() {
|
|
2016
|
+
return this.hasAttribute("contrast-helper-gradient");
|
|
2017
|
+
}
|
|
2018
|
+
set gradientContrastHelper(e) {
|
|
2019
|
+
this._updateBooleanAttribute("contrast-helper-gradient", e);
|
|
2020
|
+
}
|
|
2021
|
+
get overlayContrastHelper() {
|
|
2022
|
+
return this.hasAttribute("contrast-helper-overlay");
|
|
2023
|
+
}
|
|
2024
|
+
set overlayContrastHelper(e) {
|
|
2025
|
+
this._updateBooleanAttribute("contrast-helper-overlay", e);
|
|
2026
|
+
}
|
|
2027
|
+
get hasGridding() {
|
|
2028
|
+
return this.hasAttribute("has-gridding");
|
|
2029
|
+
}
|
|
2030
|
+
set hasGridding(e) {
|
|
2031
|
+
this._updateBooleanAttribute("has-gridding", e);
|
|
2032
|
+
}
|
|
2033
|
+
get hasGriddingMobile() {
|
|
2034
|
+
return this.hasAttribute("has-gridding--mobile");
|
|
2035
|
+
}
|
|
2036
|
+
set hasGriddingMobile(e) {
|
|
2037
|
+
this._updateBooleanAttribute("has-gridding--mobile", e);
|
|
2038
|
+
}
|
|
2039
|
+
get hasGriddingTablet() {
|
|
2040
|
+
return this.hasAttribute("has-gridding--tablet");
|
|
2041
|
+
}
|
|
2042
|
+
set hasGriddingTablet(e) {
|
|
2043
|
+
this._updateBooleanAttribute("has-gridding--tablet", e);
|
|
2044
|
+
}
|
|
2045
|
+
get hasGriddingLaptop() {
|
|
2046
|
+
return this.hasAttribute("has-gridding--laptop");
|
|
2047
|
+
}
|
|
2048
|
+
set hasGriddingLaptop(e) {
|
|
2049
|
+
this._updateBooleanAttribute("has-gridding--laptop", e);
|
|
2050
|
+
}
|
|
2051
|
+
get hasGriddingDesktop() {
|
|
2052
|
+
return this.hasAttribute("has-gridding--desktop");
|
|
2053
|
+
}
|
|
2054
|
+
set hasGriddingDesktop(e) {
|
|
2055
|
+
this._updateBooleanAttribute("has-gridding--desktop", e);
|
|
2056
|
+
}
|
|
2057
|
+
get inverted() {
|
|
2058
|
+
return this.hasAttribute("inverted");
|
|
2059
|
+
}
|
|
2060
|
+
set inverted(e) {
|
|
2061
|
+
this._updateBooleanAttribute("inverted", e);
|
|
2062
|
+
}
|
|
2063
|
+
get minHeight() {
|
|
2064
|
+
return this.hasAttribute("min-height");
|
|
2065
|
+
}
|
|
2066
|
+
set minHeight(e) {
|
|
2067
|
+
this._updateBooleanAttribute("min-height", e);
|
|
2068
|
+
}
|
|
2322
2069
|
};
|
|
2070
|
+
customElements.get("px-content-header") || customElements.define("px-content-header", $);
|
|
2071
|
+
//#endregion
|
|
2072
|
+
export { $ as ContentHeader };
|