@proximus/lavender-footer-sitemap 1.0.0-alpha.1

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.
Files changed (2) hide show
  1. package/dist/index.js +628 -0
  2. package/package.json +46 -0
package/dist/index.js ADDED
@@ -0,0 +1,628 @@
1
+ import { PxElement as x, gridGapValues as Y, textalignValues as Z, fontweightValues as _, fontsizeValues as N, colorValues as V, headingValues as tt } from "@proximus/lavender-common";
2
+ import "@proximus/lavender-layout";
3
+ import "@proximus/lavender-accordion";
4
+ import "@proximus/lavender-link";
5
+ const et = ":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;gap:var(--grid-gap--mobile, var(--px-spacing-inside-section-default-mobile));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)}@media screen and (min-width: 768px){.grid{gap:var( --grid-gap--tablet, var(--px-spacing-inside-section-default-tablet) )}}@media screen and (min-width: 1025px){.grid{gap:var( --grid-gap--laptop, var(--px-spacing-inside-section-default-desktop) )}}.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 only screen and (max-width: 767px){.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 only screen and (min-width: 768px) and (max-width: 1024px){.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 only screen and (min-width: 1025px){.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}}", W = new CSSStyleSheet();
6
+ W.replaceSync(et);
7
+ const it = [
8
+ "1",
9
+ "2",
10
+ "3",
11
+ "4",
12
+ "5",
13
+ "6",
14
+ "7",
15
+ "8",
16
+ "9",
17
+ "10",
18
+ "11",
19
+ "12"
20
+ ], nt = [
21
+ "",
22
+ "start",
23
+ "end",
24
+ "center",
25
+ "space-between",
26
+ "space-around",
27
+ "space-evenly",
28
+ "stretch"
29
+ ], st = ["", "start", "end", "center", "stretch"], T = class T extends x {
30
+ constructor() {
31
+ super(W), this.template = () => `<div class="grid">
32
+ <slot></slot>
33
+ </div>`, this.shadowRoot.innerHTML = this.template();
34
+ }
35
+ static get observedAttributes() {
36
+ return [
37
+ ...super.observedAttributes,
38
+ "gap",
39
+ "grid-cols",
40
+ "grid-cols--mobile",
41
+ "grid-cols--tablet",
42
+ "grid-cols--laptop",
43
+ "justify-content",
44
+ "justify-items",
45
+ "align-content",
46
+ "align-items",
47
+ "justify-content--mobile",
48
+ "justify-items--mobile",
49
+ "align-content--mobile",
50
+ "align-items--mobile",
51
+ "justify-content--tablet",
52
+ "justify-items--tablet",
53
+ "align-content--tablet",
54
+ "align-items--tablet",
55
+ "justify-content--laptop",
56
+ "justify-items--laptop",
57
+ "align-content--laptop",
58
+ "align-items--laptop",
59
+ "justify-content--desktop",
60
+ "justify-items--desktop",
61
+ "align-content--desktop",
62
+ "align-items--desktop"
63
+ ];
64
+ }
65
+ connectedCallback() {
66
+ super.connectedCallback(), this.gap || (this.gap = "inside-section-default"), this.alignItems || (this.alignItems = "stretch");
67
+ }
68
+ attributeChangedCallback(t, e, n) {
69
+ if (e !== n)
70
+ switch (t) {
71
+ case "gap":
72
+ this.updateGap(e, n, Y);
73
+ break;
74
+ case "grid-cols":
75
+ case "grid-cols--mobile":
76
+ case "grid-cols--tablet":
77
+ case "grid-cols--laptop":
78
+ this.updateAttribute(t, e, n, it);
79
+ break;
80
+ case "justify-content":
81
+ case "align-content":
82
+ case "justify-content--mobile":
83
+ case "align-content--mobile":
84
+ case "justify-content--tablet":
85
+ case "align-content--tablet":
86
+ case "justify-content--laptop":
87
+ case "align-content--laptop":
88
+ case "justify-content--desktop":
89
+ case "align-content--desktop":
90
+ this.updateAttribute(
91
+ t,
92
+ e,
93
+ n,
94
+ nt
95
+ );
96
+ break;
97
+ case "justify-items":
98
+ case "align-items":
99
+ case "justify-items--mobile":
100
+ case "align-items--mobile":
101
+ case "justify-items--tablet":
102
+ case "align-items--tablet":
103
+ case "justify-items--laptop":
104
+ case "align-items--laptop":
105
+ case "justify-items--desktop":
106
+ case "align-items--desktop":
107
+ this.updateAttribute(
108
+ t,
109
+ e,
110
+ n,
111
+ st
112
+ );
113
+ break;
114
+ default:
115
+ super.attributeChangedCallback(t, e, n);
116
+ break;
117
+ }
118
+ }
119
+ updateGap(t, e, n) {
120
+ if (!this.checkName(n, e)) {
121
+ console.error("Bad gap value for", this.$el);
122
+ return;
123
+ }
124
+ const s = (l) => {
125
+ l !== null && l !== "" && l !== "default" && (this.$el.style.setProperty(
126
+ "--grid-gap--mobile",
127
+ `var(--px-spacing-${l}-mobile)`
128
+ ), this.$el.style.setProperty(
129
+ "--grid-gap--tablet",
130
+ `var(--px-spacing-${l}-tablet)`
131
+ ), this.$el.style.setProperty(
132
+ "--grid-gap--laptop",
133
+ `var(--px-spacing-${l}-desktop)`
134
+ ));
135
+ };
136
+ s(t), s(e);
137
+ }
138
+ updateAttribute(t, e, n, s) {
139
+ this.checkName(s, n) ? t === "grid-cols" || t === "grid-cols--mobile" || t === "grid-cols--tablet" || t === "grid-cols--laptop" ? this.$el.style.setProperty(`--${t}`, n) : (e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`${t}-${e}`), n !== null && n !== "" && n !== "default" && this.$el.classList.toggle(`${t}-${n}`)) : console.error(
140
+ `${n} is not an allowed ${t} value for ${this.$el}`
141
+ );
142
+ }
143
+ checkName(t, e) {
144
+ return t.includes(e);
145
+ }
146
+ get gap() {
147
+ return this.getAttribute("gap");
148
+ }
149
+ set gap(t) {
150
+ this.setAttribute("gap", t);
151
+ }
152
+ get gridCols() {
153
+ return this.getAttribute("grid-cols");
154
+ }
155
+ set gridCols(t) {
156
+ this.setAttribute("grid-cols", t);
157
+ }
158
+ get gridColsMobile() {
159
+ return this.getAttribute("grid-cols--mobile");
160
+ }
161
+ set gridColsMobile(t) {
162
+ this.setAttribute("grid-cols--mobile", t);
163
+ }
164
+ get gridColsTablet() {
165
+ return this.getAttribute("grid-cols--tablet");
166
+ }
167
+ set gridColsTablet(t) {
168
+ this.setAttribute("grid-cols--tablet", t);
169
+ }
170
+ get gridColsLaptop() {
171
+ return this.getAttribute("grid-cols--laptop");
172
+ }
173
+ set gridColsLaptop(t) {
174
+ this.setAttribute("grid-cols--laptop", t);
175
+ }
176
+ get justifyContent() {
177
+ return this.getAttribute("justify-content");
178
+ }
179
+ set justifyContent(t) {
180
+ this.setAttribute("justify-content", t);
181
+ }
182
+ get justifyItems() {
183
+ return this.getAttribute("justify-items");
184
+ }
185
+ set justifyItems(t) {
186
+ this.setAttribute("justify-items", t);
187
+ }
188
+ get alignContent() {
189
+ return this.getAttribute("align-content");
190
+ }
191
+ set alignContent(t) {
192
+ this.setAttribute("align-content", t);
193
+ }
194
+ get alignItems() {
195
+ return this.getAttribute("align-items");
196
+ }
197
+ set alignItems(t) {
198
+ this.setAttribute("align-items", t);
199
+ }
200
+ get justifyContentMobile() {
201
+ return this.getAttribute("justify-content--mobile");
202
+ }
203
+ set justifyContentMobile(t) {
204
+ this.setAttribute("justify-content--mobile", t);
205
+ }
206
+ get justifyItemsMobile() {
207
+ return this.getAttribute("justify-items--mobile");
208
+ }
209
+ set justifyItemsMobile(t) {
210
+ this.setAttribute("justify-items--mobile", t);
211
+ }
212
+ get alignContentMobile() {
213
+ return this.getAttribute("align-content--mobile");
214
+ }
215
+ set alignContentMobile(t) {
216
+ this.setAttribute("align-content--mobile", t);
217
+ }
218
+ get alignItemsMobile() {
219
+ return this.getAttribute("align-items--mobile");
220
+ }
221
+ set alignItemsMobile(t) {
222
+ this.setAttribute("align-items--mobile", t);
223
+ }
224
+ get justifyContentTablet() {
225
+ return this.getAttribute("justify-content--tablet");
226
+ }
227
+ set justifyContentTablet(t) {
228
+ this.setAttribute("justify-content--tablet", t);
229
+ }
230
+ get justifyItemsTablet() {
231
+ return this.getAttribute("justify-items--tablet");
232
+ }
233
+ set justifyItemsTablet(t) {
234
+ this.setAttribute("justify-items--tablet", t);
235
+ }
236
+ get alignContentTablet() {
237
+ return this.getAttribute("align-content--tablet");
238
+ }
239
+ set alignContentTablet(t) {
240
+ this.setAttribute("align-content--tablet", t);
241
+ }
242
+ get alignItemsTablet() {
243
+ return this.getAttribute("align-items--tablet");
244
+ }
245
+ set alignItemsTablet(t) {
246
+ this.setAttribute("align-items--tablet", t);
247
+ }
248
+ get justifyContentLaptop() {
249
+ return this.getAttribute("justify-content--laptop");
250
+ }
251
+ set justifyContentLaptop(t) {
252
+ this.setAttribute("justify-content--laptop", t);
253
+ }
254
+ get justifyItemsLaptop() {
255
+ return this.getAttribute("justify-items--laptop");
256
+ }
257
+ set justifyItemsLaptop(t) {
258
+ this.setAttribute("justify-items--laptop", t);
259
+ }
260
+ get alignContentLaptop() {
261
+ return this.getAttribute("align-content--laptop");
262
+ }
263
+ set alignContentLaptop(t) {
264
+ this.setAttribute("align-content--laptop", t);
265
+ }
266
+ get alignItemsLaptop() {
267
+ return this.getAttribute("align-items--laptop");
268
+ }
269
+ set alignItemsLaptop(t) {
270
+ this.setAttribute("align-items--laptop", t);
271
+ }
272
+ get justifyContentDesktop() {
273
+ return this.getAttribute("justify-content--desktop");
274
+ }
275
+ set justifyContentDesktop(t) {
276
+ this.setAttribute("justify-content--desktop", t);
277
+ }
278
+ get justifyItemsDesktop() {
279
+ return this.getAttribute("justify-items--desktop");
280
+ }
281
+ set justifyItemsDesktop(t) {
282
+ this.setAttribute("justify-items--desktop", t);
283
+ }
284
+ get alignContentDesktop() {
285
+ return this.getAttribute("align-content--desktop");
286
+ }
287
+ set alignContentDesktop(t) {
288
+ this.setAttribute("align-content--desktop", t);
289
+ }
290
+ get alignItemsDesktop() {
291
+ return this.getAttribute("align-items--desktop");
292
+ }
293
+ set alignItemsDesktop(t) {
294
+ this.setAttribute("align-items--desktop", t);
295
+ }
296
+ };
297
+ T.nativeName = "div";
298
+ let k = T;
299
+ customElements.define("px-grid", k);
300
+ const ot = "p,::slotted(p){font-family:var(--px-font-family);color:var(--px-text-color-body-neutral-strong-default);font-size:var(--px-text-size-body-m-mobile);font-weight:400;line-height:var(--px-line-height-m);margin:0}.text-align-left{text-align:left}.text-align-center{text-align:center}.text-align-right{text-align:right}:host([inverted]) p,:host([inverted]) ::slotted(p){color:var(--px-text-color-body-neutral-strong-inverted)}@media only screen and (min-width: 768px){p,::slotted(p){font-size:var(--px-text-size-body-m-tablet)}}@media only screen and (min-width: 1025px){p,::slotted(p){font-size:var(--px-text-size-body-m-desktop)}}", lt = ":host>*:first-child{--font-weight-light: 300;--font-weight-regular: 400;--font-weight-bold: 700;--font-weight-extrabold: 900}.color-inherit{color:inherit}.color-action-brand{color:var(--px-text-color-action-brand-default)}.color-action-neutral{color:var(--px-text-color-action-neutral-default)}.color-action-hover{color:var(--px-text-color-action-hover-default)}.color-action-active{color:var(--px-text-color-action-active-default)}.color-action-disabled{color:var(--px-text-color-action-disabled-default)}.color-body-neutral-strong{color:var(--px-text-color-body-neutral-strong-default)}.color-body-neutral-weak{color:var(--px-text-color-body-neutral-weak-default)}.color-heading-brand{color:var(--px-text-color-heading-brand-default)}.color-heading-neutral{color:var(--px-text-color-heading-neutral-default)}.color-purpose-success{color:var(--px-text-color-purpose-success-default)}.color-purpose-warning{color:var(--px-text-color-purpose-warning-default)}.color-purpose-error{color:var(--px-text-color-purpose-error-default)}.color-purpose-unlimited{color:var(--px-text-color-purpose-unlimited-default)}.color-purpose-promo{color:var(--px-text-color-purpose-promo-default)}:host([inverted]) .color-inherit{color:inherit}:host([inverted]) .color-action-brand{color:var(--px-text-color-action-brand-inverted)}:host([inverted]) .color-action-neutral{color:var(--px-text-color-action-neutral-inverted)}:host([inverted]) .color-action-hover{color:var(--px-text-color-action-hover-inverted)}:host([inverted]) .color-action-active{color:var(--px-text-color-action-active-inverted)}:host([inverted]) .color-action-disabled{color:var(--px-text-color-action-disabled-inverted)}:host([inverted]) .color-body-neutral-strong{color:var(--px-text-color-body-neutral-strong-inverted)}:host([inverted]) .color-body-neutral-weak{color:var(--px-text-color-body-neutral-weak-inverted)}:host([inverted]) .color-heading-brand{color:var(--px-text-color-heading-brand-inverted)}:host([inverted]) .color-heading-neutral{color:var(--px-text-color-heading-neutral-inverted)}:host([inverted]) .color-purpose-success{color:var(--px-text-color-purpose-success-inverted)}:host([inverted]) .color-purpose-warning{color:var(--px-text-color-purpose-warning-inverted)}:host([inverted]) .color-purpose-error{color:var(--px-text-color-purpose-error-inverted)}:host([inverted]) .color-purpose-unlimited{color:var(--px-text-color-purpose-unlimited-inverted)}:host([inverted]) .color-purpose-promo{color:var(--px-text-color-purpose-promo-inverted)}.font-size-inherit{font-size:inherit;line-height:inherit}.font-size-body-l{font-size:var(--px-text-size-body-l-mobile)}.font-size-body-m{font-size:var(--px-text-size-body-m-mobile)}.font-size-body-s{font-size:var(--px-text-size-body-s-mobile)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-mobile)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-mobile)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-mobile)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-mobile)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-mobile)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-mobile)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-mobile)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-mobile)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-mobile)}@media only screen and (min-width: 768px){.font-size-body-l{font-size:var(--px-text-size-body-l-tablet)}.font-size-body-m{font-size:var(--px-text-size-body-m-tablet)}.font-size-body-s{font-size:var(--px-text-size-body-s-tablet)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-tablet)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-tablet)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-tablet)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-tablet)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-tablet)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-tablet)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-tablet)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-tablet)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-tablet)}}@media only screen and (min-width: 1025px){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}}.font-weight-inherit{font-weight:inherit}.font-weight-normal{font-weight:var(--font-weight-regular)}.font-weight-bold{font-weight:var(--font-weight-bold)}.font-weight-extrabold{font-weight:var(--font-weight-extrabold)}.font-weight-light{font-weight:var(--font-weight-light)}", rt = "h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{margin:0;font-family:var(--px-font-family);color:var( --heading-color-default, var(--px-text-color-heading-brand-default) );text-align:var(--heading-text-align--mobile, left);font-size:var(--px-text-size-heading-s-mobile);line-height:var(--px-line-height-m);font-weight:700}:host([inverted]) h1,:host([inverted]) .style-title-4xl,:host([inverted]) ::slotted(h1),:host([inverted]) h2,:host([inverted]) .style-title-3xl,:host([inverted]) ::slotted(h2),:host([inverted]) h3,:host([inverted]) .style-title-2xl,:host([inverted]) ::slotted(h3),:host([inverted]) h4,:host([inverted]) .style-title-xl,:host([inverted]) ::slotted(h4),:host([inverted]) h5,:host([inverted]) .style-title-l,:host([inverted]) ::slotted(h5),:host([inverted]) h6,:host([inverted]) .style-title-m,:host([inverted]) ::slotted(h6),:host([inverted]) .style-title-s,:host([inverted]) .style-subtitle{color:var( --heading-color-inverted, var(--px-text-color-heading-brand-inverted) )}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-5xl-mobile);line-height:var(--px-line-height-s);font-weight:900}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-4xl-mobile);line-height:var(--px-line-height-s);font-weight:900}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-3xl-mobile);line-height:var(--px-line-height-s)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-2xl-mobile)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-mobile)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-mobile)}.style-subtitle{font-size:var(--px-text-size-heading-xl-mobile);font-weight:300}.style-title-s{font-size:var(--px-text-size-heading-s-mobile)}@media only screen and (min-width: 768px){h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--tablet, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-5xl-tablet)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-4xl-tablet)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-3xl-tablet)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-2xl-tablet)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-tablet)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-tablet)}.style-title-s{font-size:var(--px-text-size-heading-s-tablet)}.style-subtitle{font-size:var(--px-text-size-heading-xl-tablet)}}@media only screen and (min-width: 1025px){h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--laptop, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-5xl-desktop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-4xl-desktop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-3xl-desktop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-2xl-desktop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-desktop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-desktop)}.style-title-s{font-size:var(--px-text-size-heading-s-desktop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-desktop)}}@media screen and (min-width: 1441px){h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--desktop, left)}}", B = new CSSStyleSheet(), H = new CSSStyleSheet(), q = new CSSStyleSheet();
301
+ B.replaceSync(ot);
302
+ H.replaceSync(lt);
303
+ q.replaceSync(rt);
304
+ const $ = class $ extends x {
305
+ constructor() {
306
+ super(H, q, B), this.template = () => "<p><slot></slot></p>", this.shadowRoot.innerHTML = this.template();
307
+ }
308
+ static get observedAttributes() {
309
+ return [
310
+ ...super.observedAttributes,
311
+ "variant",
312
+ "color",
313
+ "font-size",
314
+ "font-weight",
315
+ "text-align",
316
+ "inverted",
317
+ "disabled"
318
+ ];
319
+ }
320
+ attributeChangedCallback(t, e, n) {
321
+ if (e !== n)
322
+ switch (t) {
323
+ case "variant":
324
+ this.updateVariant(t, e, n, tt);
325
+ break;
326
+ case "color":
327
+ this.updateTypography(t, e, n, V);
328
+ break;
329
+ case "font-size":
330
+ this.updateTypography(t, e, n, N);
331
+ break;
332
+ case "font-weight":
333
+ this.updateTypography(t, e, n, _);
334
+ break;
335
+ case "text-align":
336
+ this.updateTypography(t, e, n, Z);
337
+ break;
338
+ case "disabled":
339
+ this.color = "action-disabled";
340
+ break;
341
+ default:
342
+ super.attributeChangedCallback(t, e, n);
343
+ break;
344
+ }
345
+ }
346
+ toggleClass(t, e) {
347
+ t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`style-${t}`), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`style-${e}`);
348
+ }
349
+ checkName(t, e) {
350
+ return t.includes(e);
351
+ }
352
+ updateVariant(t, e, n, s) {
353
+ this.checkName(s, n) ? this.toggleClass(e, n) : console.error(`Bad ${t} value for ${this.$el}`);
354
+ }
355
+ updateTypography(t, e, n, s) {
356
+ e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`${t}-${e}`), n !== null && n !== "" && n !== "default" && this.$el.classList.toggle(`${t}-${n}`), this.checkName(s, n) || console.error(`Bad ${t} value for ${this.$el}`);
357
+ }
358
+ get variant() {
359
+ return this.getAttribute("variant");
360
+ }
361
+ set variant(t) {
362
+ this.setAttribute("variant", t);
363
+ }
364
+ get color() {
365
+ return this.getAttribute("color");
366
+ }
367
+ set color(t) {
368
+ this.setAttribute("color", t);
369
+ }
370
+ get fontsize() {
371
+ return this.getAttribute("font-size");
372
+ }
373
+ set fontsize(t) {
374
+ this.setAttribute("font-size", t);
375
+ }
376
+ get fontweight() {
377
+ return this.getAttribute("font-weight");
378
+ }
379
+ set fontweight(t) {
380
+ this.setAttribute("font-weight", t);
381
+ }
382
+ get textalign() {
383
+ return this.getAttribute("text-align");
384
+ }
385
+ set textalign(t) {
386
+ this.setAttribute("text-align", t);
387
+ }
388
+ get inverted() {
389
+ return this.getAttribute("inverted");
390
+ }
391
+ set inverted(t) {
392
+ this.setAttribute("inverted", t);
393
+ }
394
+ get disabled() {
395
+ return this.getAttribute("disabled");
396
+ }
397
+ set disabled(t) {
398
+ this.setAttribute("disabled", t);
399
+ }
400
+ };
401
+ $.nativeName = "p";
402
+ let A = $;
403
+ customElements.define("px-p", A);
404
+ const S = class S extends x {
405
+ constructor() {
406
+ super(), this.template = () => `<div class="footer-sitemap">
407
+ <px-grid grid-cols="4" grid-cols--mobile="1" role="list" gap="inside-section-none">
408
+ <slot></slot>
409
+ </px-grid>
410
+ </div>`, this.shadowRoot.innerHTML = this.template();
411
+ }
412
+ static get observedAttributes() {
413
+ return [...super.observedAttributes, "inverted"];
414
+ }
415
+ attributeChangedCallback(t, e, n) {
416
+ if (e !== n)
417
+ switch (t) {
418
+ case "inverted":
419
+ for (let s = 0; s < this.$children.length; s++)
420
+ this.$children[s].hasAttribute("inverted") || this.$children[s].toggleAttribute("inverted");
421
+ break;
422
+ default:
423
+ super.attributeChangedCallback(t, e, n);
424
+ break;
425
+ }
426
+ }
427
+ get $children() {
428
+ return this.querySelectorAll("px-footer-sitemap > *");
429
+ }
430
+ get inverted() {
431
+ return this.hasAttribute("inverted");
432
+ }
433
+ set inverted(t) {
434
+ t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
435
+ }
436
+ };
437
+ S.nativeName = "div";
438
+ let w = S;
439
+ customElements.define("px-footer-sitemap", w);
440
+ const at = ":host,:host>*{display:block;box-sizing:border-box}::slotted(ul){margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}::slotted(ul.link-list-img){display:flex;flex-wrap:wrap;flex-direction:row;gap:20px}";
441
+ function b(i) {
442
+ var t = typeof i;
443
+ return i != null && (t == "object" || t == "function");
444
+ }
445
+ var ct = typeof global == "object" && global && global.Object === Object && global, dt = typeof self == "object" && self && self.Object === Object && self, G = ct || dt || Function("return this")(), z = function() {
446
+ return G.Date.now();
447
+ }, gt = /\s/;
448
+ function pt(i) {
449
+ for (var t = i.length; t-- && gt.test(i.charAt(t)); )
450
+ ;
451
+ return t;
452
+ }
453
+ var ht = /^\s+/;
454
+ function ut(i) {
455
+ return i && i.slice(0, pt(i) + 1).replace(ht, "");
456
+ }
457
+ var m = G.Symbol, U = Object.prototype, ft = U.hasOwnProperty, bt = U.toString, u = m ? m.toStringTag : void 0;
458
+ function mt(i) {
459
+ var t = ft.call(i, u), e = i[u];
460
+ try {
461
+ i[u] = void 0;
462
+ var n = !0;
463
+ } catch {
464
+ }
465
+ var s = bt.call(i);
466
+ return n && (t ? i[u] = e : delete i[u]), s;
467
+ }
468
+ var xt = Object.prototype, yt = xt.toString;
469
+ function vt(i) {
470
+ return yt.call(i);
471
+ }
472
+ var jt = "[object Null]", zt = "[object Undefined]", R = m ? m.toStringTag : void 0;
473
+ function kt(i) {
474
+ return i == null ? i === void 0 ? zt : jt : R && R in Object(i) ? mt(i) : vt(i);
475
+ }
476
+ function At(i) {
477
+ return i != null && typeof i == "object";
478
+ }
479
+ var wt = "[object Symbol]";
480
+ function Ct(i) {
481
+ return typeof i == "symbol" || At(i) && kt(i) == wt;
482
+ }
483
+ var D = NaN, Tt = /^[-+]0x[0-9a-f]+$/i, $t = /^0b[01]+$/i, St = /^0o[0-7]+$/i, It = parseInt;
484
+ function P(i) {
485
+ if (typeof i == "number")
486
+ return i;
487
+ if (Ct(i))
488
+ return D;
489
+ if (b(i)) {
490
+ var t = typeof i.valueOf == "function" ? i.valueOf() : i;
491
+ i = b(t) ? t + "" : t;
492
+ }
493
+ if (typeof i != "string")
494
+ return i === 0 ? i : +i;
495
+ i = ut(i);
496
+ var e = $t.test(i);
497
+ return e || St.test(i) ? It(i.slice(2), e ? 2 : 8) : Tt.test(i) ? D : +i;
498
+ }
499
+ var Lt = "Expected a function", Mt = Math.max, Et = Math.min;
500
+ function Ot(i, t, e) {
501
+ var n, s, l, d, r, c, g = 0, L = !1, p = !1, y = !0;
502
+ if (typeof i != "function")
503
+ throw new TypeError(Lt);
504
+ t = P(t) || 0, b(e) && (L = !!e.leading, p = "maxWait" in e, l = p ? Mt(P(e.maxWait) || 0, t) : l, y = "trailing" in e ? !!e.trailing : y);
505
+ function v(o) {
506
+ var a = n, h = s;
507
+ return n = s = void 0, g = o, d = i.apply(h, a), d;
508
+ }
509
+ function F(o) {
510
+ return g = o, r = setTimeout(f, t), L ? v(o) : d;
511
+ }
512
+ function J(o) {
513
+ var a = o - c, h = o - g, O = t - a;
514
+ return p ? Et(O, l - h) : O;
515
+ }
516
+ function M(o) {
517
+ var a = o - c, h = o - g;
518
+ return c === void 0 || a >= t || a < 0 || p && h >= l;
519
+ }
520
+ function f() {
521
+ var o = z();
522
+ if (M(o))
523
+ return E(o);
524
+ r = setTimeout(f, J(o));
525
+ }
526
+ function E(o) {
527
+ return r = void 0, y && n ? v(o) : (n = s = void 0, d);
528
+ }
529
+ function K() {
530
+ r !== void 0 && clearTimeout(r), g = 0, n = c = s = r = void 0;
531
+ }
532
+ function Q() {
533
+ return r === void 0 ? d : E(z());
534
+ }
535
+ function j() {
536
+ var o = z(), a = M(o);
537
+ if (n = arguments, s = this, c = o, a) {
538
+ if (r === void 0)
539
+ return F(c);
540
+ if (p)
541
+ return clearTimeout(r), r = setTimeout(f, t), v(c);
542
+ }
543
+ return r === void 0 && (r = setTimeout(f, t)), d;
544
+ }
545
+ return j.cancel = K, j.flush = Q, j;
546
+ }
547
+ var Rt = "Expected a function";
548
+ function Dt(i, t, e) {
549
+ var n = !0, s = !0;
550
+ if (typeof i != "function")
551
+ throw new TypeError(Rt);
552
+ return b(e) && (n = "leading" in e ? !!e.leading : n, s = "trailing" in e ? !!e.trailing : s), Ot(i, t, {
553
+ leading: n,
554
+ maxWait: t,
555
+ trailing: s
556
+ });
557
+ }
558
+ const X = new CSSStyleSheet();
559
+ X.replaceSync(at);
560
+ const I = class I extends x {
561
+ constructor() {
562
+ super(X), this.templateMobile = () => `<div role="listitem">
563
+ <px-accordion ${this.inverted ? "inverted" : ""}>
564
+ <span slot="title"><slot name="title-list"></slot></span>
565
+ <span slot="content">
566
+ <slot name="links-list"></slot>
567
+ </span>
568
+ </px-accordion>
569
+ </div>`, this.templateDesktop = () => `<div role="listitem">
570
+ <px-vstack gap="after-element-default">
571
+ <px-p variant="title-l" ${this.inverted ? "inverted" : ""}>
572
+ <slot name="title-list"></slot>
573
+ </px-p>
574
+ <slot name="links-list"></slot>
575
+ </px-vstack>
576
+ </div>`, this.throttledLoadTemplate = Dt(this.loadTemplate.bind(this), 50), this.loadTemplate();
577
+ }
578
+ static get observedAttributes() {
579
+ return [...super.observedAttributes, "inverted"];
580
+ }
581
+ connectedCallback() {
582
+ super.connectedCallback(), this.loadTemplate(), window.addEventListener("resize", this.throttledLoadTemplate), this.$ul ? this.$ul.querySelector("px-img") && this.$ul.classList.add("link-list-img") : console.error(
583
+ "The footer sitemap item must contain a <ul> element with links."
584
+ );
585
+ }
586
+ disconnectedCallback() {
587
+ window.removeEventListener("resize", this.throttledLoadTemplate);
588
+ }
589
+ loadTemplate() {
590
+ const t = this.lastSize, e = window.innerWidth < 768 ? "mobile" : "desktop";
591
+ t !== e && (e === "mobile" ? this.shadowRoot.innerHTML = this.templateMobile() : this.shadowRoot.innerHTML = this.templateDesktop(), this.lastSize = e);
592
+ }
593
+ attributeChangedCallback(t, e, n) {
594
+ if (e !== n)
595
+ switch (t) {
596
+ case "inverted":
597
+ for (let s = 0; s < this.$children.length; s++)
598
+ this.$children[s].hasAttribute("inverted") || this.$children[s].toggleAttribute("inverted");
599
+ this.$ul.querySelectorAll("px-a").forEach((s) => {
600
+ s.toggleAttribute("inverted");
601
+ });
602
+ break;
603
+ default:
604
+ super.attributeChangedCallback(t, e, n);
605
+ break;
606
+ }
607
+ }
608
+ get $ul() {
609
+ return this.querySelector("ul");
610
+ }
611
+ get $children() {
612
+ return this.querySelectorAll("px-footer-sitemap-item > *");
613
+ }
614
+ get inverted() {
615
+ return this.hasAttribute("inverted");
616
+ }
617
+ set inverted(t) {
618
+ t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
619
+ }
620
+ };
621
+ I.nativeName = "div";
622
+ let C = I;
623
+ customElements.define("px-footer-sitemap-item", C);
624
+ export {
625
+ w as FooterSitemap,
626
+ C as FooterSitemapItem,
627
+ X as styleSheet
628
+ };
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@proximus/lavender-footer-sitemap",
3
+ "version": "1.0.0-alpha.1",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./src/index.ts",
9
+ "development": "./src/index.ts",
10
+ "default": "./dist/index.js"
11
+ },
12
+ "./src/*.css": {
13
+ "development": "src/*.css"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "type": "module",
20
+ "scripts": {
21
+ "build": "rm -rf dist;tsc; vite build",
22
+ "test": "vitest run --coverage"
23
+ },
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "lerna": {
28
+ "command": {
29
+ "publish": {
30
+ "assets": [
31
+ "CHANGELOG.md",
32
+ "package.json",
33
+ "dist/*.js",
34
+ "dist/*.cjs",
35
+ "dist/css/**/*.css",
36
+ "dist/js/**/*.js",
37
+ "dist/*.svg",
38
+ "dist/*.ttf",
39
+ "dist/glyphmap.json",
40
+ "dist/*.d.ts"
41
+ ]
42
+ }
43
+ }
44
+ },
45
+ "gitHead": "2fc723ebfd00568f7be8573c3e910f202fd94e2a"
46
+ }