@italia/timeline 1.0.0-alpha.10
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/AUTHORS +2 -0
- package/LICENSE +9 -0
- package/README.md +62 -0
- package/custom-elements.json +829 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +9 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/it-timeline-element.d.ts +46 -0
- package/dist/src/it-timeline-element.d.ts.map +1 -0
- package/dist/src/it-timeline-element.js +1946 -0
- package/dist/src/it-timeline-element.js.map +1 -0
- package/dist/src/it-timeline-point.d.ts +86 -0
- package/dist/src/it-timeline-point.d.ts.map +1 -0
- package/dist/src/it-timeline-point.js +388 -0
- package/dist/src/it-timeline-point.js.map +1 -0
- package/dist/src/it-timeline.d.ts +79 -0
- package/dist/src/it-timeline.d.ts.map +1 -0
- package/dist/src/it-timeline.js +276 -0
- package/dist/src/it-timeline.js.map +1 -0
- package/dist/src/types.d.ts +13 -0
- package/dist/src/types.d.ts.map +1 -0
- package/package.json +72 -0
- package/styles/globals.scss +231 -0
|
@@ -0,0 +1,829 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "src/index.ts",
|
|
8
|
+
"declarations": [],
|
|
9
|
+
"exports": [
|
|
10
|
+
{
|
|
11
|
+
"kind": "js",
|
|
12
|
+
"name": "ItTimeline",
|
|
13
|
+
"declaration": {
|
|
14
|
+
"name": "ItTimeline",
|
|
15
|
+
"module": "./it-timeline.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"kind": "js",
|
|
20
|
+
"name": "ItTimelineElement",
|
|
21
|
+
"declaration": {
|
|
22
|
+
"name": "ItTimelineElement",
|
|
23
|
+
"module": "./it-timeline-element.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"kind": "js",
|
|
28
|
+
"name": "ItTimelinePoint",
|
|
29
|
+
"declaration": {
|
|
30
|
+
"name": "ItTimelinePoint",
|
|
31
|
+
"module": "./it-timeline-point.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"kind": "js",
|
|
36
|
+
"name": "*",
|
|
37
|
+
"declaration": {
|
|
38
|
+
"name": "*",
|
|
39
|
+
"module": "src/types.js"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"kind": "javascript-module",
|
|
46
|
+
"path": "src/it-timeline-element.ts",
|
|
47
|
+
"declarations": [
|
|
48
|
+
{
|
|
49
|
+
"kind": "class",
|
|
50
|
+
"description": "Singolo elemento della timeline classica di Bootstrap Italia.\n\nUsa **shadow DOM** con slot reali: l'utente mette il contenuto\ndirettamente come figli senza classi aggiuntive.",
|
|
51
|
+
"name": "ItTimelineElement",
|
|
52
|
+
"slots": [
|
|
53
|
+
{
|
|
54
|
+
"description": "Icona del pin (es. `<it-icon>`). Se omessa viene mostrata un'icona segnaposto.",
|
|
55
|
+
"name": "pin-icon"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"description": "Contenuto dell'elemento (es. `<it-card>`).",
|
|
59
|
+
"name": ""
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"members": [
|
|
63
|
+
{
|
|
64
|
+
"kind": "field",
|
|
65
|
+
"name": "variant",
|
|
66
|
+
"type": {
|
|
67
|
+
"text": "TimelineElementVariant"
|
|
68
|
+
},
|
|
69
|
+
"default": "''",
|
|
70
|
+
"attribute": "variant"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"kind": "field",
|
|
74
|
+
"name": "date",
|
|
75
|
+
"type": {
|
|
76
|
+
"text": "string"
|
|
77
|
+
},
|
|
78
|
+
"default": "''",
|
|
79
|
+
"attribute": "date"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"kind": "field",
|
|
83
|
+
"name": "headingLevel",
|
|
84
|
+
"type": {
|
|
85
|
+
"text": "TimelineHeadingLevel"
|
|
86
|
+
},
|
|
87
|
+
"default": "'h3'",
|
|
88
|
+
"attribute": "heading-level"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"kind": "method",
|
|
92
|
+
"name": "getHeadingLevel",
|
|
93
|
+
"privacy": "protected",
|
|
94
|
+
"return": {
|
|
95
|
+
"type": {
|
|
96
|
+
"text": "TimelineHeadingLevel"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"kind": "method",
|
|
102
|
+
"name": "getVariant",
|
|
103
|
+
"privacy": "protected",
|
|
104
|
+
"return": {
|
|
105
|
+
"type": {
|
|
106
|
+
"text": "TimelineElementVariant"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"kind": "method",
|
|
112
|
+
"name": "_onPinIconSlotChange",
|
|
113
|
+
"privacy": "private",
|
|
114
|
+
"parameters": [
|
|
115
|
+
{
|
|
116
|
+
"name": "e",
|
|
117
|
+
"type": {
|
|
118
|
+
"text": "Event"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "needsInverse",
|
|
123
|
+
"type": {
|
|
124
|
+
"text": "boolean"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"description": "When the pin-icon slot changes, auto-set `color=\"white\"` on any `<it-icon>`\nthat doesn't already have an explicit color attribute."
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"attributes": [
|
|
132
|
+
{
|
|
133
|
+
"type": {
|
|
134
|
+
"text": "TimelineElementVariant"
|
|
135
|
+
},
|
|
136
|
+
"description": "Variante colore del pin: `''` (futuro), `current` (presente, azzurro), `past` (passato, blu scuro).",
|
|
137
|
+
"name": "variant",
|
|
138
|
+
"default": "''",
|
|
139
|
+
"fieldName": "variant"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"type": {
|
|
143
|
+
"text": "string"
|
|
144
|
+
},
|
|
145
|
+
"description": "Etichetta testuale del periodo (es. `MAGGIO 2026`).",
|
|
146
|
+
"name": "date",
|
|
147
|
+
"default": "''",
|
|
148
|
+
"fieldName": "date"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"type": {
|
|
152
|
+
"text": "TimelineHeadingLevel"
|
|
153
|
+
},
|
|
154
|
+
"description": "Livello heading (`h2`–`h6`). Default: `h3`.",
|
|
155
|
+
"name": "heading-level",
|
|
156
|
+
"default": "'h3'",
|
|
157
|
+
"fieldName": "headingLevel"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"superclass": {
|
|
161
|
+
"name": "BaseComponent",
|
|
162
|
+
"package": "@italia/globals"
|
|
163
|
+
},
|
|
164
|
+
"tagName": "it-timeline-element",
|
|
165
|
+
"customElement": true
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"exports": [
|
|
169
|
+
{
|
|
170
|
+
"kind": "js",
|
|
171
|
+
"name": "ItTimelineElement",
|
|
172
|
+
"declaration": {
|
|
173
|
+
"name": "ItTimelineElement",
|
|
174
|
+
"module": "src/it-timeline-element.ts"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"kind": "custom-element-definition",
|
|
179
|
+
"name": "it-timeline-element",
|
|
180
|
+
"declaration": {
|
|
181
|
+
"name": "ItTimelineElement",
|
|
182
|
+
"module": "src/it-timeline-element.ts"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"kind": "javascript-module",
|
|
189
|
+
"path": "src/it-timeline-point.ts",
|
|
190
|
+
"declarations": [
|
|
191
|
+
{
|
|
192
|
+
"kind": "class",
|
|
193
|
+
"description": "Singolo punto della timeline point list di Bootstrap Italia.\n\nUsa **shadow DOM** con slot reali.",
|
|
194
|
+
"name": "ItTimelinePoint",
|
|
195
|
+
"slots": [
|
|
196
|
+
{
|
|
197
|
+
"description": "Contenuto laterale per date: usa `<time datetime=\"...\">`. Al suo interno puoi usare `<span class=\"point-visual\">`, `<span class=\"point-top\">`, `<span class=\"point-main\">`, `<span class=\"point-bottom\">`.",
|
|
198
|
+
"name": "date"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"description": "Contenuto laterale alternativo per milestone/step.",
|
|
202
|
+
"name": "milestone"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"description": "Contenuto principale del punto.",
|
|
206
|
+
"name": "content"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"members": [
|
|
210
|
+
{
|
|
211
|
+
"kind": "field",
|
|
212
|
+
"name": "color",
|
|
213
|
+
"type": {
|
|
214
|
+
"text": "TimelinePointColor"
|
|
215
|
+
},
|
|
216
|
+
"default": "'primary'",
|
|
217
|
+
"attribute": "color",
|
|
218
|
+
"reflects": true
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"kind": "field",
|
|
222
|
+
"name": "alignTop",
|
|
223
|
+
"type": {
|
|
224
|
+
"text": "boolean"
|
|
225
|
+
},
|
|
226
|
+
"default": "false",
|
|
227
|
+
"attribute": "align-top",
|
|
228
|
+
"reflects": true
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"kind": "field",
|
|
232
|
+
"name": "compact",
|
|
233
|
+
"type": {
|
|
234
|
+
"text": "boolean"
|
|
235
|
+
},
|
|
236
|
+
"default": "false",
|
|
237
|
+
"attribute": "compact",
|
|
238
|
+
"reflects": true
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"kind": "field",
|
|
242
|
+
"name": "_hasExplicitColor",
|
|
243
|
+
"type": {
|
|
244
|
+
"text": "boolean"
|
|
245
|
+
},
|
|
246
|
+
"default": "false",
|
|
247
|
+
"description": "`true` se l'utente ha impostato esplicitamente l'attributo `color` in HTML.\nUsato da `<it-timeline>` per decidere se propagare il colore del contenitore."
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"kind": "field",
|
|
251
|
+
"name": "_hasExplicitCompact",
|
|
252
|
+
"type": {
|
|
253
|
+
"text": "boolean"
|
|
254
|
+
},
|
|
255
|
+
"default": "false",
|
|
256
|
+
"description": "`true` se l'utente ha impostato esplicitamente l'attributo `compact` in HTML.\nUsato da `<it-timeline>` per decidere se propagare il compact del contenitore."
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"kind": "method",
|
|
260
|
+
"name": "getColor",
|
|
261
|
+
"privacy": "protected",
|
|
262
|
+
"return": {
|
|
263
|
+
"type": {
|
|
264
|
+
"text": "TimelinePointColor"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"kind": "method",
|
|
270
|
+
"name": "_updatePointSpanAttrs",
|
|
271
|
+
"privacy": "private",
|
|
272
|
+
"description": "Inspect the light DOM inside the slotted date/milestone elements and\nset boolean host attributes `has-point-top` / `has-point-bottom` so that\nshadow-DOM CSS can use reliable attribute selectors instead of the\nbrowser-inconsistent `:host(:has(.point-top))` slotted-descendant form."
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"kind": "method",
|
|
276
|
+
"name": "_updatePointVisualAriaHidden",
|
|
277
|
+
"privacy": "private",
|
|
278
|
+
"description": "Ensure every `.point-visual` element inside slotted content carries\n`aria-hidden=\"true\"` automatically — the accessible label should come\nfrom a sibling `<span class=\"visually-hidden\">`."
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"kind": "method",
|
|
282
|
+
"name": "_onAsideSlotChange",
|
|
283
|
+
"privacy": "private"
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
"attributes": [
|
|
287
|
+
{
|
|
288
|
+
"type": {
|
|
289
|
+
"text": "TimelinePointColor"
|
|
290
|
+
},
|
|
291
|
+
"description": "Colore: `primary` (default), `secondary`, `success`, `danger`, `warning`, `info`, `light`, `dark`.",
|
|
292
|
+
"name": "color",
|
|
293
|
+
"default": "'primary'",
|
|
294
|
+
"fieldName": "color"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"type": {
|
|
298
|
+
"text": "boolean"
|
|
299
|
+
},
|
|
300
|
+
"description": "Fissa verticalmente il punto all'inizio del contenuto.",
|
|
301
|
+
"name": "align-top",
|
|
302
|
+
"default": "false",
|
|
303
|
+
"fieldName": "alignTop"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"type": {
|
|
307
|
+
"text": "boolean"
|
|
308
|
+
},
|
|
309
|
+
"description": "Sezione laterale più compatta.",
|
|
310
|
+
"name": "compact",
|
|
311
|
+
"default": "false",
|
|
312
|
+
"fieldName": "compact"
|
|
313
|
+
}
|
|
314
|
+
],
|
|
315
|
+
"superclass": {
|
|
316
|
+
"name": "BaseComponent",
|
|
317
|
+
"package": "@italia/globals"
|
|
318
|
+
},
|
|
319
|
+
"tagName": "it-timeline-point",
|
|
320
|
+
"customElement": true
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
"exports": [
|
|
324
|
+
{
|
|
325
|
+
"kind": "js",
|
|
326
|
+
"name": "ItTimelinePoint",
|
|
327
|
+
"declaration": {
|
|
328
|
+
"name": "ItTimelinePoint",
|
|
329
|
+
"module": "src/it-timeline-point.ts"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"kind": "custom-element-definition",
|
|
334
|
+
"name": "it-timeline-point",
|
|
335
|
+
"declaration": {
|
|
336
|
+
"name": "ItTimelinePoint",
|
|
337
|
+
"module": "src/it-timeline-point.ts"
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
]
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"kind": "javascript-module",
|
|
344
|
+
"path": "src/it-timeline.ts",
|
|
345
|
+
"declarations": [
|
|
346
|
+
{
|
|
347
|
+
"kind": "class",
|
|
348
|
+
"description": "Contenitore universale per entrambe le varianti di timeline di Bootstrap Italia.\n\nLa variante è determinata dall'attributo `variant`:\n- `classic` (default) — timeline classica con pin e card, layout `.row > .col-12`.\n- `point-list` — lista compatta temporale, layout `ol/ul.it-timeline-point-list`.\n\nUsa **shadow DOM** con slot reali.",
|
|
349
|
+
"name": "ItTimeline",
|
|
350
|
+
"slots": [
|
|
351
|
+
{
|
|
352
|
+
"description": "Per `classic`: `<it-timeline-element>`. Per `point-list`: `<it-timeline-point>`.",
|
|
353
|
+
"name": ""
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
"members": [
|
|
357
|
+
{
|
|
358
|
+
"kind": "field",
|
|
359
|
+
"name": "variant",
|
|
360
|
+
"type": {
|
|
361
|
+
"text": "TimelineVariant"
|
|
362
|
+
},
|
|
363
|
+
"default": "'classic'",
|
|
364
|
+
"description": "Variante: `classic` (default) o `point-list`.",
|
|
365
|
+
"attribute": "variant"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"kind": "field",
|
|
369
|
+
"name": "color",
|
|
370
|
+
"type": {
|
|
371
|
+
"text": "TimelinePointColor"
|
|
372
|
+
},
|
|
373
|
+
"default": "'primary'",
|
|
374
|
+
"description": "Colore predefinito per i punti figlio — solo per `variant=\"point-list\"`.\nViene propagato a tutti gli `<it-timeline-point>` che non hanno un attributo\n`color` esplicito. Default: `primary`.",
|
|
375
|
+
"attribute": "color"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"kind": "field",
|
|
379
|
+
"name": "as",
|
|
380
|
+
"type": {
|
|
381
|
+
"text": "TimelinePointListTag"
|
|
382
|
+
},
|
|
383
|
+
"default": "'ol'",
|
|
384
|
+
"description": "Tag della lista — solo per `variant=\"point-list\"`. Default: `ol`.",
|
|
385
|
+
"attribute": "as"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"kind": "field",
|
|
389
|
+
"name": "stackMobile",
|
|
390
|
+
"type": {
|
|
391
|
+
"text": "boolean"
|
|
392
|
+
},
|
|
393
|
+
"default": "false",
|
|
394
|
+
"description": "Layout mobile verticale — solo per `variant=\"point-list\"`.",
|
|
395
|
+
"attribute": "stack-mobile",
|
|
396
|
+
"reflects": true
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"kind": "field",
|
|
400
|
+
"name": "compact",
|
|
401
|
+
"type": {
|
|
402
|
+
"text": "boolean"
|
|
403
|
+
},
|
|
404
|
+
"default": "false",
|
|
405
|
+
"description": "Compatta ogni elemento it-timeline-point figlio se `true` e non ha un compact esplicito. Solo per `variant=\"point-list\"`.",
|
|
406
|
+
"attribute": "compact",
|
|
407
|
+
"reflects": true
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"kind": "method",
|
|
411
|
+
"name": "_getVariant",
|
|
412
|
+
"privacy": "private",
|
|
413
|
+
"return": {
|
|
414
|
+
"type": {
|
|
415
|
+
"text": "TimelineVariant"
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"kind": "method",
|
|
421
|
+
"name": "_renderClassic",
|
|
422
|
+
"privacy": "private"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"kind": "method",
|
|
426
|
+
"name": "_renderPointList",
|
|
427
|
+
"privacy": "private"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"kind": "field",
|
|
431
|
+
"name": "_onSlotChange",
|
|
432
|
+
"privacy": "private",
|
|
433
|
+
"description": "Propagates container color to child points and sets position on elements."
|
|
434
|
+
}
|
|
435
|
+
],
|
|
436
|
+
"attributes": [
|
|
437
|
+
{
|
|
438
|
+
"type": {
|
|
439
|
+
"text": "TimelineVariant"
|
|
440
|
+
},
|
|
441
|
+
"description": "Variante: `classic` (default) o `point-list`.",
|
|
442
|
+
"name": "variant",
|
|
443
|
+
"default": "'classic'",
|
|
444
|
+
"fieldName": "variant"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"type": {
|
|
448
|
+
"text": "TimelinePointColor"
|
|
449
|
+
},
|
|
450
|
+
"description": "Colore predefinito per i punti figlio — solo per `variant=\"point-list\"`.\nViene propagato a tutti gli `<it-timeline-point>` che non hanno un attributo\n`color` esplicito. Default: `primary`.",
|
|
451
|
+
"name": "color",
|
|
452
|
+
"default": "'primary'",
|
|
453
|
+
"fieldName": "color"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"type": {
|
|
457
|
+
"text": "TimelinePointListTag"
|
|
458
|
+
},
|
|
459
|
+
"description": "Tag della lista — solo per `variant=\"point-list\"`. Default: `ol`.",
|
|
460
|
+
"name": "as",
|
|
461
|
+
"default": "'ol'",
|
|
462
|
+
"fieldName": "as"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"type": {
|
|
466
|
+
"text": "boolean"
|
|
467
|
+
},
|
|
468
|
+
"description": "Layout mobile verticale — solo per `variant=\"point-list\"`.",
|
|
469
|
+
"name": "stack-mobile",
|
|
470
|
+
"default": "false",
|
|
471
|
+
"fieldName": "stackMobile"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "compact",
|
|
475
|
+
"type": {
|
|
476
|
+
"text": "boolean"
|
|
477
|
+
},
|
|
478
|
+
"default": "false",
|
|
479
|
+
"description": "Compatta ogni elemento it-timeline-point figlio se `true` e non ha un compact esplicito. Solo per `variant=\"point-list\"`.",
|
|
480
|
+
"fieldName": "compact"
|
|
481
|
+
}
|
|
482
|
+
],
|
|
483
|
+
"superclass": {
|
|
484
|
+
"name": "BaseComponent",
|
|
485
|
+
"package": "@italia/globals"
|
|
486
|
+
},
|
|
487
|
+
"tagName": "it-timeline",
|
|
488
|
+
"customElement": true
|
|
489
|
+
}
|
|
490
|
+
],
|
|
491
|
+
"exports": [
|
|
492
|
+
{
|
|
493
|
+
"kind": "js",
|
|
494
|
+
"name": "ItTimeline",
|
|
495
|
+
"declaration": {
|
|
496
|
+
"name": "ItTimeline",
|
|
497
|
+
"module": "src/it-timeline.ts"
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"kind": "custom-element-definition",
|
|
502
|
+
"name": "it-timeline",
|
|
503
|
+
"declaration": {
|
|
504
|
+
"name": "ItTimeline",
|
|
505
|
+
"module": "src/it-timeline.ts"
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
]
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"kind": "javascript-module",
|
|
512
|
+
"path": "src/types.ts",
|
|
513
|
+
"declarations": [
|
|
514
|
+
{
|
|
515
|
+
"kind": "variable",
|
|
516
|
+
"name": "TIMELINE_VARIANTS",
|
|
517
|
+
"type": {
|
|
518
|
+
"text": "['classic', 'point-list']"
|
|
519
|
+
},
|
|
520
|
+
"default": "['classic', 'point-list']"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"kind": "variable",
|
|
524
|
+
"name": "TIMELINE_ELEMENT_VARIANTS",
|
|
525
|
+
"type": {
|
|
526
|
+
"text": "['', 'current', 'past']"
|
|
527
|
+
},
|
|
528
|
+
"default": "['', 'current', 'past']"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"kind": "variable",
|
|
532
|
+
"name": "TIMELINE_ELEMENT_DARK_VARIANTS",
|
|
533
|
+
"type": {
|
|
534
|
+
"text": "ReadonlyArray<TimelineElementVariant>"
|
|
535
|
+
},
|
|
536
|
+
"default": "['current', 'past']",
|
|
537
|
+
"description": "Variants that have a non-white (dark/colored) pin background, requiring inverse icon color."
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"kind": "variable",
|
|
541
|
+
"name": "TIMELINE_HEADING_LEVELS",
|
|
542
|
+
"type": {
|
|
543
|
+
"text": "['h2', 'h3', 'h4', 'h5', 'h6']"
|
|
544
|
+
},
|
|
545
|
+
"default": "['h2', 'h3', 'h4', 'h5', 'h6']"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"kind": "variable",
|
|
549
|
+
"name": "TIMELINE_POINT_COLORS",
|
|
550
|
+
"type": {
|
|
551
|
+
"text": "[\n 'primary',\n 'secondary',\n 'success',\n 'danger',\n 'warning',\n 'info',\n 'light',\n 'dark',\n]"
|
|
552
|
+
},
|
|
553
|
+
"default": "[ 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'light', 'dark', ]"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"kind": "variable",
|
|
557
|
+
"name": "TIMELINE_POINT_LIST_TAGS",
|
|
558
|
+
"type": {
|
|
559
|
+
"text": "['ol', 'ul']"
|
|
560
|
+
},
|
|
561
|
+
"default": "['ol', 'ul']"
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
"exports": [
|
|
565
|
+
{
|
|
566
|
+
"kind": "js",
|
|
567
|
+
"name": "TIMELINE_VARIANTS",
|
|
568
|
+
"declaration": {
|
|
569
|
+
"name": "TIMELINE_VARIANTS",
|
|
570
|
+
"module": "src/types.ts"
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"kind": "js",
|
|
575
|
+
"name": "TIMELINE_ELEMENT_VARIANTS",
|
|
576
|
+
"declaration": {
|
|
577
|
+
"name": "TIMELINE_ELEMENT_VARIANTS",
|
|
578
|
+
"module": "src/types.ts"
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"kind": "js",
|
|
583
|
+
"name": "TIMELINE_ELEMENT_DARK_VARIANTS",
|
|
584
|
+
"declaration": {
|
|
585
|
+
"name": "TIMELINE_ELEMENT_DARK_VARIANTS",
|
|
586
|
+
"module": "src/types.ts"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"kind": "js",
|
|
591
|
+
"name": "TIMELINE_HEADING_LEVELS",
|
|
592
|
+
"declaration": {
|
|
593
|
+
"name": "TIMELINE_HEADING_LEVELS",
|
|
594
|
+
"module": "src/types.ts"
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"kind": "js",
|
|
599
|
+
"name": "TIMELINE_POINT_COLORS",
|
|
600
|
+
"declaration": {
|
|
601
|
+
"name": "TIMELINE_POINT_COLORS",
|
|
602
|
+
"module": "src/types.ts"
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"kind": "js",
|
|
607
|
+
"name": "TIMELINE_POINT_LIST_TAGS",
|
|
608
|
+
"declaration": {
|
|
609
|
+
"name": "TIMELINE_POINT_LIST_TAGS",
|
|
610
|
+
"module": "src/types.ts"
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
]
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"kind": "javascript-module",
|
|
617
|
+
"path": "stories/it-timeline.stories.ts",
|
|
618
|
+
"declarations": [
|
|
619
|
+
{
|
|
620
|
+
"kind": "variable",
|
|
621
|
+
"name": "metaTimeline",
|
|
622
|
+
"default": "{ title: 'Componenti/Timeline', tags: ['a11y-ok', 'web-component', 'alpha'], component: 'it-timeline', parameters: { layout: 'padded', }, } satisfies Meta"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"kind": "variable",
|
|
626
|
+
"name": "EsempioInterattivoClassica",
|
|
627
|
+
"type": {
|
|
628
|
+
"text": "Story"
|
|
629
|
+
},
|
|
630
|
+
"default": "{ name: 'Esempio interattivo – Timeline classica', tags: ['!dev'], parameters: { docs: { canvas: { sourceState: 'shown', }, }, }, argTypes: { variant: { control: 'select', options: TIMELINE_ELEMENT_VARIANTS, description: 'Variante colore del pin: vuota (futuro), `current` (presente, azzurro), `past` (passato, blu scuro)', table: { defaultValue: { summary: '' } }, }, date: { control: 'text', description: 'Etichetta testuale del periodo (es. MAGGIO 2026)', table: { defaultValue: { summary: '' } }, }, headingLevel: { name: 'heading-level', control: 'select', options: TIMELINE_HEADING_LEVELS, description: 'Livello heading del pin. Adattare alla gerarchia della pagina.', table: { defaultValue: { summary: 'h3' } }, }, } as Meta<TimelineElementProps>['argTypes'], args: { variant: '', date: 'MAGGIO 2026', headingLevel: 'h3', } as TimelineElementProps, render: (args: Record<string, unknown>) => html` <it-timeline> <it-timeline-element variant=${ifDefined((args.variant as string) || undefined)} date=${ifDefined(args.date as string)} heading-level=${ifDefined(args.headingLevel as string)} > <it-icon slot=\"pin-icon\" name=\"it-file\"></it-icon> <it-card> <a slot=\"title\" href=\"#\">Titolo del contenuto</a> <figure slot=\"image\" class=\"figure img-full\"> <img src=\"https://placeholderimage.eu/api/city/800/600\" alt=\"Breve descrizione immagine se ha senso nel contesto, marcare altrimenti come decorativa lasciando l'alt applicato ma vuoto.\" /> </figure> <span slot=\"text\"> Questo è un testo breve che riassume il contenuto della pagina di destinazione in massimo tre o quattro righe, senza troncamento. </span> <time slot=\"footer\" class=\"it-card-date\" datetime=\"2026-04-22\">22 aprile 2026</time> </it-card> </it-timeline-element> </it-timeline> `, }"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"kind": "variable",
|
|
634
|
+
"name": "TimelineClassica",
|
|
635
|
+
"type": {
|
|
636
|
+
"text": "Story"
|
|
637
|
+
},
|
|
638
|
+
"default": "{ name: 'Timeline classica', parameters: { docs: { description: { story: 'Il componente timeline classica mostra eventi passati, presenti e futuri lungo un asse verticale (mobile) o centrale (desktop). Il pin ha tre varianti di colore: `past` (blu scuro, passato), `current` (azzurro, presente) e senza classe (bianco, futuro).', }, }, }, render: () => html` <it-timeline> <it-timeline-element variant=\"past\" date=\"MAGGIO 2026\" heading-level=\"h3\"> <it-icon slot=\"pin-icon\" name=\"it-file\"></it-icon> <it-card> <a slot=\"title\" href=\"#\">Titolo del contenuto</a> <figure slot=\"image\" class=\"figure img-full\"> <img src=\"https://placeholderimage.eu/api/city/800/600\" alt=\"Breve descrizione immagine se ha senso nel contesto, marcare altrimenti come decorativa lasciando l'alt applicato ma vuoto.\" /> </figure> <span slot=\"text\"> Questo è un testo breve che riassume il contenuto della pagina di destinazione in massimo tre o quattro righe, senza troncamento. </span> <time slot=\"footer\" class=\"it-card-date\" datetime=\"2026-04-22\">22 aprile 2026</time> </it-card> </it-timeline-element> <it-timeline-element variant=\"past\" date=\"GIUGNO 2026\" heading-level=\"h3\"> <it-icon slot=\"pin-icon\" name=\"it-calendar\"></it-icon> <it-card> <a slot=\"title\" href=\"#\">Titolo del contenuto</a> <span slot=\"text\"> Questo è un testo breve che riassume il contenuto della pagina di destinazione in massimo tre o quattro righe, senza troncamento. </span> <time slot=\"footer\" class=\"it-card-date\" datetime=\"2026-04-22\">22 aprile 2026</time> </it-card> </it-timeline-element> <it-timeline-element variant=\"current\" date=\"LUGLIO 2026\" heading-level=\"h3\"> <it-icon slot=\"pin-icon\" name=\"it-check-circle\"></it-icon> <it-card> <a slot=\"title\" href=\"#\">Titolo del contenuto</a> <span slot=\"text\"> Questo è un testo breve che riassume il contenuto della pagina di destinazione in massimo tre o quattro righe, senza troncamento. </span> <time slot=\"footer\" class=\"it-card-date\" datetime=\"2026-04-22\">22 aprile 2026</time> </it-card> </it-timeline-element> <it-timeline-element variant=\"current\" date=\"LUGLIO 2026\" heading-level=\"h3\"> <it-icon slot=\"pin-icon\" name=\"it-check-circle\"></it-icon> <it-card> <a slot=\"title\" href=\"#\">Titolo del contenuto</a> <span slot=\"text\"> Questo è un testo breve che riassume il contenuto della pagina di destinazione in massimo tre o quattro righe, senza troncamento. </span> <time slot=\"footer\" class=\"it-card-date\" datetime=\"2026-04-22\">22 aprile 2026</time> </it-card> </it-timeline-element> <it-timeline-element date=\"AGOSTO 2026\" heading-level=\"h3\"> <it-icon slot=\"pin-icon\" name=\"it-star-outline\"></it-icon> <it-card> <a slot=\"title\" href=\"#\">Titolo del contenuto</a> <span slot=\"text\"> Questo è un testo breve che riassume il contenuto della pagina di destinazione in massimo tre o quattro righe, senza troncamento. </span> <time slot=\"footer\" class=\"it-card-date\" datetime=\"2026-04-22\">22 aprile 2026</time> </it-card> </it-timeline-element> </it-timeline> `, }"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"kind": "variable",
|
|
642
|
+
"name": "EsempioInterattivoPointList",
|
|
643
|
+
"type": {
|
|
644
|
+
"text": "Story"
|
|
645
|
+
},
|
|
646
|
+
"default": "{ name: 'Esempio interattivo – Timeline point list', tags: ['!dev'], parameters: { docs: { canvas: { sourceState: 'shown', }, description: { story: 'La timeline point list è una variante compatta per presentare brevi sequenze di eventi o scadenze temporali.', }, }, }, argTypes: { as: { control: 'select', options: TIMELINE_POINT_LIST_TAGS, description: 'Tag HTML della lista. `ol` è raccomandato per sequenze cronologiche.', table: { defaultValue: { summary: 'ol' } }, }, stackMobile: { name: 'stack-mobile', control: 'boolean', description: 'Su mobile dispone la sezione laterale in verticale sopra il contenuto. Usare con card complete.', table: { defaultValue: { summary: 'false' } }, }, color: { control: 'select', options: TIMELINE_POINT_COLORS, description: 'Colore predefinito della linea e del cerchio per tutti i punti. Singoli punti possono sovrascriverlo.', table: { defaultValue: { summary: 'primary' } }, }, alignTop: { name: 'align-top', control: 'boolean', description: 'Fissa il punto in cima al contenuto. Utile per contenuti lunghi.', table: { defaultValue: { summary: 'false' } }, }, compact: { control: 'boolean', description: 'Rende la sezione laterale più compatta anche su desktop.', table: { defaultValue: { summary: 'false' } }, }, } as Meta<TimelinePointListProps & TimelinePointProps>['argTypes'], args: { as: 'ol', stackMobile: false, color: 'primary', alignTop: false, compact: false, } as TimelinePointListProps & TimelinePointProps, render: (args: Record<string, unknown>) => html` <it-timeline variant=\"point-list\" as=${ifDefined(args.as as string)} color=${ifDefined(args.color as string)} ?stack-mobile=${args.stackMobile} > <it-timeline-point ?align-top=${args.alignTop} ?compact=${args.compact}> <time slot=\"date\" datetime=\"2025-10-14\"> <span class=\"visually-hidden\">14 ottobre 2025</span> <span class=\"point-visual\"> <span class=\"point-main font-monospace\">14</span> <span class=\"point-bottom font-monospace\">ott</span> </span> </time> <p slot=\"content\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </it-timeline-point> <it-timeline-point ?align-top=${args.alignTop} ?compact=${args.compact}> <time slot=\"date\" datetime=\"2025-12-14\"> <span class=\"visually-hidden\">14 dicembre 2025</span> <span class=\"point-visual\"> <span class=\"point-main font-monospace\">14</span> <span class=\"point-bottom font-monospace\">dic</span> </span> </time> <p slot=\"content\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </it-timeline-point> </it-timeline> `, }"
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"kind": "variable",
|
|
650
|
+
"name": "PointListConGiornoEMese",
|
|
651
|
+
"type": {
|
|
652
|
+
"text": "Story"
|
|
653
|
+
},
|
|
654
|
+
"default": "{ name: 'Con giorno e mese', render: () => html` <it-timeline variant=\"point-list\"> <it-timeline-point> <time slot=\"date\" datetime=\"2025-10-14\"> <span class=\"visually-hidden\">14 ottobre 2025</span> <span class=\"point-visual\"> <span class=\"point-main font-monospace\">14</span> <span class=\"point-bottom font-monospace\">ottobre</span> </span> </time> <p slot=\"content\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </it-timeline-point> </it-timeline> `, }"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"kind": "variable",
|
|
658
|
+
"name": "PointListConAnnoGiornoEMese",
|
|
659
|
+
"type": {
|
|
660
|
+
"text": "Story"
|
|
661
|
+
},
|
|
662
|
+
"default": "{ name: 'Con anno, giorno e mese', render: () => html` <it-timeline variant=\"point-list\"> <it-timeline-point> <time slot=\"date\" datetime=\"2025-10-14\"> <span class=\"visually-hidden\">14 ottobre 2025</span> <span class=\"point-visual\"> <span class=\"point-top font-monospace\">2025</span> <span class=\"point-main font-monospace\">14</span> <span class=\"point-bottom font-monospace\">ottobre</span> </span> </time> <p slot=\"content\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </it-timeline-point> </it-timeline> `, }"
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"kind": "variable",
|
|
666
|
+
"name": "PointListCompatto",
|
|
667
|
+
"type": {
|
|
668
|
+
"text": "Story"
|
|
669
|
+
},
|
|
670
|
+
"default": "{ name: 'Layout compatto su desktop', render: () => html` <it-timeline variant=\"point-list\" compact> <it-timeline-point> <time slot=\"date\" datetime=\"2025-10-14\"> <span class=\"visually-hidden\">14 ottobre 2025</span> <span class=\"point-visual\"> <span class=\"point-main font-monospace\">14</span> <span class=\"point-bottom font-monospace\">ott</span> </span> </time> <p slot=\"content\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </it-timeline-point> <it-timeline-point> <time slot=\"date\" datetime=\"2025-10-14\"> <span class=\"visually-hidden\">14 ottobre 2025</span> <span class=\"point-visual\"> <span class=\"point-main font-monospace\">14</span> <span class=\"point-bottom font-monospace\">ott</span> </span> </time> <p slot=\"content\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </it-timeline-point> <it-timeline-point compact=\"false\"> <time slot=\"date\" datetime=\"2025-10-14\"> <span class=\"visually-hidden\">14 ottobre 2025</span> <span class=\"point-visual\"> <span class=\"point-main font-monospace\">14</span> <span class=\"point-bottom font-monospace\">ott</span> </span> </time> <p slot=\"content\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </it-timeline-point> </it-timeline> `, }"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"kind": "variable",
|
|
674
|
+
"name": "PointListTraguardiNumeri",
|
|
675
|
+
"type": {
|
|
676
|
+
"text": "Story"
|
|
677
|
+
},
|
|
678
|
+
"default": "{ name: 'Traguardi con numeri e sigle', render: () => html` <it-timeline variant=\"point-list\"> <it-timeline-point> <div slot=\"milestone\"> <span class=\"visually-hidden\">Passo 1</span> <span class=\"point-visual\"> <span class=\"point-main font-monospace\">1</span> </span> </div> <p slot=\"content\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </it-timeline-point> <it-timeline-point> <div slot=\"milestone\"> <span class=\"visually-hidden\">Passo 1 di 3</span> <span class=\"point-visual\"> <span class=\"point-main font-monospace\">1</span> <span class=\"point-bottom font-monospace\">/ 3</span> </span> </div> <p slot=\"content\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </it-timeline-point> <it-timeline-point> <div slot=\"milestone\"> <span class=\"visually-hidden\">Categoria AB, passo 1 di 3</span> <span class=\"point-visual\"> <span class=\"point-top font-monospace\">AB</span> <span class=\"point-main font-monospace\">1</span> <span class=\"point-bottom font-monospace\">/ 3</span> </span> </div> <p slot=\"content\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </it-timeline-point> </it-timeline> `, }"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"kind": "variable",
|
|
682
|
+
"name": "PointListMilestoneIcone",
|
|
683
|
+
"type": {
|
|
684
|
+
"text": "Story"
|
|
685
|
+
},
|
|
686
|
+
"default": "{ name: 'Traguardi con icone', render: () => html` <it-timeline variant=\"point-list\"> <it-timeline-point color=\"success\"> <div slot=\"milestone\"> <span class=\"visually-hidden\">Milestone completata</span> <span class=\"point-visual\"> <span class=\"point-main font-monospace\"> <it-icon name=\"it-check-circle\"></it-icon> </span> </span> </div> <p slot=\"content\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </it-timeline-point> <it-timeline-point color=\"primary\"> <div slot=\"milestone\"> <span class=\"visually-hidden\">Documento rilasciato</span> <span class=\"point-visual\"> <span class=\"point-main font-monospace\"> <it-icon name=\"it-file\"></it-icon> </span> </span> </div> <p slot=\"content\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </it-timeline-point> <it-timeline-point color=\"warning\"> <div slot=\"milestone\"> <span class=\"visually-hidden\">Versione 2, codice JavaScript</span> <span class=\"point-visual\"> <span class=\"point-top font-monospace\">v2</span> <span class=\"point-main font-monospace\"> <it-icon name=\"it-code-circle\"></it-icon> </span> <span class=\"point-bottom font-monospace\">JS</span> </span> </div> <p slot=\"content\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </it-timeline-point> </it-timeline> `, }"
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"kind": "variable",
|
|
690
|
+
"name": "PointListVariantiColoreFull",
|
|
691
|
+
"type": {
|
|
692
|
+
"text": "Story"
|
|
693
|
+
},
|
|
694
|
+
"default": "{ name: 'Varianti colore', decorators: [(Story) => html` <div style=\"display: flex; gap: 2rem; flex-wrap: wrap;\">${Story()}</div>`], render: () => html` ${(['primary', 'secondary', 'success', 'danger', 'warning', 'info'] as TimelinePointColor[]).map( (color) => html` <it-timeline variant=\"point-list\"> <it-timeline-point color=${color}> <time slot=\"date\" datetime=\"2025-10-14\"> <span class=\"visually-hidden\">14 ottobre 2025</span> <span class=\"point-visual\"> <span class=\"point-main font-monospace\">14</span> <span class=\"point-bottom font-monospace\">ott</span> </span> </time> <p slot=\"content\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </it-timeline-point> </it-timeline>`, )} `, }"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"kind": "variable",
|
|
698
|
+
"name": "PointListVariantiColore",
|
|
699
|
+
"type": {
|
|
700
|
+
"text": "Story"
|
|
701
|
+
},
|
|
702
|
+
"default": "{ name: 'Varianti colore punti indipendenti', render: () => html` <it-timeline variant=\"point-list\"> ${([undefined, 'secondary', 'success', 'danger', 'warning', 'info'] as TimelinePointColor[]).map( (color) => html` <it-timeline-point color=${ifDefined(color)}> <time slot=\"date\" datetime=\"2025-10-14\"> <span class=\"visually-hidden\">14 ottobre 2025</span> <span class=\"point-visual\"> <span class=\"point-main font-monospace\">14</span> <span class=\"point-bottom font-monospace\">ott</span> </span> </time> <p slot=\"content\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </it-timeline-point> `, )} </it-timeline> `, }"
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"kind": "variable",
|
|
706
|
+
"name": "PointListServiziPubblici",
|
|
707
|
+
"type": {
|
|
708
|
+
"text": "Story"
|
|
709
|
+
},
|
|
710
|
+
"default": "{ name: 'Timeline stile servizi pubblici', render: () => html` <it-timeline variant=\"point-list\" color=\"secondary\"> <it-timeline-point> <time slot=\"date\" datetime=\"2022-01-04\"> <span class=\"visually-hidden\">4 gennaio 2022</span> <span class=\"point-visual\" aria-hidden=\"true\"> <span class=\"point-top font-monospace\">2022</span> <span class=\"point-main font-monospace\">04</span> <span class=\"point-bottom font-monospace\">GEN</span> </span> </time> <it-card full-height border-top=\"secondary\" slot=\"content\"> <span slot=\"title\">Apertura iscrizioni</span> <div slot=\"body\">Inizio del periodo per presentare la domanda di iscrizione all'asilo.</div> </it-card> </it-timeline-point> <it-timeline-point> <time slot=\"date\" datetime=\"2022-02-04\"> <span class=\"visually-hidden\">4 febbraio 2022</span> <span class=\"point-visual\" aria-hidden=\"true\"> <span class=\"point-top font-monospace\">2022</span> <span class=\"point-main font-monospace\">04</span> <span class=\"point-bottom font-monospace\">FEB</span> </span> </time> <it-card full-height border-top=\"secondary\" slot=\"content\"> <span slot=\"title\">Termine presentazione domande</span> </it-card> </it-timeline-point> <it-timeline-point> <time slot=\"date\" datetime=\"2022-03-02\"> <span class=\"visually-hidden\">2 marzo 2022</span> <span class=\"point-visual\" aria-hidden=\"true\"> <span class=\"point-top font-monospace\">2022</span> <span class=\"point-main font-monospace\">02</span> <span class=\"point-bottom font-monospace\">MAR</span> </span> </time> <it-card full-height border-top=\"secondary\" slot=\"content\"> <span slot=\"title\">Pubblicazione graduatorie</span> <div slot=\"body\">Pubblicazione delle graduatorie provvisorie sul sito istituzionale.</div> </it-card> </it-timeline-point> <it-timeline-point align-top> <time slot=\"date\" datetime=\"2022-04-02\"> <span class=\"visually-hidden\">2 aprile 2022</span> <span class=\"point-visual\" aria-hidden=\"true\"> <span class=\"point-top font-monospace\">2022</span> <span class=\"point-main font-monospace\">02</span> <span class=\"point-bottom font-monospace\">APR</span> </span> </time> <it-card full-height border-top=\"secondary\" slot=\"content\"> <span slot=\"title\">Perfezionamento domande</span> <div slot=\"body\"> Termine ultimo per la conferma dell'iscrizione e il pagamento della quota. Fino al secondo o anche anche terzo riga utile per ulteriori istruzioni relative a questa scadenza. Se diventa così lungo bene avere la data allineata al to. </div> </it-card> </it-timeline-point> </it-timeline> `, }"
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"kind": "variable",
|
|
714
|
+
"name": "PointListComplessa",
|
|
715
|
+
"type": {
|
|
716
|
+
"text": "Story"
|
|
717
|
+
},
|
|
718
|
+
"default": "{ name: 'Esempio complesso con card complete', render: () => html` <it-timeline variant=\"point-list\" stack-mobile> <it-timeline-point align-top> <time slot=\"date\" datetime=\"2025-10-14\"> <span class=\"visually-hidden\">14 ottobre 2025</span> <span class=\"point-visual\"> <span class=\"point-main font-monospace\">14</span> <span class=\"point-bottom font-monospace\">ott</span> </span> </time> <it-card slot=\"content\"> <a slot=\"title\" href=\"#\">Titolo del contenuto</a> <span slot=\"text\"> Questo è un testo breve che riassume il contenuto della pagina di destinazione in massimo tre o quattro righe, senza troncamento. </span> <time slot=\"footer\" class=\"it-card-date\" datetime=\"2026-04-22\">22 aprile 2026</time> </it-card> </it-timeline-point> <it-timeline-point align-top color=\"danger\"> <time slot=\"date\" datetime=\"2025-10-31\"> <span class=\"visually-hidden\">31 ottobre 2025</span> <span class=\"point-visual\"> <span class=\"point-main font-monospace\">31</span> <span class=\"point-bottom font-monospace\">ott</span> </span> </time> <it-card slot=\"content\" variant=\"inline-mini\"> <a slot=\"title\" href=\"#\">Titolo contenuto editoriale</a> <div slot=\"footer\" class=\"it-card-taxonomy\"> <a href=\"#\" class=\"it-card-category it-card-link\"> <span class=\"visually-hidden\">Categoria correlata: </span> Categoria </a> </div> <time slot=\"footer\" class=\"it-card-date\" datetime=\"2026-04-22\">22 aprile, 2026</time> <figure slot=\"image\" class=\"figure img-full\"> <img src=\"https://placeholderimage.eu/api/city/800/600\" alt=\"Breve descrizione immagine se ha senso nel contesto, marcare altrimenti come decorativa lasciando l'alt applicato ma vuoto.\" /> </figure> </it-card> </it-timeline-point> <it-timeline-point color=\"success\" align-top> <div slot=\"milestone\"> <span class=\"visually-hidden\">Milestone completata</span> <span class=\"point-visual\"> <span class=\"point-main font-monospace\"> <it-icon name=\"it-check-circle\"></it-icon> </span> </span> </div> <it-card slot=\"content\" variant=\"inline-mini-reverse\"> <a slot=\"title\" href=\"#\">Titolo del contenuto</a> <figure slot=\"image\" class=\"figure img-full\"> <img src=\"https://placeholderimage.eu/api/city/800/600\" alt=\"Breve descrizione immagine se ha senso nel contesto, marcare altrimenti come decorativa lasciando l'alt applicato ma vuoto.\" /> </figure> <span slot=\"text\"> Questo è un testo breve che riassume il contenuto della pagina di destinazione in massimo tre o quattro righe, senza troncamento. </span> <time slot=\"footer\" class=\"it-card-date\" datetime=\"2026-04-22\">22 aprile 2026</time> </it-card> </it-timeline-point> </it-timeline> `, }"
|
|
719
|
+
}
|
|
720
|
+
],
|
|
721
|
+
"exports": [
|
|
722
|
+
{
|
|
723
|
+
"kind": "js",
|
|
724
|
+
"name": "default",
|
|
725
|
+
"declaration": {
|
|
726
|
+
"name": "metaTimeline",
|
|
727
|
+
"module": "stories/it-timeline.stories.ts"
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"kind": "js",
|
|
732
|
+
"name": "EsempioInterattivoClassica",
|
|
733
|
+
"declaration": {
|
|
734
|
+
"name": "EsempioInterattivoClassica",
|
|
735
|
+
"module": "stories/it-timeline.stories.ts"
|
|
736
|
+
}
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"kind": "js",
|
|
740
|
+
"name": "TimelineClassica",
|
|
741
|
+
"declaration": {
|
|
742
|
+
"name": "TimelineClassica",
|
|
743
|
+
"module": "stories/it-timeline.stories.ts"
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"kind": "js",
|
|
748
|
+
"name": "EsempioInterattivoPointList",
|
|
749
|
+
"declaration": {
|
|
750
|
+
"name": "EsempioInterattivoPointList",
|
|
751
|
+
"module": "stories/it-timeline.stories.ts"
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"kind": "js",
|
|
756
|
+
"name": "PointListConGiornoEMese",
|
|
757
|
+
"declaration": {
|
|
758
|
+
"name": "PointListConGiornoEMese",
|
|
759
|
+
"module": "stories/it-timeline.stories.ts"
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"kind": "js",
|
|
764
|
+
"name": "PointListConAnnoGiornoEMese",
|
|
765
|
+
"declaration": {
|
|
766
|
+
"name": "PointListConAnnoGiornoEMese",
|
|
767
|
+
"module": "stories/it-timeline.stories.ts"
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"kind": "js",
|
|
772
|
+
"name": "PointListCompatto",
|
|
773
|
+
"declaration": {
|
|
774
|
+
"name": "PointListCompatto",
|
|
775
|
+
"module": "stories/it-timeline.stories.ts"
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"kind": "js",
|
|
780
|
+
"name": "PointListTraguardiNumeri",
|
|
781
|
+
"declaration": {
|
|
782
|
+
"name": "PointListTraguardiNumeri",
|
|
783
|
+
"module": "stories/it-timeline.stories.ts"
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"kind": "js",
|
|
788
|
+
"name": "PointListMilestoneIcone",
|
|
789
|
+
"declaration": {
|
|
790
|
+
"name": "PointListMilestoneIcone",
|
|
791
|
+
"module": "stories/it-timeline.stories.ts"
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"kind": "js",
|
|
796
|
+
"name": "PointListVariantiColoreFull",
|
|
797
|
+
"declaration": {
|
|
798
|
+
"name": "PointListVariantiColoreFull",
|
|
799
|
+
"module": "stories/it-timeline.stories.ts"
|
|
800
|
+
}
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"kind": "js",
|
|
804
|
+
"name": "PointListVariantiColore",
|
|
805
|
+
"declaration": {
|
|
806
|
+
"name": "PointListVariantiColore",
|
|
807
|
+
"module": "stories/it-timeline.stories.ts"
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"kind": "js",
|
|
812
|
+
"name": "PointListServiziPubblici",
|
|
813
|
+
"declaration": {
|
|
814
|
+
"name": "PointListServiziPubblici",
|
|
815
|
+
"module": "stories/it-timeline.stories.ts"
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"kind": "js",
|
|
820
|
+
"name": "PointListComplessa",
|
|
821
|
+
"declaration": {
|
|
822
|
+
"name": "PointListComplessa",
|
|
823
|
+
"module": "stories/it-timeline.stories.ts"
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
]
|
|
827
|
+
}
|
|
828
|
+
]
|
|
829
|
+
}
|