@zanichelli/zanichelli-it-frontend-kit 0.1.6 → 1.0.2

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 (26) hide show
  1. package/dist/cjs/zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.cjs.js.map +1 -1
  2. package/dist/cjs/zanit-menubar_3.cjs.entry.js +3 -3
  3. package/dist/cjs/zanit-menubar_3.cjs.entry.js.map +1 -1
  4. package/dist/collection/components/menubar/menu/menu.css +2 -2
  5. package/dist/collection/components/menubar/mobile-menubar/mobile-menubar.js +1 -1
  6. package/dist/collection/components/menubar/mobile-menubar/mobile-menubar.js.map +1 -1
  7. package/dist/components/{p-DGmSfTXD.js → p-CQEWv_Pv.js} +4 -4
  8. package/dist/components/p-CQEWv_Pv.js.map +1 -0
  9. package/dist/components/zanit-menubar.js +2 -2
  10. package/dist/components/zanit-menubar.js.map +1 -1
  11. package/dist/components/zanit-mobile-menubar.js +1 -1
  12. package/dist/esm/zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.js.map +1 -1
  13. package/dist/esm/zanit-menubar_3.entry.js +3 -3
  14. package/dist/esm/zanit-menubar_3.entry.js.map +1 -1
  15. package/dist/zanichelli-it-frontend-kit/{p-eece6410.entry.js → p-b6c74a1e.entry.js} +2 -2
  16. package/{www/build/p-eece6410.entry.js.map → dist/zanichelli-it-frontend-kit/p-b6c74a1e.entry.js.map} +1 -1
  17. package/dist/zanichelli-it-frontend-kit/zanichelli-it-frontend-kit.esm.js +1 -1
  18. package/dist/zanichelli-it-frontend-kit/zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.esm.js.map +1 -1
  19. package/package.json +1 -1
  20. package/www/build/{p-eece6410.entry.js → p-b6c74a1e.entry.js} +2 -2
  21. package/{dist/zanichelli-it-frontend-kit/p-eece6410.entry.js.map → www/build/p-b6c74a1e.entry.js.map} +1 -1
  22. package/www/build/{p-fedb810b.js → p-d36eb550.js} +1 -1
  23. package/www/build/zanichelli-it-frontend-kit.esm.js +1 -1
  24. package/www/build/zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.esm.js.map +1 -1
  25. package/www/index.html +287 -243
  26. package/dist/components/p-DGmSfTXD.js.map +0 -1
package/www/index.html CHANGED
@@ -1,257 +1,301 @@
1
- <!doctype html><html dir="ltr" lang="it"><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"> <title>Zanichelli.it frontend kit</title> <link rel="stylesheet" type="text/css" href="https://unpkg.com/@zanichelli/albe-web-components/www/build/web-components-library.css"> <link rel="stylesheet" type="text/css" href="/build/p-984b8fa6.css"> <link rel="modulepreload" href="/build/p-fedb810b.js"><link rel="modulepreload" href="/build/p-BWVQ0LD4.js"><script type="module" src="https://unpkg.com/@zanichelli/albe-web-components/dist/web-components-library/web-components-library.esm.js"></script> <script type="module" src="/build/p-fedb810b.js" data-stencil data-resources-url="/build/" data-stencil-namespace="zanichelli-it-frontend-kit"></script> <script nomodule="" src="/build/zanichelli-it-frontend-kit.js" data-stencil></script> </head> <body> <header> <zanit-menubar current="scuola/per-chi-studia-4457ef/ciao-manuel"></zanit-menubar> <script>
1
+ <!doctype html><html dir="ltr" lang="it"><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"> <title>Zanichelli.it frontend kit</title> <link rel="stylesheet" type="text/css" href="https://unpkg.com/@zanichelli/albe-web-components/www/build/web-components-library.css"> <link rel="stylesheet" type="text/css" href="/build/p-984b8fa6.css"> <link rel="modulepreload" href="/build/p-d36eb550.js"><link rel="modulepreload" href="/build/p-BWVQ0LD4.js"><script type="module" src="https://unpkg.com/@zanichelli/albe-web-components/dist/web-components-library/web-components-library.esm.js"></script> <script type="module" src="/build/p-d36eb550.js" data-stencil data-resources-url="/build/" data-stencil-namespace="zanichelli-it-frontend-kit"></script> <script nomodule="" src="/build/zanichelli-it-frontend-kit.js" data-stencil></script> </head> <body> <header> <zanit-menubar current="scuola/per-chi-studia-4457ef/ciao-manuel"></zanit-menubar> <script>
2
2
  document.addEventListener('DOMContentLoaded', function () {
3
- document.querySelector('zanit-menubar')?.setAttribute(
4
- 'data',
5
- JSON.stringify([
6
- {
7
- label: 'Scuola',
8
- href: 'https://test-www.aglebert.zanichelli.it/scuola',
9
- id: 'scuola',
10
- highlight: false,
11
- navbarItems: [
12
- {
13
- label: 'Per chi insegna',
14
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna',
15
- id: 'per-chi-insegna-fb74aa',
16
- highlight: false,
17
- menuItems: [
18
- {
19
- label: 'laZ',
20
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/laz',
21
- id: 'laz',
22
- group: {
23
- label: 'In evidenza',
24
- id: 'in-evidenza',
3
+ const menubar = document.querySelector('zanit-menubar');
4
+ if (!menubar) {
5
+ return;
6
+ }
7
+ menubar.data = new Promise((resolve) => {
8
+ setTimeout(() => {
9
+ resolve([
10
+ {
11
+ label: 'Scuola',
12
+ href: 'https://test-www.aglebert.zanichelli.it/scuola',
13
+ target: '_self',
14
+ id: 'scuola',
15
+ highlight: false,
16
+ navbarItems: [
17
+ {
18
+ label: 'Per chi insegna',
19
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna',
20
+ target: '_self',
21
+ id: 'per-chi-insegna-fb74aa',
22
+ highlight: false,
23
+ menuItems: [
24
+ {
25
+ label: 'laZ',
26
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/laz',
27
+ target: '_self',
28
+ id: 'laz',
29
+ group: {
30
+ label: 'In evidenza',
31
+ id: 'in-evidenza',
32
+ },
33
+ highlight: true,
25
34
  },
26
- highlight: true,
27
- },
28
- {
29
- label: 'Obiettivi formativi',
30
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/obiettivi-formativi',
31
- id: 'obiettivi-formativi',
32
- highlight: false,
33
- },
34
- {
35
- label: 'cacciatori',
36
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/cacciatori-di-bufale-si-diventa',
37
- id: 'cacciatori-di-bufale-si-diventa',
38
- group: {
39
- label: '6 Acqua pulita e servizi igienico-sanitari',
40
- id: 'agenda2030-acqua-pulita-servizi-igienico-sanitari',
35
+ {
36
+ label: 'Obiettivi formativi',
37
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/obiettivi-formativi',
38
+ target: '_self',
39
+ id: 'obiettivi-formativi',
40
+ highlight: false,
41
41
  },
42
- highlight: false,
43
- },
44
- {
45
- label: 'Perché è difficile riconoscere le fake news in Rete?',
46
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/perche-e-difficile-riconoscere-le-fake-news-in-rete',
47
- id: 'perche-e-difficile-riconoscere-le-fake-news-in-rete',
48
- group: {
49
- label: '4 Istruzione di qualità',
50
- id: 'agenda2030-istruzione-di-qualita',
42
+ {
43
+ label: 'cacciatori',
44
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/cacciatori-di-bufale-si-diventa',
45
+ target: '_self',
46
+ id: 'cacciatori-di-bufale-si-diventa',
47
+ group: {
48
+ label: '6 Acqua pulita e servizi igienico-sanitari',
49
+ id: 'agenda2030-acqua-pulita-servizi-igienico-sanitari',
50
+ },
51
+ highlight: false,
51
52
  },
52
- highlight: false,
53
- },
54
- {
55
- label: 'Dalla correlazione alla causalita applicazione al caso del global warming',
56
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/dalla-correlazione-alla-causalita-applicazione-al-caso-del-global-warming',
57
- id: 'dalla-correlazione-alla-causalita-applicazione-al-caso-del-global-warming',
58
- group: {
59
- label: '4 Istruzione di qualità',
60
- id: 'agenda2030-istruzione-di-qualita',
53
+ {
54
+ label: 'Perché è difficile riconoscere le fake news in Rete?',
55
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/perche-e-difficile-riconoscere-le-fake-news-in-rete',
56
+ target: '_self',
57
+ id: 'perche-e-difficile-riconoscere-le-fake-news-in-rete',
58
+ group: {
59
+ label: '4 Istruzione di qualità',
60
+ id: 'agenda2030-istruzione-di-qualita',
61
+ },
62
+ highlight: false,
61
63
  },
62
- highlight: false,
63
- },
64
- {
65
- label: 'Documento con copertina',
66
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/documento-con-copertina',
67
- id: 'documento-con-copertina',
68
- highlight: false,
69
- },
70
- {
71
- label: 'Offerta per Bisogni Educativi Speciali',
72
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/offerta-per-bisogni-educativi-speciali',
73
- id: 'offerta-per-bisogni-educativi-speciali',
74
- highlight: false,
75
- },
76
- {
77
- label: 'Filiali & Filiali',
78
- href: 'https://test-www.aglebert.zanichelli.it/contatti/filiali-e-agenzie/',
79
- id: 'filiali-e-filiali',
80
- highlight: false,
81
- },
82
- {
83
- label: 'Servizi',
84
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/servizi',
85
- id: 'servizi',
86
- highlight: false,
87
- },
88
- {
89
- label: 'prova manuel',
90
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/prova-manuel',
91
- id: 'prova-manuel',
92
- highlight: false,
93
- },
94
- {
95
- label: 'Collezioni',
96
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/collezioni-64748c',
97
- id: 'collezioni-64748c',
98
- highlight: false,
99
- },
100
- {
101
- label: 'Ciao manuel',
102
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/ciao-manuel',
103
- id: 'ciao-manuel',
104
- group: {
105
- label: 'Proposta editorale',
106
- id: 'proposta-editoriale',
64
+ {
65
+ label: 'Dalla correlazione alla causalita applicazione al caso del global warming',
66
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/dalla-correlazione-alla-causalita-applicazione-al-caso-del-global-warming',
67
+ target: '_self',
68
+ id: 'dalla-correlazione-alla-causalita-applicazione-al-caso-del-global-warming',
69
+ group: {
70
+ label: '4 Istruzione di qualità',
71
+ id: 'agenda2030-istruzione-di-qualita',
72
+ },
73
+ highlight: false,
107
74
  },
108
- highlight: false,
109
- },
110
- {
111
- label: 'Prova di Paolo di Prova',
112
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/pdpdp',
113
- id: 'pdpdp',
114
- highlight: false,
115
- },
116
- ],
117
- },
118
- {
119
- label: 'Per chi studia',
120
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-studia',
121
- id: 'per-chi-studia-4457ef',
122
- highlight: false,
123
- menuItems: [
124
- {
125
- label: 'PNRR 2023-2024',
126
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-studia/pnrr-2023-2024',
127
- id: 'pnrr-2023-2024',
128
- highlight: false,
129
- },
130
- {
131
- label: 'Siti LaZ',
132
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-studia/laz',
133
- id: 'siti-laz',
134
- highlight: false,
135
- },
136
- {
137
- label: 'Ciao manuel',
138
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-studia/ciao-manuel',
139
- id: 'ciao-manuel',
140
- group: {
141
- label: 'Proposta editorale',
142
- id: 'proposta-editoriale',
75
+ {
76
+ label: 'Documento con copertina',
77
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/documento-con-copertina',
78
+ target: '_self',
79
+ id: 'documento-con-copertina',
80
+ highlight: false,
143
81
  },
144
- highlight: false,
145
- },
146
- ],
147
- },
148
- {
149
- label: 'Per le scuole',
150
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-le-scuole',
151
- id: 'per-le-scuole',
152
- highlight: false,
153
- menuItems: [
154
- {
155
- label: 'La nostra proposta per i Bisogni Educativi Speciali',
156
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-le-scuole/longformtestfrappa',
157
- id: 'longformtestfrappa',
158
- highlight: false,
159
- },
160
- ],
161
- },
162
- {
163
- label: 'Per le librerie',
164
- href: 'https://test-www.aglebert.zanichelli.it/scuola/per-le-librerie',
165
- id: 'per-le-librerie',
166
- highlight: false,
167
- menuItems: [],
168
- },
169
- ],
170
- },
171
- {
172
- label: 'Università',
173
- href: 'https://test-www.aglebert.zanichelli.it/universita',
174
- id: 'universita',
175
- highlight: false,
176
- navbarItems: [
177
- {
178
- label: 'Per chi insegna',
179
- href: 'https://test-www.aglebert.zanichelli.it/universita/per-chi-insegna',
180
- id: 'per-chi-insegna-5b3787',
181
- highlight: false,
182
- menuItems: [],
183
- },
184
- {
185
- label: 'Per chi studia',
186
- href: 'https://test-www.aglebert.zanichelli.it/universita/per-chi-studia',
187
- id: 'per-chi-studia-86b006',
188
- highlight: false,
189
- menuItems: [
190
- {
191
- label: 'Ciao manuel',
192
- href: 'https://test-www.aglebert.zanichelli.it/universita/per-chi-studia/ciao-manuel',
193
- id: 'ciao-manuel',
194
- group: {
195
- label: 'Proposta editorale',
196
- id: 'proposta-editoriale',
82
+ {
83
+ label: 'Offerta per Bisogni Educativi Speciali',
84
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/offerta-per-bisogni-educativi-speciali',
85
+ target: '_self',
86
+ id: 'offerta-per-bisogni-educativi-speciali',
87
+ highlight: false,
88
+ },
89
+ {
90
+ label: 'Filiali & Filiali',
91
+ href: 'https://test-www.aglebert.zanichelli.it/contatti/filiali-e-agenzie/',
92
+ target: '_self',
93
+ id: 'filiali-e-filiali',
94
+ highlight: false,
95
+ },
96
+ {
97
+ label: 'Servizi',
98
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/servizi',
99
+ target: '_self',
100
+ id: 'servizi',
101
+ highlight: false,
197
102
  },
198
- highlight: false,
103
+ {
104
+ label: 'prova manuel',
105
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/prova-manuel',
106
+ target: '_self',
107
+ id: 'prova-manuel',
108
+ highlight: false,
109
+ },
110
+ {
111
+ label: 'Collezioni',
112
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/collezioni-64748c',
113
+ target: '_self',
114
+ id: 'collezioni-64748c',
115
+ highlight: false,
116
+ },
117
+ {
118
+ label: 'Test Manuel: Per chi insegna La sezione Insegnare con l’IA propone oltre 80 attività',
119
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/ciao-manuel',
120
+ target: '_self',
121
+ id: 'ciao-manuel',
122
+ group: {
123
+ label: 'Proposta editorale',
124
+ id: 'proposta-editoriale',
125
+ },
126
+ highlight: false,
127
+ },
128
+ {
129
+ label: 'Prova di Paolo di Prova',
130
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/pdpdp',
131
+ target: '_self',
132
+ id: 'pdpdp',
133
+ highlight: false,
134
+ },
135
+ {
136
+ label: 'laZ Biblioteca',
137
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-insegna/laz-biblioteca',
138
+ target: '_self',
139
+ id: 'laz-biblioteca',
140
+ highlight: false,
141
+ },
142
+ ],
143
+ },
144
+ {
145
+ label: 'Per chi studia',
146
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-studia',
147
+ target: '_self',
148
+ id: 'per-chi-studia-4457ef',
149
+ highlight: false,
150
+ menuItems: [
151
+ {
152
+ label: 'PNRR 2023-2024',
153
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-studia/pnrr-2023-2024',
154
+ target: '_self',
155
+ id: 'pnrr-2023-2024',
156
+ highlight: false,
157
+ },
158
+ {
159
+ label: 'Siti LaZ',
160
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-studia/laz',
161
+ target: '_self',
162
+ id: 'siti-laz',
163
+ highlight: false,
164
+ },
165
+ {
166
+ label: 'Test Manuel: Per chi insegna La sezione Insegnare con l’IA propone oltre 80 attività',
167
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-chi-studia/ciao-manuel',
168
+ target: '_self',
169
+ id: 'ciao-manuel',
170
+ group: {
171
+ label: 'Proposta editorale',
172
+ id: 'proposta-editoriale',
173
+ },
174
+ highlight: false,
175
+ },
176
+ ],
177
+ },
178
+ {
179
+ label: 'Per le scuole',
180
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-le-scuole',
181
+ target: '_self',
182
+ id: 'per-le-scuole',
183
+ highlight: false,
184
+ menuItems: [
185
+ {
186
+ label: 'La nostra proposta per i Bisogni Educativi Speciali',
187
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-le-scuole/longformtestfrappa',
188
+ target: '_self',
189
+ id: 'longformtestfrappa',
190
+ highlight: false,
191
+ },
192
+ ],
193
+ },
194
+ {
195
+ label: 'Per le librerie',
196
+ href: 'https://test-www.aglebert.zanichelli.it/scuola/per-le-librerie',
197
+ target: '_self',
198
+ id: 'per-le-librerie',
199
+ highlight: false,
200
+ menuItems: [],
201
+ },
202
+ ],
203
+ },
204
+ {
205
+ label: 'Università',
206
+ href: 'https://test-www.aglebert.zanichelli.it/universita',
207
+ target: '_self',
208
+ id: 'universita',
209
+ highlight: false,
210
+ navbarItems: [
211
+ {
212
+ label: 'Per chi insegna',
213
+ href: 'https://test-www.aglebert.zanichelli.it/universita/per-chi-insegna',
214
+ target: '_self',
215
+ id: 'per-chi-insegna-5b3787',
216
+ highlight: false,
217
+ menuItems: [],
218
+ },
219
+ {
220
+ label: 'Per chi studia',
221
+ href: 'https://test-www.aglebert.zanichelli.it/universita/per-chi-studia',
222
+ target: '_self',
223
+ id: 'per-chi-studia-86b006',
224
+ highlight: false,
225
+ menuItems: [
226
+ {
227
+ label: 'Test Manuel: Per chi insegna La sezione Insegnare con l’IA propone oltre 80 attività',
228
+ href: 'https://test-www.aglebert.zanichelli.it/universita/per-chi-studia/ciao-manuel',
229
+ target: '_self',
230
+ id: 'ciao-manuel',
231
+ group: {
232
+ label: 'Proposta editorale',
233
+ id: 'proposta-editoriale',
234
+ },
235
+ highlight: false,
236
+ },
237
+ ],
238
+ },
239
+ ],
240
+ },
241
+ {
242
+ label: 'Giuridico',
243
+ href: 'https://test-www.aglebert.zanichelli.it/giuridico',
244
+ target: '_self',
245
+ id: 'giuridico',
246
+ highlight: false,
247
+ menuItems: [
248
+ {
249
+ label: 'Contatti',
250
+ href: 'https://test-www.aglebert.zanichelli.it/giuridico/contatti-c0b9ed',
251
+ target: '_self',
252
+ id: 'contatti-c0b9ed',
253
+ group: {
254
+ label: 'In evidenza',
255
+ id: 'in-evidenza',
256
+ },
257
+ highlight: true,
258
+ },
259
+ {
260
+ label: 'Manuali universitari',
261
+ href: 'https://test-www.aglebert.zanichelli.it/giuridico/manuali-universitari',
262
+ target: '_self',
263
+ id: 'manuali-universitari',
264
+ group: {
265
+ label: 'Primo biennio',
266
+ id: 'secondaria-2-grado-biennio',
199
267
  },
200
- ],
201
- },
202
- ],
203
- },
204
- {
205
- label: 'Giuridico',
206
- href: 'https://test-www.aglebert.zanichelli.it/giuridico',
207
- id: 'giuridico',
208
- highlight: false,
209
- menuItems: [
210
- {
211
- label: 'Contatti',
212
- href: 'https://test-www.aglebert.zanichelli.it/giuridico/contatti-c0b9ed',
213
- id: 'contatti-c0b9ed',
214
- group: {
215
- label: 'In evidenza',
216
- id: 'in-evidenza',
268
+ highlight: false,
269
+ navbarItems: [],
270
+ },
271
+ {
272
+ label: 'Notiziario zanichelli',
273
+ href: 'https://test-www.aglebert.zanichelli.it/giuridico/notiziario-zanichelli-ea8873',
274
+ target: '_self',
275
+ id: 'notiziario-zanichelli-ea8873',
276
+ highlight: false,
277
+ navbarItems: [],
217
278
  },
218
- highlight: true,
219
- },
220
- {
221
- label: 'Manuali universitari',
222
- href: 'https://test-www.aglebert.zanichelli.it/giuridico/manuali-universitari',
223
- id: 'manuali-universitari',
224
- group: {
225
- label: 'Primo biennio',
226
- id: 'secondaria-2-grado-biennio',
279
+ {
280
+ label: 'Sostenibilità ambientale - 7',
281
+ href: 'https://test-www.aglebert.zanichelli.it/giuridico/sostenibilita-ambientale-7-9881c1',
282
+ target: '_self',
283
+ id: 'sostenibilita-ambientale-7-9881c1',
284
+ highlight: false,
227
285
  },
228
- highlight: false,
229
- navbarItems: [],
230
- },
231
- {
232
- label: 'Notiziario zanichelli',
233
- href: 'https://test-www.aglebert.zanichelli.it/giuridico/notiziario-zanichelli-ea8873',
234
- id: 'notiziario-zanichelli-ea8873',
235
- highlight: false,
236
- navbarItems: [],
237
- },
238
- {
239
- label: 'Sostenibilità ambientale - 7',
240
- href: 'https://test-www.aglebert.zanichelli.it/giuridico/sostenibilita-ambientale-7-9881c1',
241
- id: 'sostenibilita-ambientale-7-9881c1',
242
- highlight: false,
243
- },
244
- ],
245
- },
246
- {
247
- label: 'Saggistica',
248
- href: 'https://test-www.aglebert.zanichelli.it/saggistica',
249
- id: 'saggistica',
250
- highlight: false,
251
- menuItems: [],
252
- },
253
- ])
254
- );
286
+ ],
287
+ },
288
+ {
289
+ label: 'Saggistica',
290
+ href: 'https://test-www.aglebert.zanichelli.it/saggistica',
291
+ target: '_self',
292
+ id: 'saggistica',
293
+ highlight: false,
294
+ menuItems: [],
295
+ },
296
+ ]);
297
+ }, 2000);
298
+ });
255
299
  });
256
300
  </script> </header> <main> <section class="buttons font-serif"> <div class="heading-1-bd">Buttons <span class="body-3">(z-button.zanit-button)</span></div> <section> <div class="heading-3-sb">Default color</div> <div class="buttons-container"> <z-button class="zanit-button" icon="plus">button</z-button> <z-button class="zanit-button" variant="secondary" icon="plus">button</z-button> <z-button class="zanit-button" variant="tertiary" icon="plus">button</z-button> </div> </section> <section> <div class="heading-4-sb">Disabled</div> <div class="buttons-container"> <z-button class="zanit-button" icon="plus" disabled="">button</z-button> <z-button class="zanit-button" variant="secondary" icon="plus" disabled="">button</z-button> <z-button class="zanit-button" variant="tertiary" icon="plus" disabled="">button</z-button> </div> </section> <section> <div class="heading-3-sb">Dark <span class="body-3">(z-button.zanit-button-dark)</span></div> <div class="buttons-container"> <z-button class="zanit-button-dark" icon="plus">button</z-button> <z-button class="zanit-button-dark" variant="secondary" icon="plus">button</z-button> <z-button class="zanit-button-dark" variant="tertiary" icon="plus">button</z-button> </div> </section> <section> <div class="heading-4-sb">Disabled</div> <div class="buttons-container"> <z-button class="zanit-button-dark" icon="plus" disabled="">button</z-button> <z-button class="zanit-button-dark" variant="secondary" icon="plus" disabled="">button</z-button> <z-button class="zanit-button-dark" variant="tertiary" icon="plus" disabled="">button</z-button> </div> </section> </section> <section class="links font-serif"> <div class="heading-1-bd">Links</div> <section> <div class="heading-3-sb">Link default <span class="body-3">(.zanit-link)</span></div> <a class="zanit-link body-2 font-sans" href="#">Questo è un link</a> </section> <section> <div class="heading-3-sb">Link inverse <span class="body-3">(.zanit-link-inverse)</span></div> <div class="inverse-link-container"> <a class="zanit-link-inverse body-2 font-sans" href="#">Questo è un link</a> </div> </section> </section> </main> <style>* {
257
301
  box-sizing: border-box;
@@ -1 +0,0 @@
1
- {"file":"p-DGmSfTXD.js","mappings":";;;AAiBA,MAAM,iBAAiB,GAAG,SAAS;AACnC,MAAM,aAAa,GAAG;AACpB,IAAA,EAAE,EAAE,iBAAiB;AACrB,IAAA,KAAK,EAAE,iBAAiB;CACzB;AAED;AACA,MAAM,eAAe,GAAG,CAAC,KAAiB,KAAI;IAC5C,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAsE,CAAC,OAAO,EAAE,IAAI,KAAI;AACjH,QAAA,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,aAAa,CAAC,EAAE,CAAC,CAAC;QAChG,IAAI,CAAC,SAAS,EAAE;AACd,YAAA,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,aAAa,EAAE,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;;aAC9D;AACL,YAAA,SAAS,CAAC,K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GAAG,MAAM,GAAG,OAAO,EAC7D,QAAQ,EAAE,EAAE,EACZ,SAAS,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,EACnD,MAAM,EAAE,IAAI,CAAC,MAAM,EAAA,EAEnB,CAAA,CAAA,MAAA,EAAA,EAAA,WAAA,EAAiB,IAAI,CAAC,KAAK,IAAG,IAAI,CAAC,KAAK,CAAQ,CAC9C,CACD,CACN,CAAC,CACE,CACP,CACF,CACE,CACN,CACG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/menubar/menu/menu.tsx","src/components/menubar/mobile-menubar/mobile-menubar.css?tag=zanit-mobile-menubar&encapsulation=shadow","src/components/menubar/menu/menu.css?tag=zanit-mobile-menubar&encapsulation=shadow","src/components/menubar/mobile-menubar/mobile-menubar.tsx"],"sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\nimport { MenuItem } from '../../../utils/types';\n\n/**\n * Menu of items that can be grouped.\n * @member {string} controlledBy - The HTML id of the element that controls the menu.\n * @member {MenuItem[]} items - The items to show in the menu.\n * @member {string[]} currentPath - Path of current item.\n * @member {function} onItemKeyDown - The function to call when a key is pressed from a menuitem.\n */\nexport interface MenuProps {\n controlledBy?: string;\n items?: MenuItem[];\n currentPath?: string[];\n onItemKeyDown?: (event: KeyboardEvent) => void;\n}\n\nconst DEFAULT_GROUP_KEY = 'default';\nconst DEFAULT_GROUP = {\n id: DEFAULT_GROUP_KEY,\n label: DEFAULT_GROUP_KEY,\n};\n\n/** Get the items grouped by their group. */\nconst getGroupedItems = (items: MenuItem[]) => {\n const groups = items.reduce<{ group: MenuProps['items'][number]['group']; items: MenuItem[] }[]>((grouped, item) => {\n const itemGroup = grouped.find(({ group }) => group.id === (item.group?.id || DEFAULT_GROUP.id));\n if (!itemGroup) {\n grouped.push({ group: item.group ?? DEFAULT_GROUP, items: [item] });\n } else {\n itemGroup.items.push(item);\n }\n\n return grouped;\n }, []);\n\n // Sort to keep default group at the end\n return groups.sort((a, b) => (a.group.id === DEFAULT_GROUP_KEY ? 1 : b.group.id === DEFAULT_GROUP_KEY ? -1 : 0));\n};\n\n/**\n * Floating menu component. It shows a list of items that can be grouped.\n */\nexport const Menu: FunctionalComponent<MenuProps> = ({ controlledBy, items, currentPath = [], onItemKeyDown }) => {\n if (!items?.length) {\n return null;\n }\n\n const groups = getGroupedItems(items);\n\n const isActive = (item: MenuItem) => currentPath.includes(controlledBy) && currentPath.includes(item.id);\n\n return (\n <div\n class=\"menu-wrapper\"\n role=\"none\"\n >\n <div\n class=\"menu\"\n aria-labelledby={controlledBy ?? undefined}\n role=\"menu\"\n >\n {groups.map(({ group, items }) => (\n <div class={{ group: true, highlight: items.some((item) => item.highlight) }}>\n {group.id !== DEFAULT_GROUP_KEY ? (\n <div\n class=\"group-name\"\n id={group.id}\n >\n {group.label}\n </div>\n ) : groups.length > 1 ? (\n // empty div to keep the same height as the other groups\n <div class=\"group-name\" />\n ) : null}\n <ul\n class=\"menu-list\"\n role=\"group\"\n aria-labelledby={group.id !== DEFAULT_GROUP_KEY ? group.id : undefined}\n >\n {items.map((item) => (\n <li role=\"none\">\n {item.href && (\n <a\n class={{\n 'menu-item': true,\n 'active': isActive(item),\n }}\n href={item.href}\n role=\"menuitem\"\n tabIndex={-1}\n aria-current={isActive(item) ? 'page' : 'false'}\n onKeyDown={(event) => onItemKeyDown(event)}\n target={item.target}\n >\n {item.label}\n </a>\n )}\n </li>\n ))}\n </ul>\n </div>\n ))}\n </div>\n </div>\n );\n};\n",":host {\n position: relative;\n z-index: 2;\n display: block;\n width: 100%;\n max-width: 100%;\n background-color: #fff;\n color: var(--gray900);\n fill: var(--gray900);\n font-family: var(--font-family-sans);\n}\n\n:host,\n*,\n::before,\n::after {\n box-sizing: border-box;\n}\n\n*:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\nul {\n padding: 0;\n margin: 0;\n list-style: none;\n}\n\na {\n color: var(--gray900);\n cursor: pointer;\n text-decoration: none;\n}\n\nbutton {\n all: unset;\n cursor: pointer;\n}\n\nnav {\n display: flex;\n width: 100%;\n align-items: center;\n padding: 8px var(--grid-margin);\n}\n\nnav::after {\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background: transparent;\n box-shadow: var(--shadow-1);\n content: '';\n pointer-events: none;\n}\n\n.burger-button {\n margin-left: auto;\n}\n\n.mobile-menu {\n position: absolute;\n top: 100%;\n left: 0;\n display: flex;\n width: 100%;\n flex-direction: column;\n padding: 16px var(--grid-margin) 32px;\n background-color: #fff;\n box-shadow: var(--shadow-2);\n gap: 8px;\n}\n\n.mobile-menu li {\n width: 100%;\n}\n\n.mobile-menu .items-container {\n display: flex;\n min-height: 256px;\n flex-direction: column;\n gap: 8px;\n}\n\n.mobile-menu .items-container z-ghost-loading {\n width: 40%;\n height: 1.2rem;\n}\n\n.mobile-menu .items-container .menubar-item {\n display: block;\n width: 100%;\n padding: 8px 0;\n font-size: 1rem;\n text-align: left;\n}\n\n.mobile-menu .items-container li:not(:last-child) .menubar-item {\n border-bottom: 1px solid #000;\n}\n\n[role='menuitem'].parent {\n display: flex;\n width: fit-content;\n align-items: center;\n padding: 0;\n border: none;\n font-size: 0.875rem;\n gap: 8px;\n}\n",".menu-wrapper {\n width: 100%;\n background-color: #fff;\n}\n\n.menu {\n position: relative;\n display: flex;\n width: 100%;\n flex-direction: column;\n gap: 32px 0;\n}\n\n.menu .group {\n display: flex;\n flex-direction: column;\n}\n\n.menu .group .group-name {\n border-bottom: 1px solid currentcolor;\n margin-bottom: 4px;\n color: var(--red500);\n font-size: 0.875rem;\n font-weight: var(--font-rg);\n}\n\n.menu .group .menu-list {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.menu .group .menu-list .menu-item {\n border-bottom: 2px solid transparent;\n font-size: 0.875rem;\n font-weight: var(--font-md);\n}\n\n.menu .menu-list .menu-item.active,\n.menu .menu-list .menu-item:hover {\n border-bottom-color: var(--red500);\n}\n\n.menu .group.highlight .menu-list .menu-item {\n font-size: 1rem;\n}\n\n@media (width >= 768px) {\n .menu-wrapper {\n position: absolute;\n top: 100%;\n left: 0;\n display: flex;\n justify-content: center;\n box-shadow: var(--shadow-1);\n }\n\n .menu {\n display: grid;\n width: 100%;\n max-width: var(--zanit-menubar-max-width, 1366px);\n padding: 16px var(--grid-margin);\n gap: 0 24px;\n grid-auto-columns: minmax(0, max-content);\n grid-auto-flow: column;\n grid-template-rows: minmax(0, max-content) max-content;\n }\n\n .menu .group {\n display: grid;\n grid-row: 1 / -1;\n grid-template-columns: 1fr;\n grid-template-rows: subgrid;\n }\n\n @supports not (grid-template-rows: subgrid) {\n .menu .group {\n grid-template-rows: repeat(auto-fit, minmax(0, max-content));\n }\n }\n\n .menu .group .group-name {\n border: none;\n margin-bottom: 16px;\n }\n\n .menu .group .menu-list .menu-item {\n font-size: 1rem;\n }\n\n .menu .group.highlight .menu-list .menu-item {\n font-size: 1.5rem;\n }\n\n .menu .group.highlight .menu-list {\n gap: 24px;\n }\n}\n","import { Component, Element, h, Listen, Prop, State, Watch } from '@stencil/core';\nimport { MenubarItem, MenuItem } from '../../../utils/types';\nimport { containsTarget, moveFocus } from '../../../utils/utils';\nimport { Menu } from '../menu/menu';\n\n/** Mobile menubar component. */\n@Component({\n tag: 'zanit-mobile-menubar',\n styleUrls: ['mobile-menubar.css', '../menu/menu.css'],\n shadow: true,\n})\nexport class ZanitMobileMenubar {\n @Element() host: HTMLZanitMobileMenubarElement;\n\n /** IDs path of the current item. */\n @Prop() currentPath: string[] = [];\n\n /** Menubar items. */\n @Prop() items: MenubarItem[] = [];\n\n /** Initial search query. */\n @Prop({ mutable: true }) searchQuery: string | undefined = undefined;\n\n /** Whether the menubar is loading the data. */\n @Prop() loading: boolean = false;\n\n /** Last active item ID. */\n @State() lastCurrent: string | undefined = undefined;\n @State() parentItem: MenubarItem | undefined = undefined;\n @State() menuItems: MenubarItem[] | MenuItem[] | undefined = undefined;\n /** Whether the items to render come from a menubar or a menu. */\n @State() menuType: 'menubar' | 'menu' | undefined = undefined;\n @State() open: boolean;\n\n @Watch('items')\n @Watch('currentPath')\n onItemsChange() {\n this.lastCurrent = this.currentPath?.length ? this.currentPath[this.currentPath.length - 1] : undefined;\n this.setupData(this.items);\n }\n\n /**\n * Find the current item and take its parent, `menuItems` or the `navbarItems`.\n */\n private setupData(items: MenubarItem[], parent?: MenubarItem) {\n // If no current item is defined, we show all items\n if (this.lastCurrent === undefined) {\n this.parentItem = undefined;\n this.menuType = 'menubar';\n this.menuItems = items;\n return;\n }\n\n for (const item of items) {\n if (item.id === this.lastCurrent) {\n this.parentItem = parent;\n this.menuType = item.menuItems?.length ? 'menu' : 'menubar';\n this.menuItems = item.menuItems || item.navbarItems;\n return;\n }\n\n if (\n this.currentPath.length > 1 &&\n item.id === this.currentPath[this.currentPath.length - 2] &&\n item.menuItems?.some(({ id }) => id === this.lastCurrent)\n ) {\n this.parentItem = item;\n this.menuType = item.menuItems?.length ? 'menu' : 'menubar';\n this.menuItems = item.menuItems || item.navbarItems;\n return;\n }\n\n if (item.navbarItems?.length) {\n this.setupData(item.navbarItems, item);\n }\n }\n }\n\n private get menuItemsElement() {\n return Array.from(this.host.shadowRoot.querySelectorAll('[role=\"menuitem\"]')) as HTMLElement[];\n }\n\n /** Initialize tabindex on menuitems, setting -1 to all but the first one. */\n private initTabindex() {\n this.menuItemsElement.forEach((item, index) => item.setAttribute('tabindex', index === 0 ? '0' : '-1'));\n }\n\n private toggleMenu() {\n if (this.open) {\n this.open = false;\n } else {\n this.open = true;\n setTimeout(() => {\n this.initTabindex();\n this.menuItemsElement[0]?.focus();\n }, 200);\n }\n }\n\n /** Handles keyboard navigation on mobile menu. */\n private handleItemKeydown(event: KeyboardEvent) {\n switch (event.key) {\n case 'ArrowUp': {\n event.preventDefault();\n event.stopPropagation();\n const items = this.menuItemsElement;\n const currentIndex = items.indexOf(event.target as HTMLElement);\n const prevItem = items[(currentIndex - 1 + items.length) % items.length];\n moveFocus(items[currentIndex], prevItem);\n break;\n }\n case 'ArrowDown': {\n event.preventDefault();\n event.stopPropagation();\n const items = this.menuItemsElement;\n const currentIndex = items.indexOf(event.target as HTMLElement);\n const nextItem = items[(currentIndex + 1) % items.length];\n moveFocus(items[currentIndex], nextItem);\n break;\n }\n case 'Home': {\n event.preventDefault();\n event.stopPropagation();\n moveFocus(event.target as HTMLElement, this.menuItemsElement[0]);\n break;\n }\n case 'End': {\n event.preventDefault();\n event.stopPropagation();\n moveFocus(event.target as HTMLElement, this.menuItemsElement.pop());\n break;\n }\n }\n }\n\n connectedCallback() {\n this.lastCurrent = this.currentPath?.length ? this.currentPath[this.currentPath.length - 1] : undefined;\n this.setupData(this.items);\n }\n\n /** Close the menu when clicking outside. */\n @Listen('click', { target: 'document', passive: true })\n handleOutsideClick(event: MouseEvent) {\n if (containsTarget(this.host, event)) {\n return;\n }\n\n this.open = false;\n }\n\n /** Close the menu when pressing Escape or Tab. */\n @Listen('keydown', { passive: true })\n handleKeydown(event: KeyboardEvent) {\n switch (event.key) {\n case 'Escape':\n this.open = false;\n break;\n case 'Tab':\n if (containsTarget(this.host, event)) {\n break;\n }\n\n this.open = false;\n break;\n }\n }\n\n /** Close the menu when the focus goes out. */\n @Listen('focusin', { target: 'document', passive: true })\n handleFocusout(event: FocusEvent) {\n if (containsTarget(this.host, event)) {\n return;\n }\n\n this.open = false;\n }\n\n render() {\n return (\n <nav aria-label=\"Zanichelli.it\">\n <z-logo\n imageAlt=\"Logo Zanichelli\"\n link=\"/\"\n height={32}\n width={126}\n ></z-logo>\n <button\n class=\"burger-button\"\n type=\"button\"\n aria-expanded={this.open ? 'true' : 'false'}\n aria-controls=\"mobile-menu\"\n aria-label={this.open ? 'Chiudi menù' : 'Apri menù'}\n onClick={() => this.toggleMenu()}\n >\n <z-icon\n name={this.open ? 'multiply' : 'burger-menu'}\n width=\"1.5rem\"\n height=\"1.5rem\"\n ></z-icon>\n </button>\n {this.open && (\n <ul\n class=\"mobile-menu\"\n role=\"menubar\"\n >\n <li role=\"none\">\n <zanit-search-form\n searchQuery={this.searchQuery}\n onResetSearch={() => (this.searchQuery = undefined)}\n />\n </li>\n\n {!this.loading && this.currentPath && this.currentPath.length > 0 && (\n <li role=\"none\">\n <a\n class=\"parent\"\n href={this.parentItem?.href ?? '/'}\n id={this.parentItem?.id ?? undefined}\n role=\"menuitem\"\n tabIndex={-1}\n onKeyDown={(event) => this.handleItemKeydown(event)}\n target={this.parentItem?.target}\n >\n <z-icon\n name=\"arrow-left\"\n width=\"0.5rem\"\n height=\"0.5rem\"\n ></z-icon>\n <span>\n {/* Show the 'Home' label if the current item is a root child. */}\n {this.parentItem?.label || 'Home'}\n </span>\n </a>\n </li>\n )}\n\n {this.loading && (\n <div\n class=\"items-container\"\n role=\"none\"\n >\n {[...new Array(4)].map(() => (\n <li role=\"none\">\n <div\n class=\"menubar-item\"\n role=\"none\"\n >\n <z-ghost-loading></z-ghost-loading>\n </div>\n </li>\n ))}\n </div>\n )}\n\n {this.menuType === 'menu' ? (\n <Menu\n items={this.menuItems}\n controlledBy={this.parentItem?.id}\n currentPath={this.currentPath}\n onItemKeyDown={(event) => this.handleItemKeydown(event)}\n />\n ) : (\n this.menuItems?.length && (\n <div\n class=\"items-container\"\n role=\"none\"\n >\n {this.menuItems.map((item) => (\n <li role=\"none\">\n <a\n class={{\n 'menu-item': this.menuType === 'menu',\n 'menubar-item': this.menuType === 'menubar',\n }}\n href={item.href}\n id={item.id}\n role=\"menuitem\"\n aria-current={this.lastCurrent === item.id ? 'page' : 'false'}\n tabIndex={-1}\n onKeyDown={(event) => this.handleItemKeydown(event)}\n target={item.target}\n >\n <span data-text={item.label}>{item.label}</span>\n </a>\n </li>\n ))}\n </div>\n )\n )}\n </ul>\n )}\n </nav>\n );\n }\n}\n"],"version":3}