@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.
- package/LICENSE +202 -0
- package/README.md +614 -2
- package/dist/index.d.ts +65 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +65 -0
- package/dist/index.js.map +1 -0
- package/dist/slot-dom.d.ts +57 -0
- package/dist/slot-dom.d.ts.map +1 -0
- package/dist/slot-dom.js +100 -0
- package/dist/slot-dom.js.map +1 -0
- package/dist/timeline-date.component.d.ts +30 -0
- package/dist/timeline-date.component.d.ts.map +1 -0
- package/dist/timeline-date.component.js +63 -0
- package/dist/timeline-date.component.js.map +1 -0
- package/dist/timeline-event.component.d.ts +71 -0
- package/dist/timeline-event.component.d.ts.map +1 -0
- package/dist/timeline-event.component.js +180 -0
- package/dist/timeline-event.component.js.map +1 -0
- package/dist/timeline-rail.component.d.ts +63 -0
- package/dist/timeline-rail.component.d.ts.map +1 -0
- package/dist/timeline-rail.component.js +148 -0
- package/dist/timeline-rail.component.js.map +1 -0
- package/dist/timeline.component.d.ts +101 -0
- package/dist/timeline.component.d.ts.map +1 -0
- package/dist/timeline.component.js +227 -0
- package/dist/timeline.component.js.map +1 -0
- package/dist/types.d.ts +82 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -0
- package/package.json +69 -4
package/dist/index.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Angular chronological timeline primitives.
|
|
3
|
+
*
|
|
4
|
+
* Exports:
|
|
5
|
+
* - `<mol-timeline>` / `Timeline` — vertical list of events with optional date separators.
|
|
6
|
+
* - `<div mol-timeline-event>` / `TimelineEvent` — one event row with rail (marker + connector) + content.
|
|
7
|
+
* - `<div mol-timeline-rail>` / `TimelineRail` — standalone rail (marker + connector) for custom rows.
|
|
8
|
+
* - `<div mol-timeline-date>` / `TimelineDate` — date separator rendered between groups.
|
|
9
|
+
* - `TimelineEventData` type for event records.
|
|
10
|
+
*
|
|
11
|
+
* Use for activity chronologies, deal timelines, order tracking, audit logs.
|
|
12
|
+
* It is the Angular counterpart of `@molecule/app-timeline-react`: the same
|
|
13
|
+
* props (React names) and the same DOM for the same input, so switching
|
|
14
|
+
* framework is changing the package name in the imports.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* import { Component } from '@angular/core'
|
|
19
|
+
* import { Timeline, TimelineDate } from '@molecule/app-timeline-angular'
|
|
20
|
+
*
|
|
21
|
+
* @Component({
|
|
22
|
+
* selector: 'app-activity',
|
|
23
|
+
* standalone: true,
|
|
24
|
+
* imports: [Timeline, TimelineDate],
|
|
25
|
+
* template: `
|
|
26
|
+
* <mol-timeline [events]="events">
|
|
27
|
+
* <p slot="emptyState">No activity yet.</p>
|
|
28
|
+
* </mol-timeline>
|
|
29
|
+
* `,
|
|
30
|
+
* })
|
|
31
|
+
* export class Activity {
|
|
32
|
+
* events = [
|
|
33
|
+
* { id: '1', timestamp: '2 hours ago', title: 'Order placed' },
|
|
34
|
+
* { id: '2', timestamp: 'Yesterday', title: 'Payment confirmed', body: 'Visa ending 4242' },
|
|
35
|
+
* { id: '3', timestamp: 'Mar 12', title: 'Item shipped' },
|
|
36
|
+
* ]
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* This is NOT the Angular binding for `@molecule/app-timeline` (the headless
|
|
42
|
+
* provider core wired via `setProvider`) — it is standalone presentational
|
|
43
|
+
* markup with no provider. For domain-specific rows see the sibling
|
|
44
|
+
* `@molecule/app-{activity,order,status,stage,day}-timeline-angular` packages.
|
|
45
|
+
*
|
|
46
|
+
* `TimelineEventData.accent` is currently INERT — no component reads it, so
|
|
47
|
+
* setting it changes nothing; color a row by passing a custom `marker` node
|
|
48
|
+
* instead. `timestamp` is a display node — format/translate it before
|
|
49
|
+
* passing. Node-valued props are `ng-template` references; `Timeline`'s root is
|
|
50
|
+
* a fragment in its empty branch, so its host is `display: contents`, and rows
|
|
51
|
+
* are tracked by the event's `id`, like React's keys. The prop surface
|
|
52
|
+
* (documented on the exported `TimelineProps`, `TimelineEventProps`,
|
|
53
|
+
* `TimelineRailProps` and `TimelineDateProps` interfaces):
|
|
54
|
+
* Timeline(events, renderDateSeparator, emptyState, className),
|
|
55
|
+
* TimelineEvent(event, isLast, className), TimelineRail(marker, connector,
|
|
56
|
+
* className), TimelineDate(children, className).
|
|
57
|
+
*
|
|
58
|
+
* @module
|
|
59
|
+
*/
|
|
60
|
+
export * from './timeline.component.js';
|
|
61
|
+
export * from './timeline-date.component.js';
|
|
62
|
+
export * from './timeline-event.component.js';
|
|
63
|
+
export * from './timeline-rail.component.js';
|
|
64
|
+
export * from './types.js';
|
|
65
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AAEH,cAAc,yBAAyB,CAAA;AACvC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOM helpers for the projected capture points of {@link Timeline}.
|
|
3
|
+
*
|
|
4
|
+
* React renders the empty state bare and drops the wrapper, or renders the
|
|
5
|
+
* wrapper and drops the empty state. Angular projection needs an
|
|
6
|
+
* always-mounted `<ng-content>` capture point, so the wrapper lives in the
|
|
7
|
+
* template unconditionally and these helpers reconcile it against React's DOM:
|
|
8
|
+
* the capture point is marked `data-parity-unwrap` (the snapshot expands it, so
|
|
9
|
+
* it looks like React's bare slot) and is detached together with its contents
|
|
10
|
+
* when React would not render it.
|
|
11
|
+
*
|
|
12
|
+
* @module
|
|
13
|
+
*/
|
|
14
|
+
import type { ElementRef, Renderer2 } from '@angular/core';
|
|
15
|
+
/**
|
|
16
|
+
* Whether an ng-content wrapper captured any element or text node.
|
|
17
|
+
*
|
|
18
|
+
* @param el - The wrapper element.
|
|
19
|
+
* @returns True when at least one projected node exists.
|
|
20
|
+
*/
|
|
21
|
+
export declare const hasNodes: (el: Element | undefined | null) => boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Reconciles one always-mounted wrapper against what React renders.
|
|
24
|
+
*
|
|
25
|
+
* Both operations are idempotent and anchored in the wrapper's current parent
|
|
26
|
+
* (default: the component host), so a wrapper whose contents move with it can
|
|
27
|
+
* be detached and re-attached across prop changes.
|
|
28
|
+
*/
|
|
29
|
+
export declare class SlotGuard {
|
|
30
|
+
private readonly host;
|
|
31
|
+
private readonly renderer;
|
|
32
|
+
private readonly anchors;
|
|
33
|
+
/**
|
|
34
|
+
* Creates the guard.
|
|
35
|
+
*
|
|
36
|
+
* @param host - The component host element (default anchor parent).
|
|
37
|
+
* @param renderer - The DOM renderer.
|
|
38
|
+
*/
|
|
39
|
+
constructor(host: ElementRef<HTMLElement>, renderer: Renderer2);
|
|
40
|
+
/**
|
|
41
|
+
* Attaches or detaches the element (contents move with it).
|
|
42
|
+
*
|
|
43
|
+
* @param el - The wrapper element.
|
|
44
|
+
* @param shouldAttach - Whether it should be in the DOM.
|
|
45
|
+
*/
|
|
46
|
+
toggle(el: Element | undefined | null, shouldAttach: boolean): void;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the wrapper's anchor comment in `parent`, creating (or replacing a
|
|
49
|
+
* stale one) where the wrapper sits.
|
|
50
|
+
*
|
|
51
|
+
* @param parent - The anchor's parent.
|
|
52
|
+
* @param el - The wrapper the anchor stands for.
|
|
53
|
+
* @returns The connected anchor comment.
|
|
54
|
+
*/
|
|
55
|
+
private anchorIn;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=slot-dom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slot-dom.d.ts","sourceRoot":"","sources":["../src/slot-dom.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,IAAI,OAAO,GAAG,SAAS,GAAG,IAAI,KAAG,OAOzD,CAAA;AAED;;;;;;GAMG;AACH,qBAAa,SAAS;IAUlB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAV3B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA8B;IAEtD;;;;;OAKG;gBAEgB,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,EAC7B,QAAQ,EAAE,SAAS;IAGtC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,EAAE,YAAY,EAAE,OAAO,GAAG,IAAI;IAoBnE;;;;;;;OAOG;IACH,OAAO,CAAC,QAAQ;CASjB"}
|
package/dist/slot-dom.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOM helpers for the projected capture points of {@link Timeline}.
|
|
3
|
+
*
|
|
4
|
+
* React renders the empty state bare and drops the wrapper, or renders the
|
|
5
|
+
* wrapper and drops the empty state. Angular projection needs an
|
|
6
|
+
* always-mounted `<ng-content>` capture point, so the wrapper lives in the
|
|
7
|
+
* template unconditionally and these helpers reconcile it against React's DOM:
|
|
8
|
+
* the capture point is marked `data-parity-unwrap` (the snapshot expands it, so
|
|
9
|
+
* it looks like React's bare slot) and is detached together with its contents
|
|
10
|
+
* when React would not render it.
|
|
11
|
+
*
|
|
12
|
+
* @module
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Whether an ng-content wrapper captured any element or text node.
|
|
16
|
+
*
|
|
17
|
+
* @param el - The wrapper element.
|
|
18
|
+
* @returns True when at least one projected node exists.
|
|
19
|
+
*/
|
|
20
|
+
export const hasNodes = (el) => {
|
|
21
|
+
if (!el)
|
|
22
|
+
return false;
|
|
23
|
+
for (const node of Array.from(el.childNodes)) {
|
|
24
|
+
if (node.nodeType === 1)
|
|
25
|
+
return true;
|
|
26
|
+
if (node.nodeType === 3 && (node.textContent ?? '').trim())
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
return false;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Reconciles one always-mounted wrapper against what React renders.
|
|
33
|
+
*
|
|
34
|
+
* Both operations are idempotent and anchored in the wrapper's current parent
|
|
35
|
+
* (default: the component host), so a wrapper whose contents move with it can
|
|
36
|
+
* be detached and re-attached across prop changes.
|
|
37
|
+
*/
|
|
38
|
+
export class SlotGuard {
|
|
39
|
+
host;
|
|
40
|
+
renderer;
|
|
41
|
+
anchors = new Map();
|
|
42
|
+
/**
|
|
43
|
+
* Creates the guard.
|
|
44
|
+
*
|
|
45
|
+
* @param host - The component host element (default anchor parent).
|
|
46
|
+
* @param renderer - The DOM renderer.
|
|
47
|
+
*/
|
|
48
|
+
constructor(host, renderer) {
|
|
49
|
+
this.host = host;
|
|
50
|
+
this.renderer = renderer;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Attaches or detaches the element (contents move with it).
|
|
54
|
+
*
|
|
55
|
+
* @param el - The wrapper element.
|
|
56
|
+
* @param shouldAttach - Whether it should be in the DOM.
|
|
57
|
+
*/
|
|
58
|
+
toggle(el, shouldAttach) {
|
|
59
|
+
if (!el)
|
|
60
|
+
return;
|
|
61
|
+
const parent = el.parentElement ?? this.host.nativeElement;
|
|
62
|
+
if (shouldAttach && !el.isConnected) {
|
|
63
|
+
const anchor = this.anchors.get(el);
|
|
64
|
+
if (anchor?.isConnected) {
|
|
65
|
+
parent.insertBefore(el, anchor);
|
|
66
|
+
this.renderer.removeChild(parent, anchor);
|
|
67
|
+
this.anchors.delete(el);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
parent.appendChild(el);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
else if (!shouldAttach && el.isConnected) {
|
|
74
|
+
// A placeholder comment keeps the re-insertion position stable; the
|
|
75
|
+
// conformance normalizer strips comment nodes, so it never shows.
|
|
76
|
+
this.anchorIn(parent, el);
|
|
77
|
+
this.renderer.removeChild(parent, el);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Returns the wrapper's anchor comment in `parent`, creating (or replacing a
|
|
82
|
+
* stale one) where the wrapper sits.
|
|
83
|
+
*
|
|
84
|
+
* @param parent - The anchor's parent.
|
|
85
|
+
* @param el - The wrapper the anchor stands for.
|
|
86
|
+
* @returns The connected anchor comment.
|
|
87
|
+
*/
|
|
88
|
+
anchorIn(parent, el) {
|
|
89
|
+
const existing = this.anchors.get(el);
|
|
90
|
+
if (existing?.isConnected && existing.parentNode === parent)
|
|
91
|
+
return existing;
|
|
92
|
+
if (existing)
|
|
93
|
+
this.anchors.delete(el);
|
|
94
|
+
const created = this.renderer.createComment('slot');
|
|
95
|
+
parent.insertBefore(created, el.isConnected ? el : null);
|
|
96
|
+
this.anchors.set(el, created);
|
|
97
|
+
return created;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=slot-dom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slot-dom.js","sourceRoot":"","sources":["../src/slot-dom.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAA8B,EAAW,EAAE;IAClE,IAAI,CAAC,EAAE;QAAE,OAAO,KAAK,CAAA;IACrB,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,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,kEAAkE;YAClE,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;YACzB,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;QACvC,CAAC;IACH,CAAC;IAED;;;;;;;OAOG;IACK,QAAQ,CAAC,MAAY,EAAE,EAAW;QACxC,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;QACrC,IAAI,QAAQ,EAAE,WAAW,IAAI,QAAQ,CAAC,UAAU,KAAK,MAAM;YAAE,OAAO,QAAQ,CAAA;QAC5E,IAAI,QAAQ;YAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;QACrC,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;QACnD,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;QACxD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,EAAE,OAAO,CAAC,CAAA;QAC7B,OAAO,OAAO,CAAA;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { UIClassMap } from '@molecule/app-ui';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* TimelineDate component.
|
|
5
|
+
*
|
|
6
|
+
* Date separator rendered between timeline groups. The host IS the
|
|
7
|
+
* separator's outer `<div>` (`div[mol-timeline-date]`), matching React's root
|
|
8
|
+
* exactly, and the label is projected content (the default `<ng-content>`).
|
|
9
|
+
*
|
|
10
|
+
* This is the Angular counterpart of `@molecule/app-timeline-react`'s
|
|
11
|
+
* `TimelineDate`: the same props (React names), the same ClassMap tokens, and
|
|
12
|
+
* the same DOM for the same input.
|
|
13
|
+
*/
|
|
14
|
+
export declare class TimelineDate {
|
|
15
|
+
/** Extra classes. */
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The current class map.
|
|
19
|
+
* @returns The UIClassMap.
|
|
20
|
+
*/
|
|
21
|
+
cm(): UIClassMap;
|
|
22
|
+
/**
|
|
23
|
+
* Computes the separator's class list.
|
|
24
|
+
* @returns The class string.
|
|
25
|
+
*/
|
|
26
|
+
classes(): string;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineDate, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimelineDate, "div[mol-timeline-date]", never, { "className": { "alias": "className"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=timeline-date.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-date.component.d.ts","sourceRoot":"","sources":["../src/timeline-date.component.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAGlD;;;;;;;;;;GAUG;AACH,qBASa,YAAY;IACvB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,OAAO,IAAI,MAAM;yCAhBN,YAAY;2CAAZ,YAAY;CAyBxB"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TimelineDate component (React parity).
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { Component } from '@angular/core';
|
|
7
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
const _c0 = ["*"];
|
|
10
|
+
/**
|
|
11
|
+
* TimelineDate component.
|
|
12
|
+
*
|
|
13
|
+
* Date separator rendered between timeline groups. The host IS the
|
|
14
|
+
* separator's outer `<div>` (`div[mol-timeline-date]`), matching React's root
|
|
15
|
+
* exactly, and the label is projected content (the default `<ng-content>`).
|
|
16
|
+
*
|
|
17
|
+
* This is the Angular counterpart of `@molecule/app-timeline-react`'s
|
|
18
|
+
* `TimelineDate`: the same props (React names), the same ClassMap tokens, and
|
|
19
|
+
* the same DOM for the same input.
|
|
20
|
+
*/
|
|
21
|
+
export class TimelineDate {
|
|
22
|
+
/** Extra classes. */
|
|
23
|
+
className;
|
|
24
|
+
/**
|
|
25
|
+
* The current class map.
|
|
26
|
+
* @returns The UIClassMap.
|
|
27
|
+
*/
|
|
28
|
+
cm() {
|
|
29
|
+
return getClassMap();
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Computes the separator's class list.
|
|
33
|
+
* @returns The class string.
|
|
34
|
+
*/
|
|
35
|
+
classes() {
|
|
36
|
+
return this.cm().cn(this.cm().flex({ align: 'center', gap: 'sm' }), this.cm().sp('py', 2), this.cm().textSize('xs'), this.cm().fontWeight('semibold'), this.className);
|
|
37
|
+
}
|
|
38
|
+
static ɵfac = function TimelineDate_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TimelineDate)(); };
|
|
39
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimelineDate, selectors: [["div", "mol-timeline-date", ""]], hostVars: 2, hostBindings: function TimelineDate_HostBindings(rf, ctx) { if (rf & 2) {
|
|
40
|
+
i0.ɵɵclassMap(ctx.classes());
|
|
41
|
+
} }, inputs: { className: "className" }, ngContentSelectors: _c0, decls: 2, vars: 2, template: function TimelineDate_Template(rf, ctx) { if (rf & 1) {
|
|
42
|
+
i0.ɵɵprojectionDef();
|
|
43
|
+
i0.ɵɵdomElementStart(0, "span");
|
|
44
|
+
i0.ɵɵprojection(1);
|
|
45
|
+
i0.ɵɵdomElementEnd();
|
|
46
|
+
} if (rf & 2) {
|
|
47
|
+
i0.ɵɵclassMap(ctx.cm().cn(ctx.cm().flex1));
|
|
48
|
+
} }, encapsulation: 2 });
|
|
49
|
+
}
|
|
50
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimelineDate, [{
|
|
51
|
+
type: Component,
|
|
52
|
+
args: [{
|
|
53
|
+
selector: 'div[mol-timeline-date]',
|
|
54
|
+
standalone: true,
|
|
55
|
+
inputs: ['className'],
|
|
56
|
+
host: {
|
|
57
|
+
'[class]': 'classes()',
|
|
58
|
+
},
|
|
59
|
+
template: `<span [class]="cm().cn(cm().flex1)"><ng-content></ng-content></span>`,
|
|
60
|
+
}]
|
|
61
|
+
}], null, null); })();
|
|
62
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TimelineDate, { className: "TimelineDate", filePath: "timeline-date.component.ts", lineNumber: 32 }); })();
|
|
63
|
+
//# sourceMappingURL=timeline-date.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-date.component.js","sourceRoot":"","sources":["../src/timeline-date.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAGzC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;;;AAE9C;;;;;;;;;;GAUG;AAUH,MAAM,OAAO,YAAY;IACvB,qBAAqB;IACrB,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,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAC9C,IAAI,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,EACrB,IAAI,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EACxB,IAAI,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAChC,IAAI,CAAC,SAAS,CACf,CAAA;IACH,CAAC;sGAxBU,YAAY;6DAAZ,YAAY;YAAZ,cAAA,aAAS,CAAG;;;YAFZ,+BAAoC;YAAA,kBAAyB;YAAA,oBAAO;;YAA9D,0CAA6B;;;iFAEnC,YAAY;cATxB,SAAS;eAAC;gBACT,QAAQ,EAAE,wBAAwB;gBAClC,UAAU,EAAE,IAAI;gBAChB,MAAM,EAAE,CAAC,WAAW,CAAC;gBACrB,IAAI,EAAE;oBACJ,SAAS,EAAE,WAAW;iBACvB;gBACD,QAAQ,EAAE,sEAAsE;aACjF;;kFACY,YAAY"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { 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
|
+
* TimelineEvent component.
|
|
7
|
+
*
|
|
8
|
+
* One row of a `<Timeline>`: [rail (marker + connector)] [timestamp / title /
|
|
9
|
+
* body]. The host IS the row's outer `<div>` (`div[mol-timeline-event]`),
|
|
10
|
+
* matching React's root exactly. The event's node-valued fields are
|
|
11
|
+
* `ng-template` references rendered through `NgTemplateOutlet`; string / number
|
|
12
|
+
* fields render as text.
|
|
13
|
+
*
|
|
14
|
+
* This is the Angular counterpart of `@molecule/app-timeline-react`'s
|
|
15
|
+
* `TimelineEvent`: the same props (React names), the same ClassMap tokens, and
|
|
16
|
+
* the same DOM for the same input.
|
|
17
|
+
*/
|
|
18
|
+
export declare class TimelineEvent {
|
|
19
|
+
/** The event to render. */
|
|
20
|
+
event: TimelineEventData;
|
|
21
|
+
/** Whether this is the last event in the list (suppresses the connector). */
|
|
22
|
+
isLast?: boolean;
|
|
23
|
+
/** Extra classes. */
|
|
24
|
+
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The current class map.
|
|
27
|
+
* @returns The UIClassMap.
|
|
28
|
+
*/
|
|
29
|
+
cm(): UIClassMap;
|
|
30
|
+
/**
|
|
31
|
+
* Computes the row's class list.
|
|
32
|
+
* @returns The class string.
|
|
33
|
+
*/
|
|
34
|
+
classes(): string;
|
|
35
|
+
/**
|
|
36
|
+
* Computes the content column's class list.
|
|
37
|
+
* @returns The class string.
|
|
38
|
+
*/
|
|
39
|
+
contentClasses(): string;
|
|
40
|
+
/**
|
|
41
|
+
* Computes the timestamp line's class list.
|
|
42
|
+
* @returns The class string.
|
|
43
|
+
*/
|
|
44
|
+
timestampClasses(): string;
|
|
45
|
+
/**
|
|
46
|
+
* Computes the title line's class list.
|
|
47
|
+
* @returns The class string.
|
|
48
|
+
*/
|
|
49
|
+
titleClasses(): string;
|
|
50
|
+
/**
|
|
51
|
+
* Whether a field holds a node (an `ng-template` reference) rather than text.
|
|
52
|
+
* @param value - The event field.
|
|
53
|
+
* @returns True when it renders through a template outlet.
|
|
54
|
+
*/
|
|
55
|
+
isNode(value: unknown): value is TemplateRef<unknown>;
|
|
56
|
+
/**
|
|
57
|
+
* Narrows a value to an embedded template.
|
|
58
|
+
* @param value - The event field.
|
|
59
|
+
* @returns The template, or null.
|
|
60
|
+
*/
|
|
61
|
+
templateOf(value: unknown): TemplateRef<unknown> | null;
|
|
62
|
+
/**
|
|
63
|
+
* The text a field renders (React renders strings and numbers as text).
|
|
64
|
+
* @param value - The event field.
|
|
65
|
+
* @returns The text, or `''` for a node field.
|
|
66
|
+
*/
|
|
67
|
+
textOf(value: unknown): string;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineEvent, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimelineEvent, "div[mol-timeline-event]", never, { "event": { "alias": "event"; "required": false; }; "isLast": { "alias": "isLast"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, never, true, never>;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=timeline-event.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-event.component.d.ts","sourceRoot":"","sources":["../src/timeline-event.component.ts"],"names":[],"mappings":"AAOA,OAAO,EAAa,WAAW,EAAE,MAAM,eAAe,CAAA;AAEtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAIlD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;;AAEnD;;;;;;;;;;;;GAYG;AACH,qBAWa,aAAa;IACxB,2BAA2B;IAC3B,KAAK,EAAG,iBAAiB,CAAA;IACzB,6EAA6E;IAC7E,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,cAAc,IAAI,MAAM;IAIxB;;;OAGG;IACH,gBAAgB,IAAI,MAAM;IAI1B;;;OAGG;IACH,YAAY,IAAI,MAAM;IAItB;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,CAAC,OAAO,CAAC;IAIrD;;;;OAIG;IACH,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG,IAAI;IAIvD;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM;yCAvEnB,aAAa;2CAAb,aAAa;CA0EzB"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TimelineEvent 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 { TimelineRail } from './timeline-rail.component.js';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
function TimelineEvent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
12
|
+
i0.ɵɵelementContainer(0, 1);
|
|
13
|
+
} if (rf & 2) {
|
|
14
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
15
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.templateOf(ctx_r0.event.timestamp));
|
|
16
|
+
} }
|
|
17
|
+
function TimelineEvent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
+
i0.ɵɵtext(0);
|
|
19
|
+
} if (rf & 2) {
|
|
20
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
21
|
+
i0.ɵɵtextInterpolate(ctx_r0.textOf(ctx_r0.event.timestamp));
|
|
22
|
+
} }
|
|
23
|
+
function TimelineEvent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
+
i0.ɵɵelementContainer(0, 1);
|
|
25
|
+
} if (rf & 2) {
|
|
26
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
27
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.templateOf(ctx_r0.event.title));
|
|
28
|
+
} }
|
|
29
|
+
function TimelineEvent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
+
i0.ɵɵtext(0);
|
|
31
|
+
} if (rf & 2) {
|
|
32
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
33
|
+
i0.ɵɵtextInterpolate(ctx_r0.textOf(ctx_r0.event.title));
|
|
34
|
+
} }
|
|
35
|
+
function TimelineEvent_Conditional_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
36
|
+
i0.ɵɵelementContainer(0, 1);
|
|
37
|
+
} if (rf & 2) {
|
|
38
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
39
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.templateOf(ctx_r0.event.body));
|
|
40
|
+
} }
|
|
41
|
+
function TimelineEvent_Conditional_8_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
42
|
+
i0.ɵɵtext(0);
|
|
43
|
+
} if (rf & 2) {
|
|
44
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
45
|
+
i0.ɵɵtextInterpolate(ctx_r0.textOf(ctx_r0.event.body));
|
|
46
|
+
} }
|
|
47
|
+
function TimelineEvent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
48
|
+
i0.ɵɵelementStart(0, "div");
|
|
49
|
+
i0.ɵɵconditionalCreate(1, TimelineEvent_Conditional_8_Conditional_1_Template, 1, 1, "ng-container", 1)(2, TimelineEvent_Conditional_8_Conditional_2_Template, 1, 1);
|
|
50
|
+
i0.ɵɵelementEnd();
|
|
51
|
+
} if (rf & 2) {
|
|
52
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
53
|
+
i0.ɵɵclassMap(ctx_r0.cm().textSize("sm"));
|
|
54
|
+
i0.ɵɵadvance();
|
|
55
|
+
i0.ɵɵconditional(ctx_r0.isNode(ctx_r0.event.body) ? 1 : 2);
|
|
56
|
+
} }
|
|
57
|
+
/**
|
|
58
|
+
* TimelineEvent component.
|
|
59
|
+
*
|
|
60
|
+
* One row of a `<Timeline>`: [rail (marker + connector)] [timestamp / title /
|
|
61
|
+
* body]. The host IS the row's outer `<div>` (`div[mol-timeline-event]`),
|
|
62
|
+
* matching React's root exactly. The event's node-valued fields are
|
|
63
|
+
* `ng-template` references rendered through `NgTemplateOutlet`; string / number
|
|
64
|
+
* fields render as text.
|
|
65
|
+
*
|
|
66
|
+
* This is the Angular counterpart of `@molecule/app-timeline-react`'s
|
|
67
|
+
* `TimelineEvent`: the same props (React names), the same ClassMap tokens, and
|
|
68
|
+
* the same DOM for the same input.
|
|
69
|
+
*/
|
|
70
|
+
export class TimelineEvent {
|
|
71
|
+
/** The event to render. */
|
|
72
|
+
event;
|
|
73
|
+
/** Whether this is the last event in the list (suppresses the connector). */
|
|
74
|
+
isLast;
|
|
75
|
+
/** Extra classes. */
|
|
76
|
+
className;
|
|
77
|
+
/**
|
|
78
|
+
* The current class map.
|
|
79
|
+
* @returns The UIClassMap.
|
|
80
|
+
*/
|
|
81
|
+
cm() {
|
|
82
|
+
return getClassMap();
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Computes the row's class list.
|
|
86
|
+
* @returns The class string.
|
|
87
|
+
*/
|
|
88
|
+
classes() {
|
|
89
|
+
return this.cm().cn(this.cm().flex({ align: 'stretch', gap: 'sm' }), this.className);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Computes the content column's class list.
|
|
93
|
+
* @returns The class string.
|
|
94
|
+
*/
|
|
95
|
+
contentClasses() {
|
|
96
|
+
return this.cm().cn(this.cm().flex1, this.cm().stack(1), this.cm().sp('pb', 4));
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Computes the timestamp line's class list.
|
|
100
|
+
* @returns The class string.
|
|
101
|
+
*/
|
|
102
|
+
timestampClasses() {
|
|
103
|
+
return this.cm().cn(this.cm().textSize('xs'), this.cm().fontWeight('medium'));
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Computes the title line's class list.
|
|
107
|
+
* @returns The class string.
|
|
108
|
+
*/
|
|
109
|
+
titleClasses() {
|
|
110
|
+
return this.cm().cn(this.cm().textSize('sm'), this.cm().fontWeight('semibold'));
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Whether a field holds a node (an `ng-template` reference) rather than text.
|
|
114
|
+
* @param value - The event field.
|
|
115
|
+
* @returns True when it renders through a template outlet.
|
|
116
|
+
*/
|
|
117
|
+
isNode(value) {
|
|
118
|
+
return value instanceof TemplateRef;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Narrows a value to an embedded template.
|
|
122
|
+
* @param value - The event field.
|
|
123
|
+
* @returns The template, or null.
|
|
124
|
+
*/
|
|
125
|
+
templateOf(value) {
|
|
126
|
+
return value instanceof TemplateRef ? value : null;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* The text a field renders (React renders strings and numbers as text).
|
|
130
|
+
* @param value - The event field.
|
|
131
|
+
* @returns The text, or `''` for a node field.
|
|
132
|
+
*/
|
|
133
|
+
textOf(value) {
|
|
134
|
+
return typeof value === 'string' || typeof value === 'number' ? String(value) : '';
|
|
135
|
+
}
|
|
136
|
+
static ɵfac = function TimelineEvent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TimelineEvent)(); };
|
|
137
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimelineEvent, selectors: [["div", "mol-timeline-event", ""]], hostVars: 2, hostBindings: function TimelineEvent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
138
|
+
i0.ɵɵclassMap(ctx.classes());
|
|
139
|
+
} }, inputs: { event: "event", isLast: "isLast", className: "className" }, decls: 9, vars: 11, consts: [["mol-timeline-rail", "", 3, "marker", "connector"], [3, "ngTemplateOutlet"], [3, "class"]], template: function TimelineEvent_Template(rf, ctx) { if (rf & 1) {
|
|
140
|
+
i0.ɵɵelement(0, "div", 0);
|
|
141
|
+
i0.ɵɵelementStart(1, "div")(2, "div");
|
|
142
|
+
i0.ɵɵconditionalCreate(3, TimelineEvent_Conditional_3_Template, 1, 1, "ng-container", 1)(4, TimelineEvent_Conditional_4_Template, 1, 1);
|
|
143
|
+
i0.ɵɵelementEnd();
|
|
144
|
+
i0.ɵɵelementStart(5, "div");
|
|
145
|
+
i0.ɵɵconditionalCreate(6, TimelineEvent_Conditional_6_Template, 1, 1, "ng-container", 1)(7, TimelineEvent_Conditional_7_Template, 1, 1);
|
|
146
|
+
i0.ɵɵelementEnd();
|
|
147
|
+
i0.ɵɵconditionalCreate(8, TimelineEvent_Conditional_8_Template, 3, 3, "div", 2);
|
|
148
|
+
i0.ɵɵelementEnd();
|
|
149
|
+
} if (rf & 2) {
|
|
150
|
+
i0.ɵɵproperty("marker", ctx.event.marker)("connector", !ctx.isLast);
|
|
151
|
+
i0.ɵɵadvance();
|
|
152
|
+
i0.ɵɵclassMap(ctx.contentClasses());
|
|
153
|
+
i0.ɵɵadvance();
|
|
154
|
+
i0.ɵɵclassMap(ctx.timestampClasses());
|
|
155
|
+
i0.ɵɵadvance();
|
|
156
|
+
i0.ɵɵconditional(ctx.isNode(ctx.event.timestamp) ? 3 : 4);
|
|
157
|
+
i0.ɵɵadvance(2);
|
|
158
|
+
i0.ɵɵclassMap(ctx.titleClasses());
|
|
159
|
+
i0.ɵɵadvance();
|
|
160
|
+
i0.ɵɵconditional(ctx.isNode(ctx.event.title) ? 6 : 7);
|
|
161
|
+
i0.ɵɵadvance(2);
|
|
162
|
+
i0.ɵɵconditional(ctx.event.body ? 8 : -1);
|
|
163
|
+
} }, dependencies: [NgTemplateOutlet, TimelineRail], encapsulation: 2 });
|
|
164
|
+
}
|
|
165
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimelineEvent, [{
|
|
166
|
+
type: Component,
|
|
167
|
+
args: [{
|
|
168
|
+
selector: 'div[mol-timeline-event]',
|
|
169
|
+
standalone: true,
|
|
170
|
+
imports: [NgTemplateOutlet, TimelineRail],
|
|
171
|
+
inputs: ['event', 'isLast', 'className'],
|
|
172
|
+
host: {
|
|
173
|
+
'[class]': 'classes()',
|
|
174
|
+
},
|
|
175
|
+
// prettier-ignore
|
|
176
|
+
template: `<div mol-timeline-rail [marker]="event.marker" [connector]="!isLast"></div><div [class]="contentClasses()"><div [class]="timestampClasses()">@if (isNode(event.timestamp)) {<ng-container [ngTemplateOutlet]="templateOf(event.timestamp)" />}@else {{{ textOf(event.timestamp) }}}</div><div [class]="titleClasses()">@if (isNode(event.title)) {<ng-container [ngTemplateOutlet]="templateOf(event.title)" />}@else {{{ textOf(event.title) }}}</div>@if (event.body) {<div [class]="cm().textSize('sm')">@if (isNode(event.body)) {<ng-container [ngTemplateOutlet]="templateOf(event.body)" />}@else {{{ textOf(event.body) }}}</div>}</div>`,
|
|
177
|
+
}]
|
|
178
|
+
}], null, null); })();
|
|
179
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TimelineEvent, { className: "TimelineEvent", filePath: "timeline-event.component.ts", lineNumber: 40 }); })();
|
|
180
|
+
//# sourceMappingURL=timeline-event.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-event.component.js","sourceRoot":"","sources":["../src/timeline-event.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;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;;;IAyB8H,2BAAiE;;;IAAnD,4EAAgD;;;IAAW,YAA6B;;;IAA7B,2DAA6B;;;IAAgE,2BAA6D;;;IAA/C,wEAA4C;;;IAAW,YAAyB;;;IAAzB,uDAAyB;;;IAAsF,2BAA4D;;;IAA9C,uEAA2C;;;IAAW,YAAwB;;;IAAxB,sDAAwB;;;IAAzJ,2BAAmC;IAAuF,AAAvF,sGAA0B,6DAAoE;IAAyB,iBAAM;;;IAA3J,yCAA6B;IAAC,cAAuH;IAAvH,0DAAuH;;AAtBhnB;;;;;;;;;;;;GAYG;AAYH,MAAM,OAAO,aAAa;IACxB,2BAA2B;IAC3B,KAAK,CAAoB;IACzB,6EAA6E;IAC7E,MAAM,CAAU;IAChB,qBAAqB;IACrB,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,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,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