@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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { ItTimeline } from './it-timeline.js';
|
|
2
|
+
export { ItTimelineElement } from './it-timeline-element.js';
|
|
3
|
+
export { ItTimelinePoint } from './it-timeline-point.js';
|
|
4
|
+
export { T as TIMELINE_ELEMENT_DARK_VARIANTS, a as TIMELINE_ELEMENT_VARIANTS, b as TIMELINE_HEADING_LEVELS, c as TIMELINE_POINT_COLORS, d as TIMELINE_POINT_LIST_TAGS, e as TIMELINE_VARIANTS } from '../types-zcTWplot.js';
|
|
5
|
+
import 'lit';
|
|
6
|
+
import 'lit/decorators.js';
|
|
7
|
+
import 'lit/static-html.js';
|
|
8
|
+
import 'lit/directive.js';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BaseComponent } from '@italia/globals';
|
|
2
|
+
import { type TimelineElementVariant, type TimelineHeadingLevel } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Singolo elemento della timeline classica di Bootstrap Italia.
|
|
5
|
+
*
|
|
6
|
+
* Usa **shadow DOM** con slot reali: l'utente mette il contenuto
|
|
7
|
+
* direttamente come figli senza classi aggiuntive.
|
|
8
|
+
*
|
|
9
|
+
* @slot pin-icon - Icona del pin (es. `<it-icon>`). Se omessa viene mostrata un'icona segnaposto.
|
|
10
|
+
* @slot - Contenuto dell'elemento (es. `<it-card>`).
|
|
11
|
+
*
|
|
12
|
+
* @attr {string} variant - Variante colore del pin: `''` (futuro), `current` (presente, azzurro), `past` (passato, blu scuro).
|
|
13
|
+
* @attr {string} date - Etichetta testuale del periodo (es. `MAGGIO 2026`).
|
|
14
|
+
* @attr {string} heading-level - Livello heading (`h2`–`h6`). Default: `h3`.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```html
|
|
18
|
+
* <it-timeline-element variant="past" date="MAGGIO 2026">
|
|
19
|
+
* <it-icon slot="pin-icon" name="it-file" aria-hidden="true"></it-icon>
|
|
20
|
+
* <it-card>
|
|
21
|
+
* <a slot="title" href="#">Titolo del contenuto</a>
|
|
22
|
+
* <span slot="text">Descrizione breve.</span>
|
|
23
|
+
* </it-card>
|
|
24
|
+
* </it-timeline-element>
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare class ItTimelineElement extends BaseComponent {
|
|
28
|
+
static styles: import("lit").CSSResultGroup;
|
|
29
|
+
variant: TimelineElementVariant;
|
|
30
|
+
date: string;
|
|
31
|
+
headingLevel: TimelineHeadingLevel;
|
|
32
|
+
protected getHeadingLevel(): TimelineHeadingLevel;
|
|
33
|
+
protected getVariant(): TimelineElementVariant;
|
|
34
|
+
render(): import("lit").TemplateResult;
|
|
35
|
+
/**
|
|
36
|
+
* When the pin-icon slot changes, auto-set `color="white"` on any `<it-icon>`
|
|
37
|
+
* that doesn't already have an explicit color attribute.
|
|
38
|
+
*/
|
|
39
|
+
private _onPinIconSlotChange;
|
|
40
|
+
}
|
|
41
|
+
declare global {
|
|
42
|
+
interface HTMLElementTagNameMap {
|
|
43
|
+
'it-timeline-element': ItTimelineElement;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=it-timeline-element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"it-timeline-element.d.ts","sourceRoot":"","sources":["../../src/it-timeline-element.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,OAAO,EAIL,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EAC1B,MAAM,YAAY,CAAC;AASpB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBACa,iBAAkB,SAAQ,aAAa;IAClD,MAAM,CAAC,MAAM,+BAAU;IAGvB,OAAO,EAAE,sBAAsB,CAAM;IAGrC,IAAI,SAAM;IAGV,YAAY,EAAE,oBAAoB,CAAQ;IAE1C,SAAS,CAAC,eAAe,IAAI,oBAAoB;IAIjD,SAAS,CAAC,UAAU,IAAI,sBAAsB;IAIrC,MAAM;IA2Cf;;;OAGG;IACH,OAAO,CAAC,oBAAoB;CAY7B;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,qBAAqB,EAAE,iBAAiB,CAAC;KAC1C;CACF"}
|