@molecule/app-timeline-angular 0.0.0-stage → 1.1.0

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.
@@ -0,0 +1,63 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import type { UIClassMap } from '@molecule/app-ui';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * TimelineRail component.
6
+ *
7
+ * Left-hand rail of a timeline row — renders the marker (a default dot when
8
+ * none is given) and an optional vertical connector extending downward. The
9
+ * host IS the rail's outer `<div>` (`div[mol-timeline-rail]`), matching React's
10
+ * root exactly. A node-valued marker is an `ng-template` reference rendered
11
+ * through `NgTemplateOutlet`; the connector's inline style is applied the way
12
+ * React applies it (through the CSSOM), so the serialized attribute matches.
13
+ *
14
+ * This is the Angular counterpart of `@molecule/app-timeline-react`'s
15
+ * `TimelineRail`: the same props (React names), the same ClassMap tokens, and
16
+ * the same DOM for the same input.
17
+ */
18
+ export declare class TimelineRail {
19
+ /** Marker for this row, as a template reference or plain text. */
20
+ marker?: string | number | TemplateRef<unknown>;
21
+ /** Whether to render the vertical connector below the marker (defaults to `true`). */
22
+ connector?: boolean;
23
+ /** Extra classes on the outer wrapper. */
24
+ className?: string;
25
+ /**
26
+ * The current class map.
27
+ * @returns The UIClassMap.
28
+ */
29
+ cm(): UIClassMap;
30
+ /**
31
+ * Computes the outer rail class list.
32
+ * @returns The class string.
33
+ */
34
+ classes(): string;
35
+ /**
36
+ * React's `connector = true` default: an absent input keeps the connector.
37
+ * @returns Whether the connector renders.
38
+ */
39
+ hasConnector(): boolean;
40
+ /**
41
+ * Whether the marker holds a node (an `ng-template` reference) rather than text.
42
+ * @returns True when it renders through a template outlet.
43
+ */
44
+ markerTemplate(): TemplateRef<unknown> | null;
45
+ /**
46
+ * The text a marker renders (React renders strings and numbers as text).
47
+ * @returns The text, or null when the marker is a node or absent.
48
+ */
49
+ markerText(): string | null;
50
+ /**
51
+ * Computes the connector's class list (`cm.w(0)` + `cm.h('full')`).
52
+ * @returns The class string.
53
+ */
54
+ connectorClasses(): string;
55
+ /**
56
+ * The connector's inline style, exactly React's object.
57
+ * @returns The style declarations.
58
+ */
59
+ connectorStyle(): Record<string, string>;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimelineRail, never>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<TimelineRail, "div[mol-timeline-rail]", never, { "marker": { "alias": "marker"; "required": false; }; "connector": { "alias": "connector"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, never, true, never>;
62
+ }
63
+ //# sourceMappingURL=timeline-rail.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeline-rail.component.d.ts","sourceRoot":"","sources":["../src/timeline-rail.component.ts"],"names":[],"mappings":"AAOA,OAAO,EAAa,WAAW,EAAE,MAAM,eAAe,CAAA;AAEtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAGlD;;;;;;;;;;;;;GAaG;AACH,qBAqBa,YAAY;IACvB,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAA;IAC/C,sFAAsF;IACtF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,OAAO,IAAI,MAAM;IAQjB;;;OAGG;IACH,YAAY,IAAI,OAAO;IAIvB;;;OAGG;IACH,cAAc,IAAI,WAAW,CAAC,OAAO,CAAC,GAAG,IAAI;IAI7C;;;OAGG;IACH,UAAU,IAAI,MAAM,GAAG,IAAI;IAM3B;;;OAGG;IACH,gBAAgB,IAAI,MAAM;IAI1B;;;OAGG;IACH,cAAc,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;yCAlE7B,YAAY;2CAAZ,YAAY;CAqExB"}
@@ -0,0 +1,148 @@
1
+ /**
2
+ * TimelineRail component (React parity).
3
+ *
4
+ * @module
5
+ */
6
+ import { NgTemplateOutlet } from '@angular/common';
7
+ import { Component, TemplateRef } from '@angular/core';
8
+ import { getClassMap } from '@molecule/app-ui';
9
+ import * as i0 from "@angular/core";
10
+ function TimelineRail_Conditional_1_Template(rf, ctx) { if (rf & 1) {
11
+ i0.ɵɵelementContainer(0, 0);
12
+ } if (rf & 2) {
13
+ i0.ɵɵproperty("ngTemplateOutlet", ctx);
14
+ } }
15
+ function TimelineRail_Conditional_2_Template(rf, ctx) { if (rf & 1) {
16
+ i0.ɵɵtext(0);
17
+ } if (rf & 2) {
18
+ const ctx_r0 = i0.ɵɵnextContext();
19
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.markerText(), " ");
20
+ } }
21
+ function TimelineRail_Conditional_3_Template(rf, ctx) { if (rf & 1) {
22
+ i0.ɵɵelementStart(0, "span", 1);
23
+ i0.ɵɵtext(1, "\u2022");
24
+ i0.ɵɵelementEnd();
25
+ } }
26
+ function TimelineRail_Conditional_4_Template(rf, ctx) { if (rf & 1) {
27
+ i0.ɵɵelement(0, "div");
28
+ } if (rf & 2) {
29
+ const ctx_r0 = i0.ɵɵnextContext();
30
+ i0.ɵɵstyleMap(ctx_r0.connectorStyle());
31
+ i0.ɵɵclassMap(ctx_r0.connectorClasses());
32
+ } }
33
+ /**
34
+ * TimelineRail component.
35
+ *
36
+ * Left-hand rail of a timeline row — renders the marker (a default dot when
37
+ * none is given) and an optional vertical connector extending downward. The
38
+ * host IS the rail's outer `<div>` (`div[mol-timeline-rail]`), matching React's
39
+ * root exactly. A node-valued marker is an `ng-template` reference rendered
40
+ * through `NgTemplateOutlet`; the connector's inline style is applied the way
41
+ * React applies it (through the CSSOM), so the serialized attribute matches.
42
+ *
43
+ * This is the Angular counterpart of `@molecule/app-timeline-react`'s
44
+ * `TimelineRail`: the same props (React names), the same ClassMap tokens, and
45
+ * the same DOM for the same input.
46
+ */
47
+ export class TimelineRail {
48
+ /** Marker for this row, as a template reference or plain text. */
49
+ marker;
50
+ /** Whether to render the vertical connector below the marker (defaults to `true`). */
51
+ connector;
52
+ /** Extra classes on the outer wrapper. */
53
+ className;
54
+ /**
55
+ * The current class map.
56
+ * @returns The UIClassMap.
57
+ */
58
+ cm() {
59
+ return getClassMap();
60
+ }
61
+ /**
62
+ * Computes the outer rail class list.
63
+ * @returns The class string.
64
+ */
65
+ classes() {
66
+ return this.cm().cn(this.cm().flex({ direction: 'col', align: 'center' }), this.cm().shrink0, this.className);
67
+ }
68
+ /**
69
+ * React's `connector = true` default: an absent input keeps the connector.
70
+ * @returns Whether the connector renders.
71
+ */
72
+ hasConnector() {
73
+ return this.connector ?? true;
74
+ }
75
+ /**
76
+ * Whether the marker holds a node (an `ng-template` reference) rather than text.
77
+ * @returns True when it renders through a template outlet.
78
+ */
79
+ markerTemplate() {
80
+ return this.marker instanceof TemplateRef ? this.marker : null;
81
+ }
82
+ /**
83
+ * The text a marker renders (React renders strings and numbers as text).
84
+ * @returns The text, or null when the marker is a node or absent.
85
+ */
86
+ markerText() {
87
+ if (typeof this.marker === 'string')
88
+ return this.marker;
89
+ if (typeof this.marker === 'number')
90
+ return String(this.marker);
91
+ return null;
92
+ }
93
+ /**
94
+ * Computes the connector's class list (`cm.w(0)` + `cm.h('full')`).
95
+ * @returns The class string.
96
+ */
97
+ connectorClasses() {
98
+ return this.cm().cn(this.cm().w(0), this.cm().h('full'));
99
+ }
100
+ /**
101
+ * The connector's inline style, exactly React's object.
102
+ * @returns The style declarations.
103
+ */
104
+ connectorStyle() {
105
+ return { 'border-left': '1px solid currentColor', opacity: '0.2', 'min-height': '24px' };
106
+ }
107
+ static ɵfac = function TimelineRail_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TimelineRail)(); };
108
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimelineRail, selectors: [["div", "mol-timeline-rail", ""]], hostVars: 2, hostBindings: function TimelineRail_HostBindings(rf, ctx) { if (rf & 2) {
109
+ i0.ɵɵclassMap(ctx.classes());
110
+ } }, inputs: { marker: "marker", connector: "connector", className: "className" }, decls: 5, vars: 2, consts: [[3, "ngTemplateOutlet"], ["aria-hidden", "true"], [3, "class", "style"]], template: function TimelineRail_Template(rf, ctx) { if (rf & 1) {
111
+ i0.ɵɵelementStart(0, "div");
112
+ i0.ɵɵconditionalCreate(1, TimelineRail_Conditional_1_Template, 1, 1, "ng-container", 0)(2, TimelineRail_Conditional_2_Template, 1, 1)(3, TimelineRail_Conditional_3_Template, 2, 0, "span", 1);
113
+ i0.ɵɵelementEnd();
114
+ i0.ɵɵconditionalCreate(4, TimelineRail_Conditional_4_Template, 1, 4, "div", 2);
115
+ } if (rf & 2) {
116
+ let tmp_0_0;
117
+ i0.ɵɵadvance();
118
+ i0.ɵɵconditional((tmp_0_0 = ctx.markerTemplate()) ? 1 : ctx.markerText() !== null ? 2 : 3, tmp_0_0);
119
+ i0.ɵɵadvance(3);
120
+ i0.ɵɵconditional(ctx.hasConnector() ? 4 : -1);
121
+ } }, dependencies: [NgTemplateOutlet], encapsulation: 2 });
122
+ }
123
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimelineRail, [{
124
+ type: Component,
125
+ args: [{
126
+ selector: 'div[mol-timeline-rail]',
127
+ standalone: true,
128
+ imports: [NgTemplateOutlet],
129
+ inputs: ['marker', 'connector', 'className'],
130
+ host: {
131
+ '[class]': 'classes()',
132
+ },
133
+ template: `<div>
134
+ @if (markerTemplate(); as marker) {
135
+ <ng-container [ngTemplateOutlet]="marker" />
136
+ } @else if (markerText() !== null) {
137
+ {{ markerText() }}
138
+ } @else {
139
+ <span aria-hidden="true">•</span>
140
+ }
141
+ </div>
142
+ @if (hasConnector()) {
143
+ <div [class]="connectorClasses()" [style]="connectorStyle()"></div>
144
+ }`,
145
+ }]
146
+ }], null, null); })();
147
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TimelineRail, { className: "TimelineRail", filePath: "timeline-rail.component.ts", lineNumber: 48 }); })();
148
+ //# sourceMappingURL=timeline-rail.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeline-rail.component.js","sourceRoot":"","sources":["../src/timeline-rail.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAGtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;;;IA0BtC,2BAA4C;;IAA9B,sCAA2B;;;IAEzC,YACF;;;IADE,oDACF;;;IACE,+BAAyB;IAAA,sBAAC;IAAA,iBAAO;;;IAInC,sBAAmE;;;IAAjC,sCAA0B;IAAvD,wCAA4B;;AAhCvC;;;;;;;;;;;;;GAaG;AAsBH,MAAM,OAAO,YAAY;IACvB,kEAAkE;IAClE,MAAM,CAAyC;IAC/C,sFAAsF;IACtF,SAAS,CAAU;IACnB,0CAA0C;IAC1C,SAAS,CAAS;IAElB;;;OAGG;IACH,EAAE;QACA,OAAO,WAAW,EAAE,CAAA;IACtB,CAAC;IAED;;;OAGG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,EAAE,EAAE,CAAC,EAAE,CACjB,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EACrD,IAAI,CAAC,EAAE,EAAE,CAAC,OAAO,EACjB,IAAI,CAAC,SAAS,CACf,CAAA;IACH,CAAC;IAED;;;OAGG;IACH,YAAY;QACV,OAAO,IAAI,CAAC,SAAS,IAAI,IAAI,CAAA;IAC/B,CAAC;IAED;;;OAGG;IACH,cAAc;QACZ,OAAO,IAAI,CAAC,MAAM,YAAY,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAA;IAChE,CAAC;IAED;;;OAGG;IACH,UAAU;QACR,IAAI,OAAO,IAAI,CAAC,MAAM,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC,MAAM,CAAA;QACvD,IAAI,OAAO,IAAI,CAAC,MAAM,KAAK,QAAQ;YAAE,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC/D,OAAO,IAAI,CAAA;IACb,CAAC;IAED;;;OAGG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAC1D,CAAC;IAED;;;OAGG;IACH,cAAc;QACZ,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,CAAA;IAC1F,CAAC;sGApEU,YAAY;6DAAZ,YAAY;YAAZ,cAAA,aAAS,CAAG;;YAbZ,2BAAK;YAKV,AAFA,AAFF,uFAAmC,8CAEC,yDAE3B;YAGX,iBAAM;YACN,8EAAsB;;;YARpB,cAMC;YAND,mGAMC;YAEH,eAEC;YAFD,6CAEC;4BAhBO,gBAAgB;;iFAkBf,YAAY;cArBxB,SAAS;eAAC;gBACT,QAAQ,EAAE,wBAAwB;gBAClC,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,gBAAgB,CAAC;gBAC3B,MAAM,EAAE,CAAC,QAAQ,EAAE,WAAW,EAAE,WAAW,CAAC;gBAC5C,IAAI,EAAE;oBACJ,SAAS,EAAE,WAAW;iBACvB;gBACD,QAAQ,EAAE;;;;;;;;;;;MAWN;aACL;;kFACY,YAAY"}
@@ -0,0 +1,101 @@
1
+ import { type AfterViewChecked, type AfterViewInit, type DoCheck, TemplateRef } from '@angular/core';
2
+ import type { UIClassMap } from '@molecule/app-ui';
3
+ import type { TimelineEventData } from './types.js';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Timeline component.
7
+ *
8
+ * Vertical chronological list of events, each rendered with a marker +
9
+ * connector on the left (`<div mol-timeline-event>`). Optional date separators
10
+ * come from `renderDateSeparator`, a template reference whose context carries
11
+ * the event as `$implicit` / `a0` and its predecessor as `a1`.
12
+ *
13
+ * React's root is the wrapper `<div>` — or, with no events and an empty state,
14
+ * that empty state alone (a fragment). A host element always exists in Angular,
15
+ * so this component's host is transparent (`mol-timeline`, `display: contents`,
16
+ * unwrapped by the conformance normalizer) and the template renders whichever
17
+ * root React would. The empty state is projected content
18
+ * (`[slot=emptyState]`) or a template reference passed as an input, reconciled
19
+ * against React's branch by {@link Timeline.ngAfterViewInit} /
20
+ * {@link Timeline.ngAfterViewChecked} / {@link Timeline.ngDoCheck}. Rows are
21
+ * tracked by the event's `id` value (`@for (…; track event.id)`), like React's
22
+ * per-item keys.
23
+ *
24
+ * This is the Angular counterpart of `@molecule/app-timeline-react`'s
25
+ * `Timeline`: the same props (React names), the same ClassMap tokens, and the
26
+ * same DOM for the same input.
27
+ */
28
+ export declare class Timeline implements AfterViewInit, AfterViewChecked, DoCheck {
29
+ /** Events in display order. */
30
+ events: TimelineEventData[];
31
+ /** Optional renderer for date separators: a template reference with the event in its context. */
32
+ renderDateSeparator?: TemplateRef<unknown>;
33
+ /** Rendered when there are no events: a template reference, plain text, or `[slot=emptyState]`. */
34
+ emptyState?: unknown;
35
+ /** Extra classes on the outer wrapper. */
36
+ className?: string;
37
+ /** The projected empty-state capture point (unwrapped, so React's bare slot). */
38
+ private empty?;
39
+ /** The wrapper `<div>` (detached when the empty state renders instead). */
40
+ private list?;
41
+ private readonly guard;
42
+ /**
43
+ * The current class map.
44
+ * @returns The UIClassMap.
45
+ */
46
+ cm(): UIClassMap;
47
+ /**
48
+ * Computes the outer wrapper's class list (`cm.stack(0)` + `className`).
49
+ * @returns The class string.
50
+ */
51
+ classes(): string;
52
+ /**
53
+ * React's branch: with no events, the empty state renders bare (its
54
+ * template when it is a node).
55
+ * @returns The empty-state template, or null.
56
+ */
57
+ emptyTemplate(): TemplateRef<unknown> | null;
58
+ /**
59
+ * React's branch: with no events, a text empty state renders bare.
60
+ * @returns The empty-state text, or null when the wrapper renders instead.
61
+ */
62
+ emptyText(): string | null;
63
+ /**
64
+ * The date-separator template, when the caller supplied one.
65
+ * @returns The template, or null.
66
+ */
67
+ separatorTemplate(): TemplateRef<unknown> | null;
68
+ /**
69
+ * The separator template's context: React's `renderDateSeparator(event, prev)`
70
+ * arguments as `$implicit` / `a0` (the event) and `a1` (its predecessor).
71
+ * @param event - The event the separator precedes.
72
+ * @param index - The event's index in the list.
73
+ * @returns The template context.
74
+ */
75
+ separatorContext(event: TimelineEventData, index: number): Record<string, unknown>;
76
+ /**
77
+ * Reconciles the projected empty state and the wrapper against React's
78
+ * branch once the view queries resolve.
79
+ */
80
+ ngAfterViewInit(): void;
81
+ /**
82
+ * Re-reconciles on later passes, so a props step that empties or refills the
83
+ * list swaps the branch the way React does.
84
+ */
85
+ ngDoCheck(): void;
86
+ /**
87
+ * Re-reconciles after each view update: a node-valued empty state that arrives
88
+ * through an input renders into its outlet only during the update, so the
89
+ * branch decision must be read afterwards.
90
+ */
91
+ ngAfterViewChecked(): void;
92
+ /**
93
+ * Applies React's condition: with no events and an empty state, the empty
94
+ * state renders bare and the wrapper disappears; otherwise the wrapper
95
+ * renders and the empty state is dropped.
96
+ */
97
+ private reconcile;
98
+ static ɵfac: i0.ɵɵFactoryDeclaration<Timeline, never>;
99
+ static ɵcmp: i0.ɵɵComponentDeclaration<Timeline, "mol-timeline", never, { "events": { "alias": "events"; "required": false; }; "renderDateSeparator": { "alias": "renderDateSeparator"; "required": false; }; "emptyState": { "alias": "emptyState"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, ["[slot=emptyState]"], true, never>;
100
+ }
101
+ //# sourceMappingURL=timeline.component.d.ts.map
@@ -0,0 +1 @@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,IAAI,IAAI;IAIjB;;;;OAIG;IACH,kBAAkB,IAAI,IAAI;IAI1B;;;;OAIG;IACH,OAAO,CAAC,SAAS;yCAxGN,QAAQ;2CAAR,QAAQ;CA+GpB"}
@@ -0,0 +1,227 @@
1
+ /**
2
+ * Timeline component (React parity).
3
+ *
4
+ * @module
5
+ */
6
+ import { NgTemplateOutlet } from '@angular/common';
7
+ import { Component, ElementRef, inject, Renderer2, TemplateRef, ViewChild, } from '@angular/core';
8
+ import { getClassMap } from '@molecule/app-ui';
9
+ import { hasNodes, SlotGuard } from './slot-dom.js';
10
+ import { TimelineEvent } from './timeline-event.component.js';
11
+ import * as i0 from "@angular/core";
12
+ const _c0 = ["empty"];
13
+ const _c1 = ["list"];
14
+ const _c2 = [[["", "slot", "emptystate"]]];
15
+ const _c3 = ["[slot=emptyState]"];
16
+ const _forTrack0 = ($index, $item) => $item.id;
17
+ function Timeline_Conditional_2_Template(rf, ctx) { if (rf & 1) {
18
+ i0.ɵɵtext(0);
19
+ } if (rf & 2) {
20
+ i0.ɵɵtextInterpolate(ctx);
21
+ } }
22
+ function Timeline_Conditional_3_Template(rf, ctx) { if (rf & 1) {
23
+ i0.ɵɵelementContainer(0, 3);
24
+ } if (rf & 2) {
25
+ i0.ɵɵproperty("ngTemplateOutlet", ctx);
26
+ } }
27
+ function Timeline_For_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
28
+ i0.ɵɵelementContainer(0, 4);
29
+ } if (rf & 2) {
30
+ const ctx_r0 = i0.ɵɵnextContext();
31
+ const event_r2 = ctx_r0.$implicit;
32
+ const ɵ$index_11_r3 = ctx_r0.$index;
33
+ const ctx_r3 = i0.ɵɵnextContext();
34
+ i0.ɵɵproperty("ngTemplateOutlet", ctx)("ngTemplateOutletContext", ctx_r3.separatorContext(event_r2, ɵ$index_11_r3));
35
+ } }
36
+ function Timeline_For_8_Template(rf, ctx) { if (rf & 1) {
37
+ i0.ɵɵelementStart(0, "div");
38
+ i0.ɵɵconditionalCreate(1, Timeline_For_8_Conditional_1_Template, 1, 2, "ng-container", 4);
39
+ i0.ɵɵelement(2, "div", 5);
40
+ i0.ɵɵelementEnd();
41
+ } if (rf & 2) {
42
+ let tmp_13_0;
43
+ const event_r2 = ctx.$implicit;
44
+ const ɵ$index_11_r3 = ctx.$index;
45
+ const ctx_r3 = i0.ɵɵnextContext();
46
+ i0.ɵɵadvance();
47
+ i0.ɵɵconditional((tmp_13_0 = ctx_r3.separatorTemplate()) ? 1 : -1, tmp_13_0);
48
+ i0.ɵɵadvance();
49
+ i0.ɵɵproperty("event", event_r2)("isLast", ɵ$index_11_r3 === ctx_r3.events.length - 1);
50
+ } }
51
+ /**
52
+ * Timeline component.
53
+ *
54
+ * Vertical chronological list of events, each rendered with a marker +
55
+ * connector on the left (`<div mol-timeline-event>`). Optional date separators
56
+ * come from `renderDateSeparator`, a template reference whose context carries
57
+ * the event as `$implicit` / `a0` and its predecessor as `a1`.
58
+ *
59
+ * React's root is the wrapper `<div>` — or, with no events and an empty state,
60
+ * that empty state alone (a fragment). A host element always exists in Angular,
61
+ * so this component's host is transparent (`mol-timeline`, `display: contents`,
62
+ * unwrapped by the conformance normalizer) and the template renders whichever
63
+ * root React would. The empty state is projected content
64
+ * (`[slot=emptyState]`) or a template reference passed as an input, reconciled
65
+ * against React's branch by {@link Timeline.ngAfterViewInit} /
66
+ * {@link Timeline.ngAfterViewChecked} / {@link Timeline.ngDoCheck}. Rows are
67
+ * tracked by the event's `id` value (`@for (…; track event.id)`), like React's
68
+ * per-item keys.
69
+ *
70
+ * This is the Angular counterpart of `@molecule/app-timeline-react`'s
71
+ * `Timeline`: the same props (React names), the same ClassMap tokens, and the
72
+ * same DOM for the same input.
73
+ */
74
+ export class Timeline {
75
+ /** Events in display order. */
76
+ events = [];
77
+ /** Optional renderer for date separators: a template reference with the event in its context. */
78
+ renderDateSeparator;
79
+ /** Rendered when there are no events: a template reference, plain text, or `[slot=emptyState]`. */
80
+ emptyState;
81
+ /** Extra classes on the outer wrapper. */
82
+ className;
83
+ /** The projected empty-state capture point (unwrapped, so React's bare slot). */
84
+ empty;
85
+ /** The wrapper `<div>` (detached when the empty state renders instead). */
86
+ list;
87
+ guard = new SlotGuard(inject(ElementRef), inject(Renderer2));
88
+ /**
89
+ * The current class map.
90
+ * @returns The UIClassMap.
91
+ */
92
+ cm() {
93
+ return getClassMap();
94
+ }
95
+ /**
96
+ * Computes the outer wrapper's class list (`cm.stack(0)` + `className`).
97
+ * @returns The class string.
98
+ */
99
+ classes() {
100
+ return this.cm().cn(this.cm().stack(0), this.className);
101
+ }
102
+ /**
103
+ * React's branch: with no events, the empty state renders bare (its
104
+ * template when it is a node).
105
+ * @returns The empty-state template, or null.
106
+ */
107
+ emptyTemplate() {
108
+ if (this.events.length !== 0 || !this.emptyState)
109
+ return null;
110
+ return this.emptyState instanceof TemplateRef ? this.emptyState : null;
111
+ }
112
+ /**
113
+ * React's branch: with no events, a text empty state renders bare.
114
+ * @returns The empty-state text, or null when the wrapper renders instead.
115
+ */
116
+ emptyText() {
117
+ if (this.events.length !== 0 || !this.emptyState)
118
+ return null;
119
+ if (this.emptyState instanceof TemplateRef)
120
+ return null;
121
+ return String(this.emptyState);
122
+ }
123
+ /**
124
+ * The date-separator template, when the caller supplied one.
125
+ * @returns The template, or null.
126
+ */
127
+ separatorTemplate() {
128
+ return this.renderDateSeparator instanceof TemplateRef ? this.renderDateSeparator : null;
129
+ }
130
+ /**
131
+ * The separator template's context: React's `renderDateSeparator(event, prev)`
132
+ * arguments as `$implicit` / `a0` (the event) and `a1` (its predecessor).
133
+ * @param event - The event the separator precedes.
134
+ * @param index - The event's index in the list.
135
+ * @returns The template context.
136
+ */
137
+ separatorContext(event, index) {
138
+ const prev = index > 0 ? this.events[index - 1] : undefined;
139
+ return { $implicit: event, a0: event, a1: prev, a2: undefined };
140
+ }
141
+ /**
142
+ * Reconciles the projected empty state and the wrapper against React's
143
+ * branch once the view queries resolve.
144
+ */
145
+ ngAfterViewInit() {
146
+ this.reconcile();
147
+ }
148
+ /**
149
+ * Re-reconciles on later passes, so a props step that empties or refills the
150
+ * list swaps the branch the way React does.
151
+ */
152
+ ngDoCheck() {
153
+ this.reconcile();
154
+ }
155
+ /**
156
+ * Re-reconciles after each view update: a node-valued empty state that arrives
157
+ * through an input renders into its outlet only during the update, so the
158
+ * branch decision must be read afterwards.
159
+ */
160
+ ngAfterViewChecked() {
161
+ this.reconcile();
162
+ }
163
+ /**
164
+ * Applies React's condition: with no events and an empty state, the empty
165
+ * state renders bare and the wrapper disappears; otherwise the wrapper
166
+ * renders and the empty state is dropped.
167
+ */
168
+ reconcile() {
169
+ const empty = this.empty?.nativeElement;
170
+ const list = this.list?.nativeElement;
171
+ const hasEmpty = (this.events?.length ?? 0) === 0 && hasNodes(empty);
172
+ this.guard.toggle(empty, hasEmpty);
173
+ this.guard.toggle(list, !hasEmpty);
174
+ }
175
+ static ɵfac = function Timeline_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Timeline)(); };
176
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Timeline, selectors: [["mol-timeline"]], viewQuery: function Timeline_Query(rf, ctx) { if (rf & 1) {
177
+ i0.ɵɵviewQuery(_c0, 5)(_c1, 5);
178
+ } if (rf & 2) {
179
+ let _t;
180
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.empty = _t.first);
181
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.list = _t.first);
182
+ } }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { events: "events", renderDateSeparator: "renderDateSeparator", emptyState: "emptyState", className: "className" }, ngContentSelectors: _c3, decls: 9, vars: 4, consts: [["empty", ""], ["list", ""], ["data-parity-unwrap", "", 2, "display", "contents"], [3, "ngTemplateOutlet"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["mol-timeline-event", "", 3, "event", "isLast"]], template: function Timeline_Template(rf, ctx) { if (rf & 1) {
183
+ i0.ɵɵprojectionDef(_c2);
184
+ i0.ɵɵelementStart(0, "span", 2, 0);
185
+ i0.ɵɵconditionalCreate(2, Timeline_Conditional_2_Template, 1, 1);
186
+ i0.ɵɵconditionalCreate(3, Timeline_Conditional_3_Template, 1, 1, "ng-container", 3);
187
+ i0.ɵɵprojection(4);
188
+ i0.ɵɵelementEnd();
189
+ i0.ɵɵelementStart(5, "div", null, 1);
190
+ i0.ɵɵrepeaterCreate(7, Timeline_For_8_Template, 3, 3, "div", null, _forTrack0);
191
+ i0.ɵɵelementEnd();
192
+ } if (rf & 2) {
193
+ let tmp_2_0;
194
+ let tmp_3_0;
195
+ i0.ɵɵadvance(2);
196
+ i0.ɵɵconditional((tmp_2_0 = ctx.emptyText()) ? 2 : -1, tmp_2_0);
197
+ i0.ɵɵadvance();
198
+ i0.ɵɵconditional((tmp_3_0 = ctx.emptyTemplate()) ? 3 : -1, tmp_3_0);
199
+ i0.ɵɵadvance(2);
200
+ i0.ɵɵclassMap(ctx.classes());
201
+ i0.ɵɵadvance(2);
202
+ i0.ɵɵrepeater(ctx.events);
203
+ } }, dependencies: [NgTemplateOutlet, TimelineEvent], encapsulation: 2 });
204
+ }
205
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Timeline, [{
206
+ type: Component,
207
+ args: [{
208
+ selector: 'mol-timeline',
209
+ standalone: true,
210
+ imports: [NgTemplateOutlet, TimelineEvent],
211
+ inputs: ['events', 'renderDateSeparator', 'emptyState', 'className'],
212
+ host: {
213
+ 'data-parity-unwrap': '',
214
+ style: 'display: contents',
215
+ },
216
+ // prettier-ignore
217
+ template: `<span #empty data-parity-unwrap style="display: contents">@if (emptyText(); as text) {{{ text }}}@if (emptyTemplate(); as empty) {<ng-container [ngTemplateOutlet]="empty"></ng-container>}<ng-content select="[slot=emptyState]"></ng-content></span><div #list [class]="classes()">@for (event of events; track event.id; let i = $index) {<div>@if (separatorTemplate(); as separator) {<ng-container [ngTemplateOutlet]="separator" [ngTemplateOutletContext]="separatorContext(event, i)"></ng-container>}<div mol-timeline-event [event]="event" [isLast]="i === events.length - 1"></div></div>}</div>`,
218
+ }]
219
+ }], null, { empty: [{
220
+ type: ViewChild,
221
+ args: ['empty']
222
+ }], list: [{
223
+ type: ViewChild,
224
+ args: ['list']
225
+ }] }); })();
226
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Timeline, { className: "Timeline", filePath: "timeline.component.ts", lineNumber: 62 }); })();
227
+ //# sourceMappingURL=timeline.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeline.component.js","sourceRoot":"","sources":["../src/timeline.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAGL,SAAS,EAET,UAAU,EACV,MAAM,EACN,SAAS,EACT,WAAW,EACX,SAAS,GACV,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;;;;;;;;IAoCsC,YAAU;;IAAV,yBAAU;;;IAAkC,2BAAwD;;IAA1C,sCAA0B;;;IAAiN,2BAAmH;;;;;;IAAtE,AAA/B,sCAA8B,6EAAuD;;;IAAjJ,2BAAK;IAAA,yFAAyC;IAAoH,yBAAiF;IAAA,iBAAM;;;;;;IAApP,cAA6J;IAA7J,4EAA6J;IAAwB,cAAe;IAAC,AAAhB,gCAAe,sDAAmC;;AAjCtkB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAaH,MAAM,OAAO,QAAQ;IACnB,+BAA+B;IAC/B,MAAM,GAAwB,EAAE,CAAA;IAChC,iGAAiG;IACjG,mBAAmB,CAAuB;IAC1C,mGAAmG;IACnG,UAAU,CAAU;IACpB,0CAA0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B,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,gBAAgB,EAAE,aAAa,CAAC;gBAC1C,MAAM,EAAE,CAAC,QAAQ,EAAE,qBAAqB,EAAE,YAAY,EAAE,WAAW,CAAC;gBACpE,IAAI,EAAE;oBACJ,oBAAoB,EAAE,EAAE;oBACxB,KAAK,EAAE,mBAAmB;iBAC3B;gBACD,kBAAkB;gBAClB,QAAQ,EAAE,+kBAA+kB;aAC1lB;;kBAYE,SAAS;mBAAC,OAAO;;kBAGjB,SAAS;mBAAC,MAAM;;kFAdN,QAAQ"}
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Types of `@molecule/app-timeline-angular` — the Angular counterpart of
3
+ * `@molecule/app-timeline-react`, same props and DOM.
4
+ *
5
+ * @module
6
+ */
7
+ import type { TemplateRef } from '@angular/core';
8
+ /**
9
+ * One entry of a `<Timeline>`. Node fields are `ng-template` references (a
10
+ * projected node) or plain text, since an input cannot carry a DOM node.
11
+ */
12
+ export interface TimelineEventData {
13
+ /** Stable identifier for this event (the row is tracked by it, like React's key). */
14
+ id: string;
15
+ /** Marker icon / dot — defaults to a small dot. */
16
+ marker?: string | number | TemplateRef<unknown>;
17
+ /** Display timestamp (ISO, relative, etc.). */
18
+ timestamp: string | number | TemplateRef<unknown>;
19
+ /** Headline of the event. */
20
+ title: string | number | TemplateRef<unknown>;
21
+ /** Optional body content. */
22
+ body?: string | number | TemplateRef<unknown>;
23
+ /**
24
+ * Optional accent color hint. Currently INERT — no component consumes it,
25
+ * so setting it changes nothing; pass a custom `marker` node to color a row.
26
+ */
27
+ accent?: 'primary' | 'success' | 'warning' | 'error' | 'info' | 'neutral';
28
+ }
29
+ /**
30
+ * Props accepted by {@link Timeline} — the same props
31
+ * `@molecule/app-timeline-react` accepts. `emptyState` is a template reference
32
+ * passed as an input (or projected content in a host template); the callback
33
+ * prop `renderDateSeparator` is a template reference whose context carries the
34
+ * event as `$implicit` / `a0` and its predecessor as `a1`.
35
+ */
36
+ export interface TimelineProps {
37
+ /** Events in display order. */
38
+ events: TimelineEventData[];
39
+ /** Optional renderer for date separators between consecutive events. */
40
+ renderDateSeparator?: TemplateRef<unknown>;
41
+ /** Rendered when there are no events. */
42
+ emptyState?: string | number | TemplateRef<unknown>;
43
+ /** Extra classes on the outer wrapper. */
44
+ className?: string;
45
+ }
46
+ /**
47
+ * Props accepted by {@link TimelineEvent} — the same props
48
+ * `@molecule/app-timeline-react` accepts.
49
+ */
50
+ export interface TimelineEventProps {
51
+ /** The event to render. */
52
+ event: TimelineEventData;
53
+ /** Whether this is the last event in the list (suppresses the connector). */
54
+ isLast?: boolean;
55
+ /** Extra classes. */
56
+ className?: string;
57
+ }
58
+ /**
59
+ * Props accepted by {@link TimelineRail} — the same props
60
+ * `@molecule/app-timeline-react` accepts.
61
+ */
62
+ export interface TimelineRailProps {
63
+ /** Marker for this row — typically a dot or icon. */
64
+ marker?: string | number | TemplateRef<unknown>;
65
+ /** Whether to render the vertical connector below the marker. Defaults to `true`. */
66
+ connector?: boolean;
67
+ /** Extra classes on the outer wrapper. */
68
+ className?: string;
69
+ }
70
+ /**
71
+ * Props accepted by {@link TimelineDate} — the same props
72
+ * `@molecule/app-timeline-react` accepts. `children` is projected content in
73
+ * Angular (an input cannot carry a node), so it is typed `unknown`: pass it in
74
+ * the host template, not as a value.
75
+ */
76
+ export interface TimelineDateProps {
77
+ /** Date label ("Today", "Yesterday", "March 12, 2025"), as projected content. */
78
+ children?: unknown;
79
+ /** Extra classes. */
80
+ className?: string;
81
+ }
82
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEhD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,qFAAqF;IACrF,EAAE,EAAE,MAAM,CAAA;IACV,mDAAmD;IACnD,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AACH,MAAM,WAAW,iBAAiB;IAChC,iFAAiF;IACjF,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
package/dist/types.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Types of `@molecule/app-timeline-angular` — the Angular counterpart of
3
+ * `@molecule/app-timeline-react`, same props and DOM.
4
+ *
5
+ * @module
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}