@molecule/app-comparison-row-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,154 @@
1
+ import { type AfterViewInit, type TemplateRef } from '@angular/core';
2
+ import type { UIClassMap } from '@molecule/app-ui';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * ComparisonRow component.
6
+ *
7
+ * Period-over-period stat comparison row — current value, optional previous
8
+ * value, and a coloured delta% chip. The host IS the root `<div>`
9
+ * (`div[mol-comparison-row]`), matching React's root exactly. The delta color
10
+ * is applied inline through style bindings (the CSSOM, as react-dom does);
11
+ * the layout and type classes come from the ClassMap bond. Same props, same
12
+ * DOM as `@molecule/app-comparison-row-react`'s `ComparisonRow`. Node-valued
13
+ * `label`, `current`, `previous` and `periodLabel` content is projected
14
+ * (`[slot=<name>]`); a string or number input renders as text. A custom
15
+ * `formatDelta` is a template receiving the delta as `$implicit` / `a0`;
16
+ * without one the default arrow + percentage renders.
17
+ */
18
+ export declare class ComparisonRow implements AfterViewInit {
19
+ /** Label for the metric (e.g. "Revenue"): text, or `[slot=label]` content. */
20
+ label?: unknown;
21
+ /** Current period value (formatted): text, or `[slot=current]` content. */
22
+ current?: unknown;
23
+ /** Previous period value (formatted): text, or `[slot=previous]` content. */
24
+ previous?: unknown;
25
+ /** Numeric delta% — drives direction + color when present. */
26
+ deltaPct?: number;
27
+ /** Custom delta formatter template (receives the delta as `$implicit` / `a0`). */
28
+ formatDelta?: TemplateRef<unknown> | null;
29
+ /** Optional sub-text ("vs. last week"): text, or `[slot=periodLabel]` content. */
30
+ periodLabel?: unknown;
31
+ /** Extra classes. */
32
+ className?: string;
33
+ /** The optional period-label span (projected content lands here; read once). */
34
+ private periodSpan?;
35
+ /** The optional previous-value span (projected content lands here; read once). */
36
+ private previousSpan?;
37
+ /**
38
+ * Whether a `[slot=periodLabel]` projection landed (true until the first
39
+ * view proves otherwise).
40
+ */
41
+ private readonly periodProjected;
42
+ /**
43
+ * Whether a `[slot=previous]` projection landed (true until the first view
44
+ * proves otherwise).
45
+ */
46
+ private readonly previousProjected;
47
+ /**
48
+ * Whether the period-label span renders: React's `periodLabel && …` on the
49
+ * text input, or projected `[slot=periodLabel]` content. A plain getter, so
50
+ * every change detection pass follows the inputs (a computed would cache on
51
+ * its signal dependency alone and miss a later text input).
52
+ * @returns True when the sub-text shows.
53
+ */
54
+ get showPeriodLabel(): boolean;
55
+ /**
56
+ * Whether the previous-value span renders: React's `previous !== undefined`
57
+ * on the text input, or projected `[slot=previous]` content.
58
+ * @returns True when the struck-through value shows.
59
+ */
60
+ get showPrevious(): boolean;
61
+ /**
62
+ * Reads the optional spans' first render: when neither a text input nor
63
+ * projected content landed, React would not render the span at all, so the
64
+ * optimistic render is withdrawn. View queries resolve only at view init,
65
+ * and a projected slot's content is in place by then.
66
+ */
67
+ ngAfterViewInit(): void;
68
+ /**
69
+ * The current class map.
70
+ * @returns The UIClassMap.
71
+ */
72
+ cm(): UIClassMap;
73
+ /**
74
+ * Computes the root class list.
75
+ * @returns The class string.
76
+ */
77
+ classes(): string;
78
+ /**
79
+ * The left stack's class.
80
+ * @returns The class string.
81
+ */
82
+ stackClass(): string;
83
+ /**
84
+ * The label span's class.
85
+ * @returns The class string.
86
+ */
87
+ labelClass(): string;
88
+ /**
89
+ * The values row's class.
90
+ * @returns The class string.
91
+ */
92
+ valuesClass(): string;
93
+ /**
94
+ * The current-value span's class.
95
+ * @returns The class string.
96
+ */
97
+ currentClass(): string;
98
+ /**
99
+ * The delta chip's class.
100
+ * @returns The class string.
101
+ */
102
+ deltaClass(): string;
103
+ /**
104
+ * Whether a text label input is present (a projected label is not).
105
+ * @returns True when the label input renders as text.
106
+ */
107
+ get hasLabel(): boolean;
108
+ /**
109
+ * Whether a text current-value input is present.
110
+ * @returns True when the current input renders as text.
111
+ */
112
+ get hasCurrent(): boolean;
113
+ /**
114
+ * Whether the previous value renders as text: React's
115
+ * `previous !== undefined`.
116
+ * @returns True when the struck-through value shows.
117
+ */
118
+ get hasPrevious(): boolean;
119
+ /**
120
+ * Whether the period label renders as text: React's `periodLabel && …`
121
+ * truthiness.
122
+ * @returns True when the sub-text shows.
123
+ */
124
+ get hasPeriodLabel(): boolean;
125
+ /**
126
+ * Whether the delta chip renders.
127
+ * @returns True when `deltaPct` is set.
128
+ */
129
+ get hasDelta(): boolean;
130
+ /**
131
+ * The delta's direction arrow.
132
+ * @returns `'▲'`, `'▼'` or `'–'`.
133
+ */
134
+ arrow(): string;
135
+ /**
136
+ * The delta's magnitude, one decimal place (React's
137
+ * `Math.abs(deltaPct).toFixed(1)`).
138
+ * @returns The formatted magnitude.
139
+ */
140
+ pct(): string;
141
+ /**
142
+ * The delta chip's inline color of the current direction.
143
+ * @returns The hex color.
144
+ */
145
+ deltaColor(): string;
146
+ /**
147
+ * The template outlet context for a custom formatter.
148
+ * @returns The delta as `$implicit` and `a0`.
149
+ */
150
+ deltaContext(): Record<string, unknown>;
151
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComparisonRow, never>;
152
+ static ɵcmp: i0.ɵɵComponentDeclaration<ComparisonRow, "div[mol-comparison-row]", never, { "label": { "alias": "label"; "required": false; }; "current": { "alias": "current"; "required": false; }; "previous": { "alias": "previous"; "required": false; }; "deltaPct": { "alias": "deltaPct"; "required": false; }; "formatDelta": { "alias": "formatDelta"; "required": false; }; "periodLabel": { "alias": "periodLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, ["[slot=label]", "[slot=periodLabel]", "[slot=current]", "[slot=previous]"], true, never>;
153
+ }
154
+ //# sourceMappingURL=comparison-row.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comparison-row.component.d.ts","sourceRoot":"","sources":["../src/comparison-row.component.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,aAAa,EAIlB,KAAK,WAAW,EAEjB,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,UAAU,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IAAI,WAAW,IAAI,OAAO,CAEzB;IAED;;;;OAIG;IACH,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED;;;OAGG;IACH,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED;;;OAGG;IACH,KAAK,IAAI,MAAM;IAIf;;;;OAIG;IACH,GAAG,IAAI,MAAM;IAIb;;;OAGG;IACH,UAAU,IAAI,MAAM;IAIpB;;;OAGG;IACH,YAAY,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;yCAvM5B,aAAa;2CAAb,aAAa;CA2MzB"}
@@ -0,0 +1,383 @@
1
+ /**
2
+ * ComparisonRow component (React parity).
3
+ *
4
+ * @module
5
+ */
6
+ import { NgTemplateOutlet } from '@angular/common';
7
+ import { Component, signal, ViewChild, } from '@angular/core';
8
+ import { getClassMap } from '@molecule/app-ui';
9
+ import * as i0 from "@angular/core";
10
+ const _c0 = ["periodSpan"];
11
+ const _c1 = ["previousSpan"];
12
+ const _c2 = [[["", "slot", "label"]], [["", "slot", "current"]], [["", "slot", "periodlabel"]], [["", "slot", "previous"]]];
13
+ const _c3 = ["[slot=label]", "[slot=current]", "[slot=periodLabel]", "[slot=previous]"];
14
+ function ComparisonRow_Conditional_2_Template(rf, ctx) { if (rf & 1) {
15
+ i0.ɵɵelementContainerStart(0);
16
+ i0.ɵɵtext(1);
17
+ i0.ɵɵelementContainerEnd();
18
+ } if (rf & 2) {
19
+ const ctx_r0 = i0.ɵɵnextContext();
20
+ i0.ɵɵadvance();
21
+ i0.ɵɵtextInterpolate(ctx_r0.label);
22
+ } }
23
+ function ComparisonRow_Conditional_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
24
+ i0.ɵɵelementContainerStart(0);
25
+ i0.ɵɵtext(1);
26
+ i0.ɵɵelementContainerEnd();
27
+ } if (rf & 2) {
28
+ const ctx_r0 = i0.ɵɵnextContext(2);
29
+ i0.ɵɵadvance();
30
+ i0.ɵɵtextInterpolate(ctx_r0.periodLabel);
31
+ } }
32
+ function ComparisonRow_Conditional_4_Template(rf, ctx) { if (rf & 1) {
33
+ i0.ɵɵelementStart(0, "span", null, 0);
34
+ i0.ɵɵconditionalCreate(2, ComparisonRow_Conditional_4_Conditional_2_Template, 2, 1, "ng-container");
35
+ i0.ɵɵprojection(3, 2);
36
+ i0.ɵɵelementEnd();
37
+ } if (rf & 2) {
38
+ const ctx_r0 = i0.ɵɵnextContext();
39
+ i0.ɵɵclassMap(ctx_r0.cm().textSize("xs"));
40
+ i0.ɵɵadvance(2);
41
+ i0.ɵɵconditional(ctx_r0.hasPeriodLabel ? 2 : -1);
42
+ } }
43
+ function ComparisonRow_Conditional_7_Template(rf, ctx) { if (rf & 1) {
44
+ i0.ɵɵelementContainerStart(0);
45
+ i0.ɵɵtext(1);
46
+ i0.ɵɵelementContainerEnd();
47
+ } if (rf & 2) {
48
+ const ctx_r0 = i0.ɵɵnextContext();
49
+ i0.ɵɵadvance();
50
+ i0.ɵɵtextInterpolate(ctx_r0.current);
51
+ } }
52
+ function ComparisonRow_Conditional_9_Conditional_2_Template(rf, ctx) { if (rf & 1) {
53
+ i0.ɵɵelementContainerStart(0);
54
+ i0.ɵɵtext(1);
55
+ i0.ɵɵelementContainerEnd();
56
+ } if (rf & 2) {
57
+ const ctx_r0 = i0.ɵɵnextContext(2);
58
+ i0.ɵɵadvance();
59
+ i0.ɵɵtextInterpolate(ctx_r0.previous);
60
+ } }
61
+ function ComparisonRow_Conditional_9_Template(rf, ctx) { if (rf & 1) {
62
+ i0.ɵɵelementStart(0, "span", null, 1);
63
+ i0.ɵɵconditionalCreate(2, ComparisonRow_Conditional_9_Conditional_2_Template, 2, 1, "ng-container");
64
+ i0.ɵɵprojection(3, 3);
65
+ i0.ɵɵelementEnd();
66
+ } if (rf & 2) {
67
+ const ctx_r0 = i0.ɵɵnextContext();
68
+ i0.ɵɵclassMap(ctx_r0.cm().cn(ctx_r0.cm().textSize("xs")));
69
+ i0.ɵɵstyleProp("text-decoration", "line-through")("opacity", 0.6);
70
+ i0.ɵɵadvance(2);
71
+ i0.ɵɵconditional(ctx_r0.hasPrevious ? 2 : -1);
72
+ } }
73
+ function ComparisonRow_Conditional_10_Conditional_1_Template(rf, ctx) { if (rf & 1) {
74
+ i0.ɵɵelementContainer(0, 5);
75
+ } if (rf & 2) {
76
+ const ctx_r0 = i0.ɵɵnextContext(2);
77
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.formatDelta)("ngTemplateOutletContext", ctx_r0.deltaContext());
78
+ } }
79
+ function ComparisonRow_Conditional_10_Conditional_2_Template(rf, ctx) { if (rf & 1) {
80
+ i0.ɵɵelementContainerStart(0);
81
+ i0.ɵɵtext(1);
82
+ i0.ɵɵelementContainerEnd();
83
+ } if (rf & 2) {
84
+ const ctx_r0 = i0.ɵɵnextContext(2);
85
+ i0.ɵɵadvance();
86
+ i0.ɵɵtextInterpolate2("", ctx_r0.arrow(), " ", ctx_r0.pct(), "%");
87
+ } }
88
+ function ComparisonRow_Conditional_10_Template(rf, ctx) { if (rf & 1) {
89
+ i0.ɵɵelementStart(0, "span");
90
+ i0.ɵɵconditionalCreate(1, ComparisonRow_Conditional_10_Conditional_1_Template, 1, 2, "ng-container", 5)(2, ComparisonRow_Conditional_10_Conditional_2_Template, 2, 2, "ng-container");
91
+ i0.ɵɵelementEnd();
92
+ } if (rf & 2) {
93
+ const ctx_r0 = i0.ɵɵnextContext();
94
+ i0.ɵɵclassMap(ctx_r0.deltaClass());
95
+ i0.ɵɵstyleProp("color", ctx_r0.deltaColor());
96
+ i0.ɵɵadvance();
97
+ i0.ɵɵconditional(ctx_r0.formatDelta ? 1 : 2);
98
+ } }
99
+ const ARROW = (n) => (n > 0 ? '▲' : n < 0 ? '▼' : '–');
100
+ const COLOR = (n) => (n > 0 ? '#22c55e' : n < 0 ? '#ef4444' : '#94a3b8');
101
+ /**
102
+ * Whether a projected node renders anything (an element, or text with
103
+ * content beyond whitespace).
104
+ *
105
+ * @param node - The projected node.
106
+ * @returns True when it renders.
107
+ */
108
+ const hasRenderable = (node) => node.nodeType === Node.ELEMENT_NODE ||
109
+ (node.nodeType === Node.TEXT_NODE && (node.textContent ?? '').trim().length > 0);
110
+ /**
111
+ * Whether an element carries renderable content (a projected slot landed, or
112
+ * its text input rendered).
113
+ *
114
+ * @param el - The element.
115
+ * @returns True when its children render anything.
116
+ */
117
+ const hasRenderableContent = (el) => Array.from(el.childNodes).some(hasRenderable);
118
+ /**
119
+ * ComparisonRow component.
120
+ *
121
+ * Period-over-period stat comparison row — current value, optional previous
122
+ * value, and a coloured delta% chip. The host IS the root `<div>`
123
+ * (`div[mol-comparison-row]`), matching React's root exactly. The delta color
124
+ * is applied inline through style bindings (the CSSOM, as react-dom does);
125
+ * the layout and type classes come from the ClassMap bond. Same props, same
126
+ * DOM as `@molecule/app-comparison-row-react`'s `ComparisonRow`. Node-valued
127
+ * `label`, `current`, `previous` and `periodLabel` content is projected
128
+ * (`[slot=<name>]`); a string or number input renders as text. A custom
129
+ * `formatDelta` is a template receiving the delta as `$implicit` / `a0`;
130
+ * without one the default arrow + percentage renders.
131
+ */
132
+ export class ComparisonRow {
133
+ /** Label for the metric (e.g. "Revenue"): text, or `[slot=label]` content. */
134
+ label;
135
+ /** Current period value (formatted): text, or `[slot=current]` content. */
136
+ current;
137
+ /** Previous period value (formatted): text, or `[slot=previous]` content. */
138
+ previous;
139
+ /** Numeric delta% — drives direction + color when present. */
140
+ deltaPct;
141
+ /** Custom delta formatter template (receives the delta as `$implicit` / `a0`). */
142
+ formatDelta;
143
+ /** Optional sub-text ("vs. last week"): text, or `[slot=periodLabel]` content. */
144
+ periodLabel;
145
+ /** Extra classes. */
146
+ className;
147
+ /** The optional period-label span (projected content lands here; read once). */
148
+ periodSpan;
149
+ /** The optional previous-value span (projected content lands here; read once). */
150
+ previousSpan;
151
+ /**
152
+ * Whether a `[slot=periodLabel]` projection landed (true until the first
153
+ * view proves otherwise).
154
+ */
155
+ periodProjected = signal(true, /* @ts-ignore */
156
+ ...(ngDevMode ? [{ debugName: "periodProjected" }] : /* istanbul ignore next */ []));
157
+ /**
158
+ * Whether a `[slot=previous]` projection landed (true until the first view
159
+ * proves otherwise).
160
+ */
161
+ previousProjected = signal(true, /* @ts-ignore */
162
+ ...(ngDevMode ? [{ debugName: "previousProjected" }] : /* istanbul ignore next */ []));
163
+ /**
164
+ * Whether the period-label span renders: React's `periodLabel && …` on the
165
+ * text input, or projected `[slot=periodLabel]` content. A plain getter, so
166
+ * every change detection pass follows the inputs (a computed would cache on
167
+ * its signal dependency alone and miss a later text input).
168
+ * @returns True when the sub-text shows.
169
+ */
170
+ get showPeriodLabel() {
171
+ return this.hasPeriodLabel || this.periodProjected();
172
+ }
173
+ /**
174
+ * Whether the previous-value span renders: React's `previous !== undefined`
175
+ * on the text input, or projected `[slot=previous]` content.
176
+ * @returns True when the struck-through value shows.
177
+ */
178
+ get showPrevious() {
179
+ return this.hasPrevious || this.previousProjected();
180
+ }
181
+ /**
182
+ * Reads the optional spans' first render: when neither a text input nor
183
+ * projected content landed, React would not render the span at all, so the
184
+ * optimistic render is withdrawn. View queries resolve only at view init,
185
+ * and a projected slot's content is in place by then.
186
+ */
187
+ ngAfterViewInit() {
188
+ const period = this.periodSpan?.nativeElement;
189
+ if (period && !this.hasPeriodLabel && !hasRenderableContent(period)) {
190
+ this.periodProjected.set(false);
191
+ }
192
+ const previous = this.previousSpan?.nativeElement;
193
+ if (previous && !this.hasPrevious && !hasRenderableContent(previous)) {
194
+ this.previousProjected.set(false);
195
+ }
196
+ }
197
+ /**
198
+ * The current class map.
199
+ * @returns The UIClassMap.
200
+ */
201
+ cm() {
202
+ return getClassMap();
203
+ }
204
+ /**
205
+ * Computes the root class list.
206
+ * @returns The class string.
207
+ */
208
+ classes() {
209
+ return this.cm().cn(this.cm().flex({ align: 'baseline', justify: 'between', gap: 'md' }), this.className);
210
+ }
211
+ /**
212
+ * The left stack's class.
213
+ * @returns The class string.
214
+ */
215
+ stackClass() {
216
+ return this.cm().stack(0);
217
+ }
218
+ /**
219
+ * The label span's class.
220
+ * @returns The class string.
221
+ */
222
+ labelClass() {
223
+ return this.cm().cn(this.cm().textSize('xs'), this.cm().fontWeight('semibold'));
224
+ }
225
+ /**
226
+ * The values row's class.
227
+ * @returns The class string.
228
+ */
229
+ valuesClass() {
230
+ return this.cm().flex({ align: 'baseline', gap: 'sm' });
231
+ }
232
+ /**
233
+ * The current-value span's class.
234
+ * @returns The class string.
235
+ */
236
+ currentClass() {
237
+ return this.cm().cn(this.cm().textSize('lg'), this.cm().fontWeight('bold'));
238
+ }
239
+ /**
240
+ * The delta chip's class.
241
+ * @returns The class string.
242
+ */
243
+ deltaClass() {
244
+ return this.cm().cn(this.cm().textSize('xs'), this.cm().fontWeight('semibold'));
245
+ }
246
+ /**
247
+ * Whether a text label input is present (a projected label is not).
248
+ * @returns True when the label input renders as text.
249
+ */
250
+ get hasLabel() {
251
+ return this.label !== undefined && this.label !== null;
252
+ }
253
+ /**
254
+ * Whether a text current-value input is present.
255
+ * @returns True when the current input renders as text.
256
+ */
257
+ get hasCurrent() {
258
+ return this.current !== undefined && this.current !== null;
259
+ }
260
+ /**
261
+ * Whether the previous value renders as text: React's
262
+ * `previous !== undefined`.
263
+ * @returns True when the struck-through value shows.
264
+ */
265
+ get hasPrevious() {
266
+ return this.previous !== undefined;
267
+ }
268
+ /**
269
+ * Whether the period label renders as text: React's `periodLabel && …`
270
+ * truthiness.
271
+ * @returns True when the sub-text shows.
272
+ */
273
+ get hasPeriodLabel() {
274
+ return this.periodLabel !== undefined && this.periodLabel !== null && this.periodLabel !== '';
275
+ }
276
+ /**
277
+ * Whether the delta chip renders.
278
+ * @returns True when `deltaPct` is set.
279
+ */
280
+ get hasDelta() {
281
+ return this.deltaPct !== undefined;
282
+ }
283
+ /**
284
+ * The delta's direction arrow.
285
+ * @returns `'▲'`, `'▼'` or `'–'`.
286
+ */
287
+ arrow() {
288
+ return ARROW(this.deltaPct ?? 0);
289
+ }
290
+ /**
291
+ * The delta's magnitude, one decimal place (React's
292
+ * `Math.abs(deltaPct).toFixed(1)`).
293
+ * @returns The formatted magnitude.
294
+ */
295
+ pct() {
296
+ return this.deltaPct === undefined ? '' : Math.abs(this.deltaPct).toFixed(1);
297
+ }
298
+ /**
299
+ * The delta chip's inline color of the current direction.
300
+ * @returns The hex color.
301
+ */
302
+ deltaColor() {
303
+ return COLOR(this.deltaPct ?? 0);
304
+ }
305
+ /**
306
+ * The template outlet context for a custom formatter.
307
+ * @returns The delta as `$implicit` and `a0`.
308
+ */
309
+ deltaContext() {
310
+ const delta = this.deltaPct;
311
+ return { $implicit: delta, a0: delta, a1: undefined, a2: undefined };
312
+ }
313
+ static ɵfac = function ComparisonRow_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ComparisonRow)(); };
314
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ComparisonRow, selectors: [["div", "mol-comparison-row", ""]], viewQuery: function ComparisonRow_Query(rf, ctx) { if (rf & 1) {
315
+ i0.ɵɵviewQuery(_c0, 5)(_c1, 5);
316
+ } if (rf & 2) {
317
+ let _t;
318
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.periodSpan = _t.first);
319
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.previousSpan = _t.first);
320
+ } }, hostVars: 2, hostBindings: function ComparisonRow_HostBindings(rf, ctx) { if (rf & 2) {
321
+ i0.ɵɵclassMap(ctx.classes());
322
+ } }, inputs: { label: "label", current: "current", previous: "previous", deltaPct: "deltaPct", formatDelta: "formatDelta", periodLabel: "periodLabel", className: "className" }, ngContentSelectors: _c3, decls: 11, vars: 13, consts: [["periodSpan", ""], ["previousSpan", ""], [3, "class"], [3, "class", "text-decoration", "opacity"], [3, "class", "color"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function ComparisonRow_Template(rf, ctx) { if (rf & 1) {
323
+ i0.ɵɵprojectionDef(_c2);
324
+ i0.ɵɵelementStart(0, "div")(1, "span");
325
+ i0.ɵɵconditionalCreate(2, ComparisonRow_Conditional_2_Template, 2, 1, "ng-container");
326
+ i0.ɵɵprojection(3);
327
+ i0.ɵɵelementEnd();
328
+ i0.ɵɵconditionalCreate(4, ComparisonRow_Conditional_4_Template, 4, 3, "span", 2);
329
+ i0.ɵɵelementEnd();
330
+ i0.ɵɵelementStart(5, "div")(6, "span");
331
+ i0.ɵɵconditionalCreate(7, ComparisonRow_Conditional_7_Template, 2, 1, "ng-container");
332
+ i0.ɵɵprojection(8, 1);
333
+ i0.ɵɵelementEnd();
334
+ i0.ɵɵconditionalCreate(9, ComparisonRow_Conditional_9_Template, 4, 7, "span", 3);
335
+ i0.ɵɵconditionalCreate(10, ComparisonRow_Conditional_10_Template, 3, 5, "span", 4);
336
+ i0.ɵɵelementEnd();
337
+ } if (rf & 2) {
338
+ i0.ɵɵclassMap(ctx.stackClass());
339
+ i0.ɵɵadvance();
340
+ i0.ɵɵclassMap(ctx.labelClass());
341
+ i0.ɵɵadvance();
342
+ i0.ɵɵconditional(ctx.hasLabel ? 2 : -1);
343
+ i0.ɵɵadvance(2);
344
+ i0.ɵɵconditional(ctx.showPeriodLabel ? 4 : -1);
345
+ i0.ɵɵadvance();
346
+ i0.ɵɵclassMap(ctx.valuesClass());
347
+ i0.ɵɵadvance();
348
+ i0.ɵɵclassMap(ctx.currentClass());
349
+ i0.ɵɵadvance();
350
+ i0.ɵɵconditional(ctx.hasCurrent ? 7 : -1);
351
+ i0.ɵɵadvance(2);
352
+ i0.ɵɵconditional(ctx.showPrevious ? 9 : -1);
353
+ i0.ɵɵadvance();
354
+ i0.ɵɵconditional(ctx.hasDelta ? 10 : -1);
355
+ } }, dependencies: [NgTemplateOutlet], encapsulation: 2 });
356
+ }
357
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ComparisonRow, [{
358
+ type: Component,
359
+ args: [{
360
+ selector: 'div[mol-comparison-row]',
361
+ standalone: true,
362
+ imports: [NgTemplateOutlet],
363
+ inputs: ['label', 'current', 'previous', 'deltaPct', 'formatDelta', 'periodLabel', 'className'],
364
+ host: {
365
+ '[class]': 'classes()',
366
+ },
367
+ // prettier-ignore
368
+ template: `<div [class]="stackClass()">
369
+ <span [class]="labelClass()">@if (hasLabel) {<ng-container>{{ label }}</ng-container>}<ng-content select="[slot=label]" /></span>@if (showPeriodLabel) {<span #periodSpan [class]="cm().textSize('xs')">@if (hasPeriodLabel) {<ng-container>{{ periodLabel }}</ng-container>}<ng-content select="[slot=periodLabel]" /></span>}
370
+ </div>
371
+ <div [class]="valuesClass()">
372
+ <span [class]="currentClass()">@if (hasCurrent) {<ng-container>{{ current }}</ng-container>}<ng-content select="[slot=current]" /></span>@if (showPrevious) {<span #previousSpan [class]="cm().cn(cm().textSize('xs'))" [style.text-decoration]="'line-through'" [style.opacity]="0.6">@if (hasPrevious) {<ng-container>{{ previous }}</ng-container>}<ng-content select="[slot=previous]" /></span>}@if (hasDelta) {<span [class]="deltaClass()" [style.color]="deltaColor()">@if (formatDelta) {<ng-container [ngTemplateOutlet]="formatDelta" [ngTemplateOutletContext]="deltaContext()" />}@else {<ng-container>{{ arrow() }} {{ pct() }}%</ng-container>}</span>}
373
+ </div>`,
374
+ }]
375
+ }], null, { periodSpan: [{
376
+ type: ViewChild,
377
+ args: ['periodSpan']
378
+ }], previousSpan: [{
379
+ type: ViewChild,
380
+ args: ['previousSpan']
381
+ }] }); })();
382
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ComparisonRow, { className: "ComparisonRow", filePath: "comparison-row.component.ts", lineNumber: 74 }); })();
383
+ //# sourceMappingURL=comparison-row.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comparison-row.component.js","sourceRoot":"","sources":["../src/comparison-row.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAEL,SAAS,EAET,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BAAkB;gBAClB,QAAQ,EAAE;;;;;WAKD;aACV;;kBAkBE,SAAS;mBAAC,YAAY;;kBAEtB,SAAS;mBAAC,cAAc;;kFAnBd,aAAa"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Angular period-over-period stat comparison row — the counterpart of
3
+ * `@molecule/app-comparison-row-react`, with the same props and the same DOM
4
+ * for the same input.
5
+ *
6
+ * Exports `<ComparisonRow>`: current value, optional previous value, and a
7
+ * coloured delta% chip for dashboards, report summaries and finance
8
+ * overviews.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * import { Component } from '@angular/core'
13
+ * import { ComparisonRow } from '@molecule/app-comparison-row-angular'
14
+ *
15
+ * @Component({
16
+ * selector: 'app-stat',
17
+ * standalone: true,
18
+ * imports: [ComparisonRow],
19
+ * template: `
20
+ * <div
21
+ * mol-comparison-row
22
+ * label="Revenue"
23
+ * current="$24,800"
24
+ * previous="$21,300"
25
+ * [deltaPct]="16.4"
26
+ * periodLabel="vs. last month"
27
+ * />
28
+ * `,
29
+ * })
30
+ * export class Stat {}
31
+ * ```
32
+ *
33
+ * @remarks
34
+ * The delta chip colors by SIGN with fixed semantics: positive = green,
35
+ * negative = red (hardcoded hexes applied inline, not theme tokens). There is
36
+ * no "down-is-good" inversion — for metrics like churn or costs, negate
37
+ * `deltaPct` (and restate the sign in `formatDelta`, which controls the text
38
+ * only, never the color). `label` / `current` / `previous` / `periodLabel`
39
+ * are consumer-provided values — pass pre-formatted, translated values; node
40
+ * content is projected as `[slot=<name>]` content instead of an input. A
41
+ * custom `formatDelta` is an `ng-template` receiving the delta as
42
+ * `$implicit` / `a0`.
43
+ *
44
+ * @module
45
+ */
46
+ export * from './comparison-row.component.js';
47
+ export * from './types.js';
48
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,cAAc,+BAA+B,CAAA;AAC7C,cAAc,YAAY,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Angular period-over-period stat comparison row — the counterpart of
3
+ * `@molecule/app-comparison-row-react`, with the same props and the same DOM
4
+ * for the same input.
5
+ *
6
+ * Exports `<ComparisonRow>`: current value, optional previous value, and a
7
+ * coloured delta% chip for dashboards, report summaries and finance
8
+ * overviews.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * import { Component } from '@angular/core'
13
+ * import { ComparisonRow } from '@molecule/app-comparison-row-angular'
14
+ *
15
+ * @Component({
16
+ * selector: 'app-stat',
17
+ * standalone: true,
18
+ * imports: [ComparisonRow],
19
+ * template: `
20
+ * <div
21
+ * mol-comparison-row
22
+ * label="Revenue"
23
+ * current="$24,800"
24
+ * previous="$21,300"
25
+ * [deltaPct]="16.4"
26
+ * periodLabel="vs. last month"
27
+ * />
28
+ * `,
29
+ * })
30
+ * export class Stat {}
31
+ * ```
32
+ *
33
+ * @remarks
34
+ * The delta chip colors by SIGN with fixed semantics: positive = green,
35
+ * negative = red (hardcoded hexes applied inline, not theme tokens). There is
36
+ * no "down-is-good" inversion — for metrics like churn or costs, negate
37
+ * `deltaPct` (and restate the sign in `formatDelta`, which controls the text
38
+ * only, never the color). `label` / `current` / `previous` / `periodLabel`
39
+ * are consumer-provided values — pass pre-formatted, translated values; node
40
+ * content is projected as `[slot=<name>]` content instead of an input. A
41
+ * custom `formatDelta` is an `ng-template` receiving the delta as
42
+ * `$implicit` / `a0`.
43
+ *
44
+ * @module
45
+ */
46
+ export * from './comparison-row.component.js';
47
+ export * from './types.js';
48
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,cAAc,+BAA+B,CAAA;AAC7C,cAAc,YAAY,CAAA"}