@cngx/common 0.1.0-rc.7 → 0.1.0-rc.9
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/card/README.md +2 -1
- package/command/README.md +29 -0
- package/data/README.md +15 -3
- package/dialog/README.md +23 -1
- package/fesm2022/cngx-common-a11y.mjs +517 -184
- package/fesm2022/cngx-common-a11y.mjs.map +1 -1
- package/fesm2022/cngx-common-audio.mjs +62 -17
- package/fesm2022/cngx-common-audio.mjs.map +1 -1
- package/fesm2022/cngx-common-card.mjs +301 -46
- package/fesm2022/cngx-common-card.mjs.map +1 -1
- package/fesm2022/cngx-common-chart.mjs +1221 -479
- package/fesm2022/cngx-common-chart.mjs.map +1 -1
- package/fesm2022/cngx-common-command.mjs +97 -16
- package/fesm2022/cngx-common-command.mjs.map +1 -1
- package/fesm2022/cngx-common-data.mjs +1496 -499
- package/fesm2022/cngx-common-data.mjs.map +1 -1
- package/fesm2022/cngx-common-dialog.mjs +236 -61
- package/fesm2022/cngx-common-dialog.mjs.map +1 -1
- package/fesm2022/cngx-common-display.mjs +364 -93
- package/fesm2022/cngx-common-display.mjs.map +1 -1
- package/fesm2022/cngx-common-interactive.mjs +2040 -1046
- package/fesm2022/cngx-common-interactive.mjs.map +1 -1
- package/fesm2022/cngx-common-layout.mjs +955 -125
- package/fesm2022/cngx-common-layout.mjs.map +1 -1
- package/fesm2022/cngx-common-popover.mjs +1293 -89
- package/fesm2022/cngx-common-popover.mjs.map +1 -1
- package/fesm2022/cngx-common-stepper.mjs +997 -453
- package/fesm2022/cngx-common-stepper.mjs.map +1 -1
- package/fesm2022/cngx-common-tabs.mjs +1794 -1265
- package/fesm2022/cngx-common-tabs.mjs.map +1 -1
- package/fesm2022/cngx-common-timeline.mjs +151 -61
- package/fesm2022/cngx-common-timeline.mjs.map +1 -1
- package/fesm2022/cngx-common.mjs +1 -1
- package/interactive/README.md +15 -4
- package/layout/README.md +37 -1
- package/package.json +20 -7
- package/popover/README.md +58 -2
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +91 -0
- package/schematics/package.json +3 -0
- package/stepper/README.md +11 -8
- package/theming/components/cngx-accordion.css +1 -1
- package/theming/components/cngx-backdrop.css +12 -0
- package/theming/components/cngx-button-toggle.css +29 -3
- package/theming/components/cngx-data-grid.css +168 -1
- package/theming/components/cngx-dialog.css +13 -0
- package/theming/components/cngx-listbox.css +21 -12
- package/theming/components/cngx-menu.css +56 -16
- package/theming/components/cngx-popover-sheet.css +402 -0
- package/theming/components/cngx-popover.css +28 -0
- package/theming/components/cngx-recycler-placeholder.css +196 -0
- package/theming/components/cngx-ripple.css +1 -1
- package/theming/components/cngx-slider.css +32 -1
- package/theming/components/cngx-tooltip.css +12 -0
- package/timeline/README.md +155 -0
- package/types/cngx-common-a11y.d.ts +205 -28
- package/types/cngx-common-card.d.ts +201 -17
- package/types/cngx-common-chart.d.ts +345 -48
- package/types/cngx-common-command.d.ts +50 -10
- package/types/cngx-common-data.d.ts +743 -92
- package/types/cngx-common-dialog.d.ts +161 -10
- package/types/cngx-common-display.d.ts +356 -142
- package/types/cngx-common-interactive.d.ts +910 -226
- package/types/cngx-common-layout.d.ts +603 -32
- package/types/cngx-common-popover.d.ts +612 -49
- package/types/cngx-common-stepper.d.ts +526 -237
- package/types/cngx-common-tabs.d.ts +358 -75
- package/types/cngx-common-timeline.d.ts +108 -22
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { linkedSignal, InjectionToken, input, ViewEncapsulation, ChangeDetectionStrategy, Component, makeEnvironmentProviders, SkipSelf, Optional, inject, Directive, ElementRef, contentChild,
|
|
3
|
-
import { coerceBooleanProperty } from '@cngx/core/utils';
|
|
2
|
+
import { linkedSignal, InjectionToken, input, ViewEncapsulation, ChangeDetectionStrategy, Component, computed, makeEnvironmentProviders, SkipSelf, Optional, inject, Directive, ElementRef, contentChild, afterNextRender, TemplateRef } from '@angular/core';
|
|
3
|
+
import { memoize, coerceBooleanProperty, dateTimeFormatterFor, createNestedOverrideMerge, coerceSignal } from '@cngx/core/utils';
|
|
4
|
+
import { cngxDevWarn } from '@cngx/utils';
|
|
4
5
|
import { NgTemplateOutlet } from '@angular/common';
|
|
6
|
+
import { formatMessage, createNestedLanguageSection } from '@cngx/core/i18n';
|
|
5
7
|
|
|
6
8
|
function pad2(value) {
|
|
7
9
|
return value < 10 ? `0${value}` : `${value}`;
|
|
@@ -15,9 +17,24 @@ function groupByDay(date) {
|
|
|
15
17
|
start: new Date(year, month, day),
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
const ISO_FIRST_DAY = 1;
|
|
21
|
+
/**
|
|
22
|
+
* First day of the week for a locale, `1` (Monday) to `7` (Sunday); ISO
|
|
23
|
+
* Monday without week info.
|
|
24
|
+
*/
|
|
25
|
+
const firstDayOfWeek = memoize((locale) => {
|
|
26
|
+
let intlLocale;
|
|
27
|
+
try {
|
|
28
|
+
intlLocale = new Intl.Locale(locale);
|
|
29
|
+
}
|
|
30
|
+
catch {
|
|
31
|
+
return ISO_FIRST_DAY;
|
|
32
|
+
}
|
|
33
|
+
return (intlLocale.getWeekInfo?.() ?? intlLocale.weekInfo)?.firstDay ?? ISO_FIRST_DAY;
|
|
34
|
+
}, { cacheLimit: 32 });
|
|
35
|
+
function groupByWeek(date, firstDay) {
|
|
36
|
+
// `firstDay` counts Monday as 1 and Sunday as 7; `getDay()` counts Sunday as 0.
|
|
37
|
+
const offset = (date.getDay() - (firstDay % 7) + 7) % 7;
|
|
21
38
|
const start = new Date(date.getFullYear(), date.getMonth(), date.getDate() - offset);
|
|
22
39
|
return {
|
|
23
40
|
key: `W${start.getFullYear()}-${pad2(start.getMonth() + 1)}-${pad2(start.getDate())}`,
|
|
@@ -32,13 +49,13 @@ function groupByMonth(date) {
|
|
|
32
49
|
function groupByNone(date) {
|
|
33
50
|
return { key: 'all', start: date };
|
|
34
51
|
}
|
|
35
|
-
function resolveGrouper(mode) {
|
|
52
|
+
function resolveGrouper(mode, firstDay) {
|
|
36
53
|
if (typeof mode === 'function') {
|
|
37
54
|
return mode;
|
|
38
55
|
}
|
|
39
56
|
switch (mode) {
|
|
40
57
|
case 'week':
|
|
41
|
-
return groupByWeek;
|
|
58
|
+
return (date) => groupByWeek(date, firstDay);
|
|
42
59
|
case 'month':
|
|
43
60
|
return groupByMonth;
|
|
44
61
|
case 'none':
|
|
@@ -100,7 +117,10 @@ function groupsEqual(a, b) {
|
|
|
100
117
|
* @since 0.1.0
|
|
101
118
|
*/
|
|
102
119
|
function createTimelineGrouping(options) {
|
|
103
|
-
const { items, dateAccessor, groupBy, direction } = options;
|
|
120
|
+
const { items, dateAccessor, groupBy, direction, locale } = options;
|
|
121
|
+
// Dev-only diagnostic; once per grouping instance so a recompute over the
|
|
122
|
+
// same bad data does not spam the console.
|
|
123
|
+
let warnedInvalidDate = false;
|
|
104
124
|
// `linkedSignal` rather than `computed`: append-stability needs the
|
|
105
125
|
// previous bands to hand their references back, and this is the sanctioned
|
|
106
126
|
// way to read them. A closure cache mutated inside a `computed` would make
|
|
@@ -108,9 +128,22 @@ function createTimelineGrouping(options) {
|
|
|
108
128
|
// run, not only on its inputs.
|
|
109
129
|
const groups = linkedSignal({ ...(ngDevMode ? { debugName: "groups" } : /* istanbul ignore next */ {}), source: () => {
|
|
110
130
|
const source = items();
|
|
111
|
-
const
|
|
131
|
+
const firstDay = locale ? firstDayOfWeek(locale()) : ISO_FIRST_DAY;
|
|
132
|
+
const grouper = resolveGrouper(groupBy?.() ?? 'day', firstDay);
|
|
112
133
|
const sign = (direction?.() ?? 'desc') === 'asc' ? 1 : -1;
|
|
113
134
|
const dated = source.map((item) => ({ item, date: toDate(dateAccessor(item)) }));
|
|
135
|
+
// An unparsable value does not throw - NaN dates all bucket under one
|
|
136
|
+
// band whose header renders "Invalid Date". Surface the mistake in dev
|
|
137
|
+
// instead of leaving that header as the only clue.
|
|
138
|
+
if (typeof ngDevMode !== 'undefined' &&
|
|
139
|
+
ngDevMode &&
|
|
140
|
+
!warnedInvalidDate &&
|
|
141
|
+
dated.some((entry) => Number.isNaN(entry.date.getTime()))) {
|
|
142
|
+
warnedInvalidDate = true;
|
|
143
|
+
cngxDevWarn('CNGX1042', 'createTimelineGrouping(): dateAccessor produced an invalid date for at least one ' +
|
|
144
|
+
'item. Those items cluster into a single band whose header renders ' +
|
|
145
|
+
'"Invalid Date" - check the accessor and the raw values it reads.');
|
|
146
|
+
}
|
|
114
147
|
dated.sort((a, b) => sign * (a.date.getTime() - b.date.getTime()));
|
|
115
148
|
// Map preserves insertion order, so buckets come out already sorted.
|
|
116
149
|
const buckets = new Map();
|
|
@@ -224,7 +257,7 @@ class CngxTimelineMarker {
|
|
|
224
257
|
*/
|
|
225
258
|
busy = input(false, { ...(ngDevMode ? { debugName: "busy" } : /* istanbul ignore next */ {}), transform: coerceBooleanProperty });
|
|
226
259
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTimelineMarker, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
227
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.4", type: CngxTimelineMarker, isStandalone: true, selector: "cngx-timeline-marker", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, busy: { classPropertyName: "busy", publicName: "busy", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" }, properties: { "attr.data-status": "status()", "class.cngx-timeline-marker--busy": "busy()" }, classAttribute: "cngx-timeline-marker" }, ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-timeline-rail-inset{syntax: \"<length>\"; inherits: true; initial-value: 6px;}@property --cngx-timeline-marker-size{syntax: \"<length>\"; inherits: true; initial-value: 12px;}@property --cngx-timeline-marker-glyph-size{syntax: \"<percentage>\"; inherits: true; initial-value: 60%;}@property --cngx-timeline-item-inline-size{syntax: \"<length>\"; inherits: true; initial-value: 192px;}@property --cngx-timeline-connector-width{syntax: \"<length>\"; inherits: true; initial-value: 2px;}@property --cngx-timeline-marker-ring-width{syntax: \"<length>\"; inherits: true; initial-value: 3px;}@property --cngx-timeline-connector-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.88 .005 250);}@property --cngx-timeline-surface{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-timeline-marker-fg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-timeline-meta-size{syntax: \"*\"; inherits: true; initial-value: .8125rem;}@property --cngx-timeline-text-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-timeline-muted-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-timeline-done-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .15 145);}@property --cngx-timeline-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-timeline-upcoming-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-timeline-rejected-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .18 25);}@property --cngx-timeline-pulse-duration{syntax: \"<time>\"; inherits: true; initial-value: 1.6s;}}:root{--cngx-timeline-connector-color: var(--cngx-color-border, oklch(.88 .005 250));--cngx-timeline-surface: var(--cngx-color-surface, oklch(1 0 0));--cngx-timeline-text-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-timeline-muted-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-timeline-done-color: var(--cngx-color-success, oklch(.6 .15 145));--cngx-timeline-active-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-timeline-upcoming-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-timeline-rejected-color: var(--cngx-color-danger, oklch(.6 .18 25))}\n", "@layer cngx.components{@scope(.cngx-timeline-marker){:scope{display:inline-flex;align-items:center;justify-content:center;flex:none;inline-size:var(--cngx-timeline-marker-size, 12px);block-size:var(--cngx-timeline-marker-size, 12px);border-radius:50%;overflow:hidden;background:var(--cngx-timeline-connector-color, oklch(.88 .005 250));box-shadow:0 0 0 var(--cngx-timeline-connector-width, 2px) var(--cngx-timeline-surface, oklch(1 0 0));color:var(--cngx-timeline-marker-fg, oklch(1 0 0));font-size:.625em;line-height:1}:scope>img,:scope>picture{inline-size:100%;block-size:100%;object-fit:cover;border-radius:inherit}:scope>svg{inline-size:var(--cngx-timeline-marker-glyph-size, 60%);block-size:var(--cngx-timeline-marker-glyph-size, 60%)}:scope[data-status=done]{background:var(--cngx-timeline-done-color, oklch(.6 .15 145))}:scope[data-status=active]{background:var(--cngx-timeline-active-color, oklch(.66 .19 50))}:scope[data-status=rejected]{background:var(--cngx-timeline-rejected-color, oklch(.6 .18 25))}:scope[data-status=upcoming]{background:var(--cngx-timeline-surface, oklch(1 0 0));border:var(--cngx-timeline-connector-width, 2px) dashed var(--cngx-timeline-upcoming-color, oklch(.5 .01 250));color:var(--cngx-timeline-upcoming-color, oklch(.5 .01 250))}}}@layer cngx.components{@scope(.cngx-timeline-marker--busy){:scope{animation:cngx-timeline-marker-pulse var(--cngx-timeline-pulse-duration, 1.6s) ease-in-out infinite}}}@keyframes cngx-timeline-marker-pulse{0%,to{box-shadow:0 0 0 var(--cngx-timeline-connector-width, 2px) var(--cngx-timeline-surface, oklch(1 0 0)),0 0 0 var(--cngx-timeline-connector-width, 2px) transparent}50%{box-shadow:0 0 0 var(--cngx-timeline-connector-width, 2px) var(--cngx-timeline-surface, oklch(1 0 0)),0 0 0 calc(var(--cngx-timeline-connector-width, 2px) + var(--cngx-timeline-marker-ring-width, 3px)) color-mix(in oklch,currentColor 35%,transparent)}}@media(prefers-reduced-motion:reduce){.cngx-timeline-marker--busy{animation:none}}@media(forced-colors:active){.cngx-timeline-marker:not([data-status=upcoming]){box-sizing:border-box;border:var(--cngx-timeline-connector-width, 2px) solid CanvasText}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
260
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.4", type: CngxTimelineMarker, isStandalone: true, selector: "cngx-timeline-marker", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, busy: { classPropertyName: "busy", publicName: "busy", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" }, properties: { "attr.data-status": "status()", "class.cngx-timeline-marker--busy": "busy()" }, classAttribute: "cngx-timeline-marker" }, ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-timeline-rail-inset{syntax: \"<length>\"; inherits: true; initial-value: 6px;}@property --cngx-timeline-marker-size{syntax: \"<length>\"; inherits: true; initial-value: 12px;}@property --cngx-timeline-marker-glyph-size{syntax: \"<percentage>\"; inherits: true; initial-value: 60%;}@property --cngx-timeline-item-inline-size{syntax: \"<length>\"; inherits: true; initial-value: 192px;}@property --cngx-timeline-connector-width{syntax: \"<length>\"; inherits: true; initial-value: 2px;}@property --cngx-timeline-marker-ring-width{syntax: \"<length>\"; inherits: true; initial-value: 3px;}@property --cngx-timeline-connector-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.88 .005 250);}@property --cngx-timeline-surface{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-timeline-marker-fg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-timeline-meta-size{syntax: \"*\"; inherits: true; initial-value: .8125rem;}@property --cngx-timeline-text-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-timeline-muted-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-timeline-done-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .15 145);}@property --cngx-timeline-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-timeline-upcoming-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-timeline-rejected-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .18 25);}@property --cngx-timeline-pulse-duration{syntax: \"<time>\"; inherits: true; initial-value: 1.6s;}}:root{--cngx-timeline-connector-color: var(--cngx-color-border, oklch(.88 .005 250));--cngx-timeline-surface: var(--cngx-color-surface, oklch(1 0 0));--cngx-timeline-text-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-timeline-muted-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-timeline-done-color: var(--cngx-color-success, oklch(.6 .15 145));--cngx-timeline-active-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-timeline-upcoming-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-timeline-rejected-color: var(--cngx-color-danger, oklch(.6 .18 25))}\n", "@layer cngx.components{@scope(.cngx-timeline-marker){:scope{display:inline-flex;align-items:center;justify-content:center;flex:none;inline-size:var(--cngx-timeline-marker-size, 12px);block-size:var(--cngx-timeline-marker-size, 12px);border-radius:50%;overflow:hidden;background:var(--cngx-timeline-connector-color, oklch(.88 .005 250));box-shadow:0 0 0 var(--cngx-timeline-connector-width, 2px) var(--cngx-timeline-surface, oklch(1 0 0));color:var(--cngx-timeline-marker-fg, oklch(1 0 0));font-size:.625em;line-height:1}:scope>img,:scope>picture{inline-size:100%;block-size:100%;object-fit:cover;border-radius:inherit}:scope>svg{inline-size:var(--cngx-timeline-marker-glyph-size, 60%);block-size:var(--cngx-timeline-marker-glyph-size, 60%)}:scope[data-status=done]{background:var(--cngx-timeline-done-color, oklch(.6 .15 145))}:scope[data-status=active]{background:var(--cngx-timeline-active-color, oklch(.66 .19 50))}:scope[data-status=rejected]{background:var(--cngx-timeline-rejected-color, oklch(.6 .18 25))}:scope[data-status=upcoming]{background:var(--cngx-timeline-surface, oklch(1 0 0));border:var(--cngx-timeline-connector-width, 2px) dashed var(--cngx-timeline-upcoming-color, oklch(.5 .01 250));color:var(--cngx-timeline-upcoming-color, oklch(.5 .01 250))}}}@layer cngx.components{@scope(.cngx-timeline-marker--busy){:scope{animation:cngx-timeline-marker-pulse var(--cngx-timeline-pulse-duration, 1.6s) ease-in-out infinite}}}@keyframes cngx-timeline-marker-pulse{0%,to{box-shadow:0 0 0 var(--cngx-timeline-connector-width, 2px) var(--cngx-timeline-surface, oklch(1 0 0)),0 0 0 var(--cngx-timeline-connector-width, 2px) transparent}50%{box-shadow:0 0 0 var(--cngx-timeline-connector-width, 2px) var(--cngx-timeline-surface, oklch(1 0 0)),0 0 0 calc(var(--cngx-timeline-connector-width, 2px) + var(--cngx-timeline-marker-ring-width, 3px)) color-mix(in oklch,currentColor 35%,transparent)}}@media(prefers-reduced-motion:reduce){.cngx-timeline-marker--busy{animation:none}}@media(forced-colors:active){.cngx-timeline-marker:not([data-status=upcoming]){box-sizing:border-box;border:var(--cngx-timeline-connector-width, 2px) solid CanvasText}.cngx-timeline-marker[data-status=done]:empty{background:CanvasText}.cngx-timeline-marker[data-status=active]:empty{background:Highlight;border-color:Highlight}.cngx-timeline-marker[data-status=rejected]:empty{border:3px double CanvasText}.cngx-timeline-marker[data-status=upcoming]:empty{box-sizing:border-box;border:var(--cngx-timeline-connector-width, 2px) dashed CanvasText}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
228
261
|
}
|
|
229
262
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTimelineMarker, decorators: [{
|
|
230
263
|
type: Component,
|
|
@@ -233,7 +266,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
233
266
|
'aria-hidden': 'true',
|
|
234
267
|
'[attr.data-status]': 'status()',
|
|
235
268
|
'[class.cngx-timeline-marker--busy]': 'busy()',
|
|
236
|
-
}, template: `<ng-content />`, styles: ["@layer cngx.tokens{@property --cngx-timeline-rail-inset{syntax: \"<length>\"; inherits: true; initial-value: 6px;}@property --cngx-timeline-marker-size{syntax: \"<length>\"; inherits: true; initial-value: 12px;}@property --cngx-timeline-marker-glyph-size{syntax: \"<percentage>\"; inherits: true; initial-value: 60%;}@property --cngx-timeline-item-inline-size{syntax: \"<length>\"; inherits: true; initial-value: 192px;}@property --cngx-timeline-connector-width{syntax: \"<length>\"; inherits: true; initial-value: 2px;}@property --cngx-timeline-marker-ring-width{syntax: \"<length>\"; inherits: true; initial-value: 3px;}@property --cngx-timeline-connector-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.88 .005 250);}@property --cngx-timeline-surface{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-timeline-marker-fg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-timeline-meta-size{syntax: \"*\"; inherits: true; initial-value: .8125rem;}@property --cngx-timeline-text-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-timeline-muted-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-timeline-done-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .15 145);}@property --cngx-timeline-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-timeline-upcoming-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-timeline-rejected-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .18 25);}@property --cngx-timeline-pulse-duration{syntax: \"<time>\"; inherits: true; initial-value: 1.6s;}}:root{--cngx-timeline-connector-color: var(--cngx-color-border, oklch(.88 .005 250));--cngx-timeline-surface: var(--cngx-color-surface, oklch(1 0 0));--cngx-timeline-text-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-timeline-muted-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-timeline-done-color: var(--cngx-color-success, oklch(.6 .15 145));--cngx-timeline-active-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-timeline-upcoming-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-timeline-rejected-color: var(--cngx-color-danger, oklch(.6 .18 25))}\n", "@layer cngx.components{@scope(.cngx-timeline-marker){:scope{display:inline-flex;align-items:center;justify-content:center;flex:none;inline-size:var(--cngx-timeline-marker-size, 12px);block-size:var(--cngx-timeline-marker-size, 12px);border-radius:50%;overflow:hidden;background:var(--cngx-timeline-connector-color, oklch(.88 .005 250));box-shadow:0 0 0 var(--cngx-timeline-connector-width, 2px) var(--cngx-timeline-surface, oklch(1 0 0));color:var(--cngx-timeline-marker-fg, oklch(1 0 0));font-size:.625em;line-height:1}:scope>img,:scope>picture{inline-size:100%;block-size:100%;object-fit:cover;border-radius:inherit}:scope>svg{inline-size:var(--cngx-timeline-marker-glyph-size, 60%);block-size:var(--cngx-timeline-marker-glyph-size, 60%)}:scope[data-status=done]{background:var(--cngx-timeline-done-color, oklch(.6 .15 145))}:scope[data-status=active]{background:var(--cngx-timeline-active-color, oklch(.66 .19 50))}:scope[data-status=rejected]{background:var(--cngx-timeline-rejected-color, oklch(.6 .18 25))}:scope[data-status=upcoming]{background:var(--cngx-timeline-surface, oklch(1 0 0));border:var(--cngx-timeline-connector-width, 2px) dashed var(--cngx-timeline-upcoming-color, oklch(.5 .01 250));color:var(--cngx-timeline-upcoming-color, oklch(.5 .01 250))}}}@layer cngx.components{@scope(.cngx-timeline-marker--busy){:scope{animation:cngx-timeline-marker-pulse var(--cngx-timeline-pulse-duration, 1.6s) ease-in-out infinite}}}@keyframes cngx-timeline-marker-pulse{0%,to{box-shadow:0 0 0 var(--cngx-timeline-connector-width, 2px) var(--cngx-timeline-surface, oklch(1 0 0)),0 0 0 var(--cngx-timeline-connector-width, 2px) transparent}50%{box-shadow:0 0 0 var(--cngx-timeline-connector-width, 2px) var(--cngx-timeline-surface, oklch(1 0 0)),0 0 0 calc(var(--cngx-timeline-connector-width, 2px) + var(--cngx-timeline-marker-ring-width, 3px)) color-mix(in oklch,currentColor 35%,transparent)}}@media(prefers-reduced-motion:reduce){.cngx-timeline-marker--busy{animation:none}}@media(forced-colors:active){.cngx-timeline-marker:not([data-status=upcoming]){box-sizing:border-box;border:var(--cngx-timeline-connector-width, 2px) solid CanvasText}}\n"] }]
|
|
269
|
+
}, template: `<ng-content />`, styles: ["@layer cngx.tokens{@property --cngx-timeline-rail-inset{syntax: \"<length>\"; inherits: true; initial-value: 6px;}@property --cngx-timeline-marker-size{syntax: \"<length>\"; inherits: true; initial-value: 12px;}@property --cngx-timeline-marker-glyph-size{syntax: \"<percentage>\"; inherits: true; initial-value: 60%;}@property --cngx-timeline-item-inline-size{syntax: \"<length>\"; inherits: true; initial-value: 192px;}@property --cngx-timeline-connector-width{syntax: \"<length>\"; inherits: true; initial-value: 2px;}@property --cngx-timeline-marker-ring-width{syntax: \"<length>\"; inherits: true; initial-value: 3px;}@property --cngx-timeline-connector-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.88 .005 250);}@property --cngx-timeline-surface{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-timeline-marker-fg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-timeline-meta-size{syntax: \"*\"; inherits: true; initial-value: .8125rem;}@property --cngx-timeline-text-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-timeline-muted-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-timeline-done-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .15 145);}@property --cngx-timeline-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-timeline-upcoming-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-timeline-rejected-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .18 25);}@property --cngx-timeline-pulse-duration{syntax: \"<time>\"; inherits: true; initial-value: 1.6s;}}:root{--cngx-timeline-connector-color: var(--cngx-color-border, oklch(.88 .005 250));--cngx-timeline-surface: var(--cngx-color-surface, oklch(1 0 0));--cngx-timeline-text-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-timeline-muted-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-timeline-done-color: var(--cngx-color-success, oklch(.6 .15 145));--cngx-timeline-active-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-timeline-upcoming-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-timeline-rejected-color: var(--cngx-color-danger, oklch(.6 .18 25))}\n", "@layer cngx.components{@scope(.cngx-timeline-marker){:scope{display:inline-flex;align-items:center;justify-content:center;flex:none;inline-size:var(--cngx-timeline-marker-size, 12px);block-size:var(--cngx-timeline-marker-size, 12px);border-radius:50%;overflow:hidden;background:var(--cngx-timeline-connector-color, oklch(.88 .005 250));box-shadow:0 0 0 var(--cngx-timeline-connector-width, 2px) var(--cngx-timeline-surface, oklch(1 0 0));color:var(--cngx-timeline-marker-fg, oklch(1 0 0));font-size:.625em;line-height:1}:scope>img,:scope>picture{inline-size:100%;block-size:100%;object-fit:cover;border-radius:inherit}:scope>svg{inline-size:var(--cngx-timeline-marker-glyph-size, 60%);block-size:var(--cngx-timeline-marker-glyph-size, 60%)}:scope[data-status=done]{background:var(--cngx-timeline-done-color, oklch(.6 .15 145))}:scope[data-status=active]{background:var(--cngx-timeline-active-color, oklch(.66 .19 50))}:scope[data-status=rejected]{background:var(--cngx-timeline-rejected-color, oklch(.6 .18 25))}:scope[data-status=upcoming]{background:var(--cngx-timeline-surface, oklch(1 0 0));border:var(--cngx-timeline-connector-width, 2px) dashed var(--cngx-timeline-upcoming-color, oklch(.5 .01 250));color:var(--cngx-timeline-upcoming-color, oklch(.5 .01 250))}}}@layer cngx.components{@scope(.cngx-timeline-marker--busy){:scope{animation:cngx-timeline-marker-pulse var(--cngx-timeline-pulse-duration, 1.6s) ease-in-out infinite}}}@keyframes cngx-timeline-marker-pulse{0%,to{box-shadow:0 0 0 var(--cngx-timeline-connector-width, 2px) var(--cngx-timeline-surface, oklch(1 0 0)),0 0 0 var(--cngx-timeline-connector-width, 2px) transparent}50%{box-shadow:0 0 0 var(--cngx-timeline-connector-width, 2px) var(--cngx-timeline-surface, oklch(1 0 0)),0 0 0 calc(var(--cngx-timeline-connector-width, 2px) + var(--cngx-timeline-marker-ring-width, 3px)) color-mix(in oklch,currentColor 35%,transparent)}}@media(prefers-reduced-motion:reduce){.cngx-timeline-marker--busy{animation:none}}@media(forced-colors:active){.cngx-timeline-marker:not([data-status=upcoming]){box-sizing:border-box;border:var(--cngx-timeline-connector-width, 2px) solid CanvasText}.cngx-timeline-marker[data-status=done]:empty{background:CanvasText}.cngx-timeline-marker[data-status=active]:empty{background:Highlight;border-color:Highlight}.cngx-timeline-marker[data-status=rejected]:empty{border:3px double CanvasText}.cngx-timeline-marker[data-status=upcoming]:empty{box-sizing:border-box;border:var(--cngx-timeline-connector-width, 2px) dashed CanvasText}}\n"] }]
|
|
237
270
|
}], propDecorators: { status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], busy: [{ type: i0.Input, args: [{ isSignal: true, alias: "busy", required: false }] }] } });
|
|
238
271
|
|
|
239
272
|
/**
|
|
@@ -308,29 +341,80 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
308
341
|
*/
|
|
309
342
|
const CNGX_TIMELINE_MARKER_HOST = new InjectionToken('CngxTimelineMarkerHost');
|
|
310
343
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
344
|
+
/**
|
|
345
|
+
* The English timeline section: the single source of the timeline's English
|
|
346
|
+
* copy. `CNGX_TIMELINE_CONFIG` defaults its `labels` to it.
|
|
347
|
+
*
|
|
348
|
+
* @category common/timeline
|
|
349
|
+
* @since 0.1.0
|
|
350
|
+
* @relatedTo CNGX_TIMELINE_CONFIG
|
|
351
|
+
*/
|
|
352
|
+
const CNGX_TIMELINE_LANGUAGE_EN = {
|
|
353
|
+
timelineRegion: 'Timeline',
|
|
354
|
+
retry: 'Retry',
|
|
355
|
+
errorFallback: 'Could not load the timeline.',
|
|
356
|
+
emptyFallback: 'No events yet',
|
|
357
|
+
loading: 'Loading timeline',
|
|
358
|
+
refreshing: 'Updating…',
|
|
359
|
+
itemBusy: 'Updating',
|
|
360
|
+
itemErrorFallback: 'Could not load this event.',
|
|
361
|
+
status: {
|
|
362
|
+
done: 'Completed',
|
|
363
|
+
active: 'In progress',
|
|
364
|
+
upcoming: 'Upcoming',
|
|
365
|
+
rejected: 'Rejected',
|
|
328
366
|
},
|
|
367
|
+
groupHeader: '{date}',
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
const DATE_FORMAT = {};
|
|
371
|
+
/** @internal Turns a timeline section into the config labels. */
|
|
372
|
+
function timelineLabelsFrom(section) {
|
|
373
|
+
return {
|
|
374
|
+
timelineRegion: section.timelineRegion,
|
|
375
|
+
retry: section.retry,
|
|
376
|
+
errorFallback: section.errorFallback,
|
|
377
|
+
emptyFallback: section.emptyFallback,
|
|
378
|
+
loading: section.loading,
|
|
379
|
+
refreshing: section.refreshing,
|
|
380
|
+
itemBusy: section.itemBusy,
|
|
381
|
+
itemErrorFallback: section.itemErrorFallback,
|
|
382
|
+
status: section.status,
|
|
383
|
+
groupLabel: (group, locale) => formatMessage(section.groupHeader, { date: dateTimeFormatterFor(locale, DATE_FORMAT).format(group.start) }, locale),
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
const LABELS_BY_SECTION = new WeakMap();
|
|
387
|
+
/**
|
|
388
|
+
* @internal The labels of one section object, built once: an equal section
|
|
389
|
+
* yields the identical labels, so readers compare by reference. The locale
|
|
390
|
+
* reaches `groupLabel` as its argument, so the labels do not depend on it.
|
|
391
|
+
*/
|
|
392
|
+
function labelsOf(section) {
|
|
393
|
+
let labels = LABELS_BY_SECTION.get(section);
|
|
394
|
+
if (!labels) {
|
|
395
|
+
labels = timelineLabelsFrom(section);
|
|
396
|
+
LABELS_BY_SECTION.set(section, labels);
|
|
397
|
+
}
|
|
398
|
+
return labels;
|
|
399
|
+
}
|
|
400
|
+
const TIMELINE_CONFIG_DEFAULTS = {
|
|
401
|
+
labels: timelineLabelsFrom(CNGX_TIMELINE_LANGUAGE_EN),
|
|
329
402
|
templates: {},
|
|
330
403
|
};
|
|
404
|
+
/** @internal The timeline section of the active pack over the English section. */
|
|
405
|
+
const injectTimelineSection = createNestedLanguageSection('timeline', CNGX_TIMELINE_LANGUAGE_EN, 'status');
|
|
406
|
+
/**
|
|
407
|
+
* @internal The defaults with `labels` read from the timeline section of the
|
|
408
|
+
* active language pack. Runs in an injection context.
|
|
409
|
+
*/
|
|
410
|
+
function timelineConfigDefaultsFromPack() {
|
|
411
|
+
const section = injectTimelineSection();
|
|
412
|
+
return { ...TIMELINE_CONFIG_DEFAULTS, labels: computed(() => labelsOf(section())) };
|
|
413
|
+
}
|
|
331
414
|
/**
|
|
332
415
|
* DI token for the resolved timeline config. \
|
|
333
|
-
* `providedIn: 'root'` with the library defaults
|
|
416
|
+
* `providedIn: 'root'` with the library defaults, `labels` read from the
|
|
417
|
+
* timeline section of the active language pack; override via
|
|
334
418
|
* {@link provideTimelineConfig} (root) or {@link provideTimelineConfigAt}
|
|
335
419
|
* (component scope).
|
|
336
420
|
*
|
|
@@ -343,19 +427,24 @@ const TIMELINE_CONFIG_DEFAULTS = {
|
|
|
343
427
|
*/
|
|
344
428
|
const CNGX_TIMELINE_CONFIG = new InjectionToken('CngxTimelineConfig', {
|
|
345
429
|
providedIn: 'root',
|
|
346
|
-
factory:
|
|
430
|
+
factory: timelineConfigDefaultsFromPack,
|
|
347
431
|
});
|
|
348
432
|
/**
|
|
349
|
-
*
|
|
350
|
-
*
|
|
351
|
-
|
|
433
|
+
* @internal Shared empty bundle for a config without `labels`. One identity,
|
|
434
|
+
* so every `coerceSignal` over it resolves to the same cached source.
|
|
435
|
+
*/
|
|
436
|
+
const TIMELINE_NO_LABELS = {};
|
|
437
|
+
/**
|
|
438
|
+
* Merge label overrides into the cascade. Keys left out keep the language
|
|
439
|
+
* pack's copy, or the English library default, so a consumer translates
|
|
440
|
+
* what they need and nothing more. Pass a `Signal` to switch the language at runtime.
|
|
352
441
|
*
|
|
353
442
|
* ```ts
|
|
354
443
|
* provideTimelineConfig(
|
|
355
444
|
* withTimelineLabels({
|
|
356
445
|
* retry: 'Erneut versuchen',
|
|
357
446
|
* emptyFallback: 'Noch keine Ereignisse.',
|
|
358
|
-
* groupLabel: (group) => group.start.toLocaleDateString('
|
|
447
|
+
* groupLabel: (group, locale) => group.start.toLocaleDateString(locale, { dateStyle: 'medium' }),
|
|
359
448
|
* }),
|
|
360
449
|
* )
|
|
361
450
|
* ```
|
|
@@ -365,14 +454,10 @@ const CNGX_TIMELINE_CONFIG = new InjectionToken('CngxTimelineConfig', {
|
|
|
365
454
|
function withTimelineLabels(labels) {
|
|
366
455
|
return (config) => ({
|
|
367
456
|
...config,
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
// spread would let a consumer who renames one status silently
|
|
373
|
-
// silence the other three.
|
|
374
|
-
status: { ...config.labels?.status, ...labels.status },
|
|
375
|
-
},
|
|
457
|
+
// One level deeper than the rest: `status` is a map, and a shallow
|
|
458
|
+
// spread would let a consumer who renames one status silently
|
|
459
|
+
// silence the other three.
|
|
460
|
+
labels: createNestedOverrideMerge(config.labels ?? TIMELINE_NO_LABELS, labels, 'status'),
|
|
376
461
|
});
|
|
377
462
|
}
|
|
378
463
|
/**
|
|
@@ -410,7 +495,7 @@ function provideTimelineConfig(...features) {
|
|
|
410
495
|
return makeEnvironmentProviders([
|
|
411
496
|
{
|
|
412
497
|
provide: CNGX_TIMELINE_CONFIG,
|
|
413
|
-
|
|
498
|
+
useFactory: () => applyFeatures(timelineConfigDefaultsFromPack(), features),
|
|
414
499
|
},
|
|
415
500
|
]);
|
|
416
501
|
}
|
|
@@ -435,7 +520,7 @@ function provideTimelineConfigAt(...features) {
|
|
|
435
520
|
return [
|
|
436
521
|
{
|
|
437
522
|
provide: CNGX_TIMELINE_CONFIG,
|
|
438
|
-
useFactory: (parent) => applyFeatures(parent ??
|
|
523
|
+
useFactory: (parent) => applyFeatures(parent ?? timelineConfigDefaultsFromPack(), features),
|
|
439
524
|
deps: [[new SkipSelf(), new Optional(), CNGX_TIMELINE_CONFIG]],
|
|
440
525
|
},
|
|
441
526
|
];
|
|
@@ -622,7 +707,7 @@ const FOCUSABLE = 'a[href], button, input, select, textarea, summary, [tabindex]
|
|
|
622
707
|
* @since 0.1.0
|
|
623
708
|
*/
|
|
624
709
|
class CngxTimelineItem {
|
|
625
|
-
|
|
710
|
+
labels = coerceSignal(injectTimelineConfig().labels ?? TIMELINE_NO_LABELS);
|
|
626
711
|
host = inject(ElementRef);
|
|
627
712
|
/**
|
|
628
713
|
* Where the event sits in the history. Drives the marker and rail
|
|
@@ -690,24 +775,25 @@ class CngxTimelineItem {
|
|
|
690
775
|
* announces the `rejected` it shows, not the editorial status it kept.
|
|
691
776
|
*/
|
|
692
777
|
statusText = computed(() => {
|
|
693
|
-
const labels = this.
|
|
778
|
+
const labels = this.labels();
|
|
694
779
|
if (this.busy()) {
|
|
695
|
-
return labels
|
|
780
|
+
return labels.itemBusy ?? '';
|
|
696
781
|
}
|
|
697
782
|
const status = this.markerStatus();
|
|
698
|
-
return status ? (labels
|
|
783
|
+
return status ? (labels.status?.[status] ?? '') : '';
|
|
699
784
|
}, ...(ngDevMode ? [{ debugName: "statusText" }] : /* istanbul ignore next */ []));
|
|
700
785
|
/** @internal Visible inline error, blank unless this row failed. */
|
|
701
|
-
errorText = computed(() => this.failed() ? (this.
|
|
786
|
+
errorText = computed(() => this.failed() ? (this.labels().itemErrorFallback ?? '') : '', ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
702
787
|
constructor() {
|
|
703
|
-
if (
|
|
788
|
+
if (typeof ngDevMode !== 'undefined' && ngDevMode) {
|
|
704
789
|
// afterNextRender, not an effect: this is a one-shot authoring check
|
|
705
790
|
// on projected content, and the reactive graph has no business
|
|
706
791
|
// carrying it. Runs once per row, after its content exists.
|
|
707
792
|
afterNextRender(() => {
|
|
708
|
-
const
|
|
709
|
-
|
|
710
|
-
|
|
793
|
+
const opposites = this.host.nativeElement.querySelectorAll(':scope > [cngxTimelineOpposite]');
|
|
794
|
+
const focusable = Array.from(opposites).some((el) => el.matches(FOCUSABLE) || el.querySelector(FOCUSABLE) !== null);
|
|
795
|
+
if (focusable) {
|
|
796
|
+
cngxDevWarn('CNGX1043', '[cngx-timeline-item] focusable content inside [cngxTimelineOpposite]. ' +
|
|
711
797
|
'The slot projects ahead of the row body, so under placement="end" or ' +
|
|
712
798
|
'"alternate" it takes focus before the row it belongs to while painting ' +
|
|
713
799
|
'on the far side of the rail. Keep opposite content non-interactive and ' +
|
|
@@ -740,7 +826,7 @@ class CngxTimelineItem {
|
|
|
740
826
|
@if (statusText(); as text) {
|
|
741
827
|
<span class="cngx-timeline-item__sr">{{ text }}</span>
|
|
742
828
|
}
|
|
743
|
-
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-timeline-rail-inset{syntax: \"<length>\"; inherits: true; initial-value: 6px;}@property --cngx-timeline-marker-size{syntax: \"<length>\"; inherits: true; initial-value: 12px;}@property --cngx-timeline-marker-glyph-size{syntax: \"<percentage>\"; inherits: true; initial-value: 60%;}@property --cngx-timeline-item-inline-size{syntax: \"<length>\"; inherits: true; initial-value: 192px;}@property --cngx-timeline-connector-width{syntax: \"<length>\"; inherits: true; initial-value: 2px;}@property --cngx-timeline-marker-ring-width{syntax: \"<length>\"; inherits: true; initial-value: 3px;}@property --cngx-timeline-connector-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.88 .005 250);}@property --cngx-timeline-surface{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-timeline-marker-fg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-timeline-meta-size{syntax: \"*\"; inherits: true; initial-value: .8125rem;}@property --cngx-timeline-text-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-timeline-muted-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-timeline-done-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .15 145);}@property --cngx-timeline-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-timeline-upcoming-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-timeline-rejected-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .18 25);}@property --cngx-timeline-pulse-duration{syntax: \"<time>\"; inherits: true; initial-value: 1.6s;}}:root{--cngx-timeline-connector-color: var(--cngx-color-border, oklch(.88 .005 250));--cngx-timeline-surface: var(--cngx-color-surface, oklch(1 0 0));--cngx-timeline-text-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-timeline-muted-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-timeline-done-color: var(--cngx-color-success, oklch(.6 .15 145));--cngx-timeline-active-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-timeline-upcoming-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-timeline-rejected-color: var(--cngx-color-danger, oklch(.6 .18 25))}\n", "@layer cngx.tokens{@property --cngx-timeline-gap{syntax: \"<length>\"; inherits: true; initial-value: 8px;}@property --cngx-timeline-row-gap{syntax: \"<length>\"; inherits: true; initial-value: 4px;}@property --cngx-timeline-content-padding{syntax: \"<length>\"; inherits: true; initial-value: 4px;}}@layer cngx.components{@scope(.cngx-timeline-item){:scope{--cngx-timeline-gap: var(--cngx-space-sm, 8px);--cngx-timeline-row-gap: var(--cngx-space-xs, 4px);--cngx-timeline-content-padding: var(--cngx-space-xs, 4px);--cngx-timeline-rail-inset: calc(var(--cngx-timeline-marker-size, 12px) / 2);display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:\"marker time\" \"rail body\";column-gap:var(--cngx-timeline-gap, 8px);row-gap:var(--cngx-timeline-row-gap, 4px);color:var(--cngx-timeline-text-color, oklch(.2 .01 250))}.cngx-timeline-marker{grid-area:marker}.cngx-timeline-connector{grid-area:rail}.cngx-timeline-item__time{grid-area:time;color:var(--cngx-timeline-muted-color, oklch(.5 .01 250));font-size:var(--cngx-timeline-meta-size, .8125rem);line-height:1.4}.cngx-timeline-item__opposite{grid-area:opposite;align-self:start;color:var(--cngx-timeline-muted-color, oklch(.5 .01 250));font-size:var(--cngx-timeline-meta-size, .8125rem);line-height:1.4;text-align:end}.cngx-timeline-item__body{grid-area:body;padding:var(--cngx-timeline-content-padding, 4px);padding-block-end:var(--cngx-timeline-row-gap, 4px);min-inline-size:0}.cngx-timeline-item__error{margin:0;color:var(--cngx-timeline-rejected-color, oklch(.6 .18 25));font-size:var(--cngx-timeline-meta-size, .8125rem);line-height:1.4}.cngx-timeline-item__sr{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:scope[data-failed] .cngx-timeline-item__time{color:var(--cngx-timeline-rejected-color, oklch(.6 .18 25))}}[data-mode=activity] .cngx-timeline-item:not([data-orientation=horizontal] *){grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:\"marker body time\" \"rail body time\"}[data-mode=activity] .cngx-timeline-item .cngx-timeline-item__time{align-self:start;text-align:end;white-space:nowrap}[data-row-side=end] .cngx-timeline-item:not([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:minmax(0,1fr) auto;grid-template-areas:\"time marker\" \"body rail\"}[data-row-side=end] .cngx-timeline-item:is([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:\"time body marker\" \"time body rail\"}[data-row-side=end] .cngx-timeline-item:not([data-mode=activity] *) .cngx-timeline-item__time{text-align:end}[data-row-side=end] .cngx-timeline-item:is([data-mode=activity] *) .cngx-timeline-item__time{text-align:start}[data-row-side=end] .cngx-timeline-item .cngx-timeline-item__opposite{text-align:start}.cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"opposite marker body\" \"time rail body\"}[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"body marker opposite\" \"body rail time\"}@container cngx-timeline (max-inline-size: 32rem){.cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *),[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:auto minmax(0,1fr);grid-template-areas:\"marker time\" \"rail body\"}.cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]),[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:auto auto minmax(0,1fr);grid-template-areas:\"opposite marker body\" \"time rail body\"}[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *) .cngx-timeline-item__time{text-align:start}[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *) .cngx-timeline-item__opposite{text-align:end}}.cngx-timeline-item:not([data-placement=alternate] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:auto auto minmax(0,1fr);grid-template-areas:\"opposite marker time\" \"opposite rail body\"}.cngx-timeline-item:is([data-mode=activity] *):not([data-placement=alternate] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:auto auto minmax(0,1fr) auto;grid-template-areas:\"opposite marker body time\" \"opposite rail body time\"}[data-row-side=end] .cngx-timeline-item:not([data-mode=activity] *):not([data-placement=alternate] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:\"time marker opposite\" \"body rail opposite\"}[data-row-side=end] .cngx-timeline-item:is([data-mode=activity] *):not([data-placement=alternate] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:\"time body marker opposite\" \"time body rail opposite\"}[data-rail=continuous] .cngx-timeline-item .cngx-timeline-connector:not([data-position=last]):not([data-position=only]):not([data-orientation=horizontal] *){block-size:calc(100% + var(--cngx-timeline-item-gap, 16px))}[data-rail=continuous] .cngx-timeline-item .cngx-timeline-connector:not([data-position=last]):not([data-position=only]):is([data-orientation=horizontal] *){inline-size:calc(100% + var(--cngx-timeline-item-gap, 16px))}.cngx-timeline-item:is([data-orientation=horizontal] *){flex:none;inline-size:var(--cngx-timeline-item-inline-size, 12rem);grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:\"marker rail\" \"time time\" \"body body\"}.cngx-timeline-item:is([data-orientation=horizontal] *) .cngx-timeline-item__time{text-align:start;white-space:normal}.cngx-timeline-item:is([data-orientation=horizontal] *) .cngx-timeline-item__opposite{text-align:start}[data-row-side=end] .cngx-timeline-item:is([data-orientation=horizontal] *){grid-template-rows:minmax(0,1fr) auto auto;grid-template-areas:\"body body\" \"time time\" \"marker rail\"}.cngx-timeline-item:is([data-orientation=horizontal] *):is([data-placement=alternate] *){grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"opposite time\" \"marker rail\" \"body body\"}[data-row-side=end] .cngx-timeline-item:is([data-orientation=horizontal] *):is([data-placement=alternate] *){grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"body body\" \"marker rail\" \"opposite time\"}.cngx-timeline-item:is([data-orientation=horizontal] *):not([data-placement=alternate] *):has(>[cngxTimelineOpposite]){grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:\"opposite opposite\" \"marker rail\" \"time time\" \"body body\"}[data-row-side=end] .cngx-timeline-item:is([data-orientation=horizontal] *):not([data-placement=alternate] *):has(>[cngxTimelineOpposite]){grid-template-rows:minmax(0,1fr) auto auto auto;grid-template-areas:\"body body\" \"time time\" \"marker rail\" \"opposite opposite\"}}\n"], dependencies: [{ kind: "component", type: CngxTimelineMarker, selector: "cngx-timeline-marker", inputs: ["status", "busy"] }, { kind: "component", type: CngxTimelineConnector, selector: "cngx-timeline-connector", inputs: ["status", "position"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
829
|
+
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-timeline-rail-inset{syntax: \"<length>\"; inherits: true; initial-value: 6px;}@property --cngx-timeline-marker-size{syntax: \"<length>\"; inherits: true; initial-value: 12px;}@property --cngx-timeline-marker-glyph-size{syntax: \"<percentage>\"; inherits: true; initial-value: 60%;}@property --cngx-timeline-item-inline-size{syntax: \"<length>\"; inherits: true; initial-value: 192px;}@property --cngx-timeline-connector-width{syntax: \"<length>\"; inherits: true; initial-value: 2px;}@property --cngx-timeline-marker-ring-width{syntax: \"<length>\"; inherits: true; initial-value: 3px;}@property --cngx-timeline-connector-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.88 .005 250);}@property --cngx-timeline-surface{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-timeline-marker-fg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-timeline-meta-size{syntax: \"*\"; inherits: true; initial-value: .8125rem;}@property --cngx-timeline-text-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-timeline-muted-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-timeline-done-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .15 145);}@property --cngx-timeline-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-timeline-upcoming-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-timeline-rejected-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .18 25);}@property --cngx-timeline-pulse-duration{syntax: \"<time>\"; inherits: true; initial-value: 1.6s;}}:root{--cngx-timeline-connector-color: var(--cngx-color-border, oklch(.88 .005 250));--cngx-timeline-surface: var(--cngx-color-surface, oklch(1 0 0));--cngx-timeline-text-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-timeline-muted-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-timeline-done-color: var(--cngx-color-success, oklch(.6 .15 145));--cngx-timeline-active-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-timeline-upcoming-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-timeline-rejected-color: var(--cngx-color-danger, oklch(.6 .18 25))}\n", "@layer cngx.tokens{@property --cngx-timeline-gap{syntax: \"<length>\"; inherits: true; initial-value: 8px;}@property --cngx-timeline-row-gap{syntax: \"<length>\"; inherits: true; initial-value: 4px;}@property --cngx-timeline-content-padding{syntax: \"<length>\"; inherits: true; initial-value: 4px;}}@layer cngx.components{@scope(.cngx-timeline-item){:scope{--cngx-timeline-gap: var(--cngx-space-sm, 8px);--cngx-timeline-row-gap: var(--cngx-space-xs, 4px);--cngx-timeline-content-padding: var(--cngx-space-xs, 4px);--cngx-timeline-rail-inset: calc(var(--cngx-timeline-marker-size, 12px) / 2);display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:\"marker time\" \"rail body\";column-gap:var(--cngx-timeline-gap, 8px);row-gap:var(--cngx-timeline-row-gap, 4px);color:var(--cngx-timeline-text-color, oklch(.2 .01 250))}.cngx-timeline-marker{grid-area:marker}.cngx-timeline-connector{grid-area:rail}.cngx-timeline-item__time{grid-area:time;color:var(--cngx-timeline-muted-color, oklch(.5 .01 250));font-size:var(--cngx-timeline-meta-size, .8125rem);line-height:1.4}.cngx-timeline-item__opposite{grid-area:opposite;align-self:start;color:var(--cngx-timeline-muted-color, oklch(.5 .01 250));font-size:var(--cngx-timeline-meta-size, .8125rem);line-height:1.4;text-align:end}.cngx-timeline-item__body{grid-area:body;padding:var(--cngx-timeline-content-padding, 4px);padding-block-end:var(--cngx-timeline-row-gap, 4px);min-inline-size:0}.cngx-timeline-item__error{margin:0;color:var(--cngx-timeline-rejected-color, oklch(.6 .18 25));font-size:var(--cngx-timeline-meta-size, .8125rem);line-height:1.4}.cngx-timeline-item__sr{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:scope[data-failed] .cngx-timeline-item__time{color:var(--cngx-timeline-rejected-color, oklch(.6 .18 25))}}[data-mode=activity] .cngx-timeline-item:not([data-orientation=horizontal] *){grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:\"marker body time\" \"rail body time\"}[data-mode=activity] .cngx-timeline-item .cngx-timeline-item__time{align-self:start;text-align:end;white-space:nowrap}[data-row-side=end] .cngx-timeline-item:not([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:minmax(0,1fr) auto;grid-template-areas:\"time marker\" \"body rail\"}[data-row-side=end] .cngx-timeline-item:is([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:\"time body marker\" \"time body rail\"}[data-row-side=end] .cngx-timeline-item:not([data-mode=activity] *) .cngx-timeline-item__time{text-align:end}[data-row-side=end] .cngx-timeline-item:is([data-mode=activity] *) .cngx-timeline-item__time{text-align:start}[data-row-side=end] .cngx-timeline-item .cngx-timeline-item__opposite{text-align:start}.cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"opposite marker body\" \"time rail body\"}[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"body marker opposite\" \"body rail time\"}@container cngx-timeline (max-inline-size: 30rem){.cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *),[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:auto minmax(0,1fr);grid-template-areas:\"marker time\" \"rail body\"}.cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]),[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:auto auto minmax(0,1fr);grid-template-areas:\"opposite marker body\" \"time rail body\"}[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *) .cngx-timeline-item__time{text-align:start}[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *) .cngx-timeline-item__opposite{text-align:end}}.cngx-timeline-item:not([data-placement=alternate] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:auto auto minmax(0,1fr);grid-template-areas:\"opposite marker time\" \"opposite rail body\"}.cngx-timeline-item:is([data-mode=activity] *):not([data-placement=alternate] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:auto auto minmax(0,1fr) auto;grid-template-areas:\"opposite marker body time\" \"opposite rail body time\"}[data-row-side=end] .cngx-timeline-item:not([data-mode=activity] *):not([data-placement=alternate] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:\"time marker opposite\" \"body rail opposite\"}[data-row-side=end] .cngx-timeline-item:is([data-mode=activity] *):not([data-placement=alternate] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:\"time body marker opposite\" \"time body rail opposite\"}[data-rail=continuous] .cngx-timeline-item .cngx-timeline-connector:not([data-position=last]):not([data-position=only]):not([data-orientation=horizontal] *){block-size:calc(100% + var(--cngx-timeline-item-gap, 16px))}[data-rail=continuous] .cngx-timeline-item .cngx-timeline-connector:not([data-position=last]):not([data-position=only]):is([data-orientation=horizontal] *){inline-size:calc(100% + var(--cngx-timeline-item-gap, 16px))}.cngx-timeline-item:is([data-orientation=horizontal] *){flex:none;inline-size:var(--cngx-timeline-item-inline-size, 12rem);grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:\"marker rail\" \"time time\" \"body body\"}.cngx-timeline-item:is([data-orientation=horizontal] *) .cngx-timeline-item__time{text-align:start;white-space:normal}.cngx-timeline-item:is([data-orientation=horizontal] *) .cngx-timeline-item__opposite{text-align:start}[data-row-side=end] .cngx-timeline-item:is([data-orientation=horizontal] *){grid-template-rows:minmax(0,1fr) auto auto;grid-template-areas:\"body body\" \"time time\" \"marker rail\"}.cngx-timeline-item:is([data-orientation=horizontal] *):is([data-placement=alternate] *){grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"opposite time\" \"marker rail\" \"body body\"}[data-row-side=end] .cngx-timeline-item:is([data-orientation=horizontal] *):is([data-placement=alternate] *){grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"body body\" \"marker rail\" \"opposite time\"}.cngx-timeline-item:is([data-orientation=horizontal] *):not([data-placement=alternate] *):has(>[cngxTimelineOpposite]){grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:\"opposite opposite\" \"marker rail\" \"time time\" \"body body\"}[data-row-side=end] .cngx-timeline-item:is([data-orientation=horizontal] *):not([data-placement=alternate] *):has(>[cngxTimelineOpposite]){grid-template-rows:minmax(0,1fr) auto auto auto;grid-template-areas:\"body body\" \"time time\" \"marker rail\" \"opposite opposite\"}}\n"], dependencies: [{ kind: "component", type: CngxTimelineMarker, selector: "cngx-timeline-marker", inputs: ["status", "busy"] }, { kind: "component", type: CngxTimelineConnector, selector: "cngx-timeline-connector", inputs: ["status", "position"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
744
830
|
}
|
|
745
831
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTimelineItem, decorators: [{
|
|
746
832
|
type: Component,
|
|
@@ -772,7 +858,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
772
858
|
@if (statusText(); as text) {
|
|
773
859
|
<span class="cngx-timeline-item__sr">{{ text }}</span>
|
|
774
860
|
}
|
|
775
|
-
`, styles: ["@layer cngx.tokens{@property --cngx-timeline-rail-inset{syntax: \"<length>\"; inherits: true; initial-value: 6px;}@property --cngx-timeline-marker-size{syntax: \"<length>\"; inherits: true; initial-value: 12px;}@property --cngx-timeline-marker-glyph-size{syntax: \"<percentage>\"; inherits: true; initial-value: 60%;}@property --cngx-timeline-item-inline-size{syntax: \"<length>\"; inherits: true; initial-value: 192px;}@property --cngx-timeline-connector-width{syntax: \"<length>\"; inherits: true; initial-value: 2px;}@property --cngx-timeline-marker-ring-width{syntax: \"<length>\"; inherits: true; initial-value: 3px;}@property --cngx-timeline-connector-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.88 .005 250);}@property --cngx-timeline-surface{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-timeline-marker-fg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-timeline-meta-size{syntax: \"*\"; inherits: true; initial-value: .8125rem;}@property --cngx-timeline-text-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-timeline-muted-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-timeline-done-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .15 145);}@property --cngx-timeline-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-timeline-upcoming-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-timeline-rejected-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .18 25);}@property --cngx-timeline-pulse-duration{syntax: \"<time>\"; inherits: true; initial-value: 1.6s;}}:root{--cngx-timeline-connector-color: var(--cngx-color-border, oklch(.88 .005 250));--cngx-timeline-surface: var(--cngx-color-surface, oklch(1 0 0));--cngx-timeline-text-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-timeline-muted-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-timeline-done-color: var(--cngx-color-success, oklch(.6 .15 145));--cngx-timeline-active-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-timeline-upcoming-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-timeline-rejected-color: var(--cngx-color-danger, oklch(.6 .18 25))}\n", "@layer cngx.tokens{@property --cngx-timeline-gap{syntax: \"<length>\"; inherits: true; initial-value: 8px;}@property --cngx-timeline-row-gap{syntax: \"<length>\"; inherits: true; initial-value: 4px;}@property --cngx-timeline-content-padding{syntax: \"<length>\"; inherits: true; initial-value: 4px;}}@layer cngx.components{@scope(.cngx-timeline-item){:scope{--cngx-timeline-gap: var(--cngx-space-sm, 8px);--cngx-timeline-row-gap: var(--cngx-space-xs, 4px);--cngx-timeline-content-padding: var(--cngx-space-xs, 4px);--cngx-timeline-rail-inset: calc(var(--cngx-timeline-marker-size, 12px) / 2);display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:\"marker time\" \"rail body\";column-gap:var(--cngx-timeline-gap, 8px);row-gap:var(--cngx-timeline-row-gap, 4px);color:var(--cngx-timeline-text-color, oklch(.2 .01 250))}.cngx-timeline-marker{grid-area:marker}.cngx-timeline-connector{grid-area:rail}.cngx-timeline-item__time{grid-area:time;color:var(--cngx-timeline-muted-color, oklch(.5 .01 250));font-size:var(--cngx-timeline-meta-size, .8125rem);line-height:1.4}.cngx-timeline-item__opposite{grid-area:opposite;align-self:start;color:var(--cngx-timeline-muted-color, oklch(.5 .01 250));font-size:var(--cngx-timeline-meta-size, .8125rem);line-height:1.4;text-align:end}.cngx-timeline-item__body{grid-area:body;padding:var(--cngx-timeline-content-padding, 4px);padding-block-end:var(--cngx-timeline-row-gap, 4px);min-inline-size:0}.cngx-timeline-item__error{margin:0;color:var(--cngx-timeline-rejected-color, oklch(.6 .18 25));font-size:var(--cngx-timeline-meta-size, .8125rem);line-height:1.4}.cngx-timeline-item__sr{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:scope[data-failed] .cngx-timeline-item__time{color:var(--cngx-timeline-rejected-color, oklch(.6 .18 25))}}[data-mode=activity] .cngx-timeline-item:not([data-orientation=horizontal] *){grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:\"marker body time\" \"rail body time\"}[data-mode=activity] .cngx-timeline-item .cngx-timeline-item__time{align-self:start;text-align:end;white-space:nowrap}[data-row-side=end] .cngx-timeline-item:not([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:minmax(0,1fr) auto;grid-template-areas:\"time marker\" \"body rail\"}[data-row-side=end] .cngx-timeline-item:is([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:\"time body marker\" \"time body rail\"}[data-row-side=end] .cngx-timeline-item:not([data-mode=activity] *) .cngx-timeline-item__time{text-align:end}[data-row-side=end] .cngx-timeline-item:is([data-mode=activity] *) .cngx-timeline-item__time{text-align:start}[data-row-side=end] .cngx-timeline-item .cngx-timeline-item__opposite{text-align:start}.cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"opposite marker body\" \"time rail body\"}[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"body marker opposite\" \"body rail time\"}@container cngx-timeline (max-inline-size: 32rem){.cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *),[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:auto minmax(0,1fr);grid-template-areas:\"marker time\" \"rail body\"}.cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]),[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:auto auto minmax(0,1fr);grid-template-areas:\"opposite marker body\" \"time rail body\"}[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *) .cngx-timeline-item__time{text-align:start}[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *) .cngx-timeline-item__opposite{text-align:end}}.cngx-timeline-item:not([data-placement=alternate] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:auto auto minmax(0,1fr);grid-template-areas:\"opposite marker time\" \"opposite rail body\"}.cngx-timeline-item:is([data-mode=activity] *):not([data-placement=alternate] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:auto auto minmax(0,1fr) auto;grid-template-areas:\"opposite marker body time\" \"opposite rail body time\"}[data-row-side=end] .cngx-timeline-item:not([data-mode=activity] *):not([data-placement=alternate] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:\"time marker opposite\" \"body rail opposite\"}[data-row-side=end] .cngx-timeline-item:is([data-mode=activity] *):not([data-placement=alternate] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:\"time body marker opposite\" \"time body rail opposite\"}[data-rail=continuous] .cngx-timeline-item .cngx-timeline-connector:not([data-position=last]):not([data-position=only]):not([data-orientation=horizontal] *){block-size:calc(100% + var(--cngx-timeline-item-gap, 16px))}[data-rail=continuous] .cngx-timeline-item .cngx-timeline-connector:not([data-position=last]):not([data-position=only]):is([data-orientation=horizontal] *){inline-size:calc(100% + var(--cngx-timeline-item-gap, 16px))}.cngx-timeline-item:is([data-orientation=horizontal] *){flex:none;inline-size:var(--cngx-timeline-item-inline-size, 12rem);grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:\"marker rail\" \"time time\" \"body body\"}.cngx-timeline-item:is([data-orientation=horizontal] *) .cngx-timeline-item__time{text-align:start;white-space:normal}.cngx-timeline-item:is([data-orientation=horizontal] *) .cngx-timeline-item__opposite{text-align:start}[data-row-side=end] .cngx-timeline-item:is([data-orientation=horizontal] *){grid-template-rows:minmax(0,1fr) auto auto;grid-template-areas:\"body body\" \"time time\" \"marker rail\"}.cngx-timeline-item:is([data-orientation=horizontal] *):is([data-placement=alternate] *){grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"opposite time\" \"marker rail\" \"body body\"}[data-row-side=end] .cngx-timeline-item:is([data-orientation=horizontal] *):is([data-placement=alternate] *){grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"body body\" \"marker rail\" \"opposite time\"}.cngx-timeline-item:is([data-orientation=horizontal] *):not([data-placement=alternate] *):has(>[cngxTimelineOpposite]){grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:\"opposite opposite\" \"marker rail\" \"time time\" \"body body\"}[data-row-side=end] .cngx-timeline-item:is([data-orientation=horizontal] *):not([data-placement=alternate] *):has(>[cngxTimelineOpposite]){grid-template-rows:minmax(0,1fr) auto auto auto;grid-template-areas:\"body body\" \"time time\" \"marker rail\" \"opposite opposite\"}}\n"] }]
|
|
861
|
+
`, styles: ["@layer cngx.tokens{@property --cngx-timeline-rail-inset{syntax: \"<length>\"; inherits: true; initial-value: 6px;}@property --cngx-timeline-marker-size{syntax: \"<length>\"; inherits: true; initial-value: 12px;}@property --cngx-timeline-marker-glyph-size{syntax: \"<percentage>\"; inherits: true; initial-value: 60%;}@property --cngx-timeline-item-inline-size{syntax: \"<length>\"; inherits: true; initial-value: 192px;}@property --cngx-timeline-connector-width{syntax: \"<length>\"; inherits: true; initial-value: 2px;}@property --cngx-timeline-marker-ring-width{syntax: \"<length>\"; inherits: true; initial-value: 3px;}@property --cngx-timeline-connector-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.88 .005 250);}@property --cngx-timeline-surface{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-timeline-marker-fg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-timeline-meta-size{syntax: \"*\"; inherits: true; initial-value: .8125rem;}@property --cngx-timeline-text-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-timeline-muted-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-timeline-done-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .15 145);}@property --cngx-timeline-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-timeline-upcoming-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-timeline-rejected-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .18 25);}@property --cngx-timeline-pulse-duration{syntax: \"<time>\"; inherits: true; initial-value: 1.6s;}}:root{--cngx-timeline-connector-color: var(--cngx-color-border, oklch(.88 .005 250));--cngx-timeline-surface: var(--cngx-color-surface, oklch(1 0 0));--cngx-timeline-text-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-timeline-muted-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-timeline-done-color: var(--cngx-color-success, oklch(.6 .15 145));--cngx-timeline-active-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-timeline-upcoming-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-timeline-rejected-color: var(--cngx-color-danger, oklch(.6 .18 25))}\n", "@layer cngx.tokens{@property --cngx-timeline-gap{syntax: \"<length>\"; inherits: true; initial-value: 8px;}@property --cngx-timeline-row-gap{syntax: \"<length>\"; inherits: true; initial-value: 4px;}@property --cngx-timeline-content-padding{syntax: \"<length>\"; inherits: true; initial-value: 4px;}}@layer cngx.components{@scope(.cngx-timeline-item){:scope{--cngx-timeline-gap: var(--cngx-space-sm, 8px);--cngx-timeline-row-gap: var(--cngx-space-xs, 4px);--cngx-timeline-content-padding: var(--cngx-space-xs, 4px);--cngx-timeline-rail-inset: calc(var(--cngx-timeline-marker-size, 12px) / 2);display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:\"marker time\" \"rail body\";column-gap:var(--cngx-timeline-gap, 8px);row-gap:var(--cngx-timeline-row-gap, 4px);color:var(--cngx-timeline-text-color, oklch(.2 .01 250))}.cngx-timeline-marker{grid-area:marker}.cngx-timeline-connector{grid-area:rail}.cngx-timeline-item__time{grid-area:time;color:var(--cngx-timeline-muted-color, oklch(.5 .01 250));font-size:var(--cngx-timeline-meta-size, .8125rem);line-height:1.4}.cngx-timeline-item__opposite{grid-area:opposite;align-self:start;color:var(--cngx-timeline-muted-color, oklch(.5 .01 250));font-size:var(--cngx-timeline-meta-size, .8125rem);line-height:1.4;text-align:end}.cngx-timeline-item__body{grid-area:body;padding:var(--cngx-timeline-content-padding, 4px);padding-block-end:var(--cngx-timeline-row-gap, 4px);min-inline-size:0}.cngx-timeline-item__error{margin:0;color:var(--cngx-timeline-rejected-color, oklch(.6 .18 25));font-size:var(--cngx-timeline-meta-size, .8125rem);line-height:1.4}.cngx-timeline-item__sr{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:scope[data-failed] .cngx-timeline-item__time{color:var(--cngx-timeline-rejected-color, oklch(.6 .18 25))}}[data-mode=activity] .cngx-timeline-item:not([data-orientation=horizontal] *){grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:\"marker body time\" \"rail body time\"}[data-mode=activity] .cngx-timeline-item .cngx-timeline-item__time{align-self:start;text-align:end;white-space:nowrap}[data-row-side=end] .cngx-timeline-item:not([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:minmax(0,1fr) auto;grid-template-areas:\"time marker\" \"body rail\"}[data-row-side=end] .cngx-timeline-item:is([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:\"time body marker\" \"time body rail\"}[data-row-side=end] .cngx-timeline-item:not([data-mode=activity] *) .cngx-timeline-item__time{text-align:end}[data-row-side=end] .cngx-timeline-item:is([data-mode=activity] *) .cngx-timeline-item__time{text-align:start}[data-row-side=end] .cngx-timeline-item .cngx-timeline-item__opposite{text-align:start}.cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"opposite marker body\" \"time rail body\"}[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"body marker opposite\" \"body rail time\"}@container cngx-timeline (max-inline-size: 30rem){.cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *),[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *){grid-template-columns:auto minmax(0,1fr);grid-template-areas:\"marker time\" \"rail body\"}.cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]),[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:auto auto minmax(0,1fr);grid-template-areas:\"opposite marker body\" \"time rail body\"}[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *) .cngx-timeline-item__time{text-align:start}[data-row-side=end] .cngx-timeline-item:is([data-placement=alternate] *):not([data-mode=activity] *) .cngx-timeline-item__opposite{text-align:end}}.cngx-timeline-item:not([data-placement=alternate] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:auto auto minmax(0,1fr);grid-template-areas:\"opposite marker time\" \"opposite rail body\"}.cngx-timeline-item:is([data-mode=activity] *):not([data-placement=alternate] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:auto auto minmax(0,1fr) auto;grid-template-areas:\"opposite marker body time\" \"opposite rail body time\"}[data-row-side=end] .cngx-timeline-item:not([data-mode=activity] *):not([data-placement=alternate] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:\"time marker opposite\" \"body rail opposite\"}[data-row-side=end] .cngx-timeline-item:is([data-mode=activity] *):not([data-placement=alternate] *):not([data-orientation=horizontal] *):has(>[cngxTimelineOpposite]){grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:\"time body marker opposite\" \"time body rail opposite\"}[data-rail=continuous] .cngx-timeline-item .cngx-timeline-connector:not([data-position=last]):not([data-position=only]):not([data-orientation=horizontal] *){block-size:calc(100% + var(--cngx-timeline-item-gap, 16px))}[data-rail=continuous] .cngx-timeline-item .cngx-timeline-connector:not([data-position=last]):not([data-position=only]):is([data-orientation=horizontal] *){inline-size:calc(100% + var(--cngx-timeline-item-gap, 16px))}.cngx-timeline-item:is([data-orientation=horizontal] *){flex:none;inline-size:var(--cngx-timeline-item-inline-size, 12rem);grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:\"marker rail\" \"time time\" \"body body\"}.cngx-timeline-item:is([data-orientation=horizontal] *) .cngx-timeline-item__time{text-align:start;white-space:normal}.cngx-timeline-item:is([data-orientation=horizontal] *) .cngx-timeline-item__opposite{text-align:start}[data-row-side=end] .cngx-timeline-item:is([data-orientation=horizontal] *){grid-template-rows:minmax(0,1fr) auto auto;grid-template-areas:\"body body\" \"time time\" \"marker rail\"}.cngx-timeline-item:is([data-orientation=horizontal] *):is([data-placement=alternate] *){grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"opposite time\" \"marker rail\" \"body body\"}[data-row-side=end] .cngx-timeline-item:is([data-orientation=horizontal] *):is([data-placement=alternate] *){grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"body body\" \"marker rail\" \"opposite time\"}.cngx-timeline-item:is([data-orientation=horizontal] *):not([data-placement=alternate] *):has(>[cngxTimelineOpposite]){grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:\"opposite opposite\" \"marker rail\" \"time time\" \"body body\"}[data-row-side=end] .cngx-timeline-item:is([data-orientation=horizontal] *):not([data-placement=alternate] *):has(>[cngxTimelineOpposite]){grid-template-rows:minmax(0,1fr) auto auto auto;grid-template-areas:\"body body\" \"time time\" \"marker rail\" \"opposite opposite\"}}\n"] }]
|
|
776
862
|
}], ctorParameters: () => [], propDecorators: { status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: false }] }], ownMarker: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTimelineMarkerContent), { isSignal: true }] }] } });
|
|
777
863
|
|
|
778
864
|
/**
|
|
@@ -841,7 +927,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
841
927
|
/**
|
|
842
928
|
* The per-group header. Falls back to
|
|
843
929
|
* `CNGX_TIMELINE_CONFIG.labels.groupLabel`, which formats the group's
|
|
844
|
-
* start date in the
|
|
930
|
+
* start date in the app locale.
|
|
845
931
|
*
|
|
846
932
|
* The element this renders into is what the group's `aria-labelledby`
|
|
847
933
|
* points at, so a header that renders nothing leaves the group unnamed.
|
|
@@ -1047,10 +1133,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1047
1133
|
* One placeholder row in the first-load body, replacing the built-in
|
|
1048
1134
|
* marker-rail-and-two-bars shape. Rendered `[skeletonRowCount]` times.
|
|
1049
1135
|
*
|
|
1050
|
-
*
|
|
1051
|
-
*
|
|
1052
|
-
*
|
|
1053
|
-
*
|
|
1136
|
+
* The context carries the row's position only ({@link CngxTimelineSkeletonContext}):
|
|
1137
|
+
* `index`, `count` and the `side` the content row will sit on, so a custom
|
|
1138
|
+
* shape follows `placement="end"` / `"alternate"` and the swap to content
|
|
1139
|
+
* does not reflow. Bind this when the real rows are taller or busier than
|
|
1140
|
+
* the default shape.
|
|
1054
1141
|
*
|
|
1055
1142
|
* Whatever renders here sits inside an `aria-hidden` wrapper - the load is
|
|
1056
1143
|
* announced through the timeline's live region, not through the placeholder.
|
|
@@ -1062,6 +1149,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1062
1149
|
*/
|
|
1063
1150
|
class CngxTimelineSkeleton {
|
|
1064
1151
|
templateRef = inject(TemplateRef);
|
|
1152
|
+
static ngTemplateContextGuard(_dir, ctx) {
|
|
1153
|
+
return true;
|
|
1154
|
+
}
|
|
1065
1155
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTimelineSkeleton, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1066
1156
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: CngxTimelineSkeleton, isStandalone: true, selector: "ng-template[cngxTimelineSkeleton]", exportAs: ["cngxTimelineSkeleton"], ngImport: i0 });
|
|
1067
1157
|
}
|
|
@@ -1082,5 +1172,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1082
1172
|
* Generated bundle index. Do not edit.
|
|
1083
1173
|
*/
|
|
1084
1174
|
|
|
1085
|
-
export { CNGX_TIMELINE_CONFIG, CNGX_TIMELINE_GROUPING_FACTORY, CNGX_TIMELINE_MARKER_HOST, CngxTimelineConnector, CngxTimelineContent, CngxTimelineDateHeader, CngxTimelineEmpty, CngxTimelineError, CngxTimelineItem, CngxTimelineItemTpl, CngxTimelineLoadingTail, CngxTimelineMarker, CngxTimelineMarkerContent, CngxTimelineMarkerTpl, CngxTimelineOpposite, CngxTimelineRetryButton, CngxTimelineSkeleton, CngxTimelineTime, createTimelineGrouping, injectTimelineConfig, provideTimelineConfig, provideTimelineConfigAt, withTimelineLabels, withTimelineTemplates };
|
|
1175
|
+
export { CNGX_TIMELINE_CONFIG, CNGX_TIMELINE_GROUPING_FACTORY, CNGX_TIMELINE_LANGUAGE_EN, CNGX_TIMELINE_MARKER_HOST, CngxTimelineConnector, CngxTimelineContent, CngxTimelineDateHeader, CngxTimelineEmpty, CngxTimelineError, CngxTimelineItem, CngxTimelineItemTpl, CngxTimelineLoadingTail, CngxTimelineMarker, CngxTimelineMarkerContent, CngxTimelineMarkerTpl, CngxTimelineOpposite, CngxTimelineRetryButton, CngxTimelineSkeleton, CngxTimelineTime, createTimelineGrouping, injectTimelineConfig, provideTimelineConfig, provideTimelineConfigAt, withTimelineLabels, withTimelineTemplates };
|
|
1086
1176
|
//# sourceMappingURL=cngx-common-timeline.mjs.map
|