@ids-group-ltd/ids-design-system 0.15.1 → 0.15.2

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/components.md +3 -3
  3. package/docs/agent/foundations/global-helper-classes.md +1 -1
  4. package/docs/agent/foundations/tokens.md +1 -1
  5. package/docs/agent/tables/ds-table.md +1 -1
  6. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +16 -8
  7. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  8. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +2 -2
  9. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  10. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +2 -2
  11. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  12. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
  13. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  14. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +289 -10
  15. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  16. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  17. package/migrations/0.15.0.json +42 -11
  18. package/migrations/0.15.1.json +20 -13
  19. package/migrations/0.15.2.json +164 -0
  20. package/migrations/0.3.0.json +16 -9
  21. package/package.json +1 -1
  22. package/schematics/check-overrides/surface.json +3 -1
  23. package/stylelint/deprecated-tokens.json +3 -10
  24. package/styles/_link.scss +2 -7
  25. package/themes/README.md +6 -4
  26. package/themes/_semantic.scss +2 -0
  27. package/themes/dark/_theme.scss +3 -0
  28. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +5 -5
  29. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +2 -2
  30. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +34 -1
  31. package/types/ids-group-ltd-ids-design-system-core.d.ts +5 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,71 @@
1
1
  ## Unreleased
2
2
 
3
+ ## 0.15.2 — 2026-10-14
4
+
5
+ ### Added
6
+
7
+ - **`ds-table` takes `layout`, and `DsConfig.table.layout` sets it for every table.** `'fixed'`, the
8
+ default, is the layout 0.15.1 introduced. `'auto'` lays a table out as 0.15.0 did: each column
9
+ follows its cell content, `kind` has no effect, and a numeric `width`, `width: 'content'`,
10
+ `minWidth` and `truncate` size the column as they did on 0.15.0. A `layout` on the element wins
11
+ over the config. To keep the 0.15.0 look across an app until its tables are reviewed:
12
+ `provideDsConfig({ table: { layout: 'auto' } })`. A table with `virtualScroll` keeps
13
+ `table-layout: fixed` either way. `TableComponent` gained the public `layoutMode` (the `layout`
14
+ input), the protected `autoLayout`, `autoLayoutWidth`, `autoLayoutMinWidth`, `clipGrows`,
15
+ `clipMaxWidth` and `clipMinWidth` and the private `layoutResolved`, `growingClipColumns`,
16
+ `clipCapsSet`, `clipFit`, `clipFitWidth`, `textCanvas`, `measureGrowingClips`, `widestValue` and
17
+ `splitGrowingClips`, so a subclass declaring one of those names must rename it.
18
+
19
+ ### Changed
20
+
21
+ - **`--text-link` and `--text-link-visited` are theme roles; `.link` and the `ds-table` cell link
22
+ read them.** `--text-link` is `var(--blue-700)` in light and `hsl(var(--blue-h) 90% 74%)` in
23
+ dark; `--text-link-visited` is `hsl(var(--blue-h) calc(var(--blue-s) * 0.6) 45%)` and
24
+ `hsl(var(--blue-h) 50% 70%)`; both stay blue under any brand. `.link` reads
25
+ `var(--ds-link-color, var(--text-link))` and, visited,
26
+ `var(--ds-link-color-visited, var(--text-link-visited))`, at the colours it painted. A `ds-table`
27
+ link cell and a hovered `interactive` cell read
28
+ `var(--ds-table-cell-link-color, var(--text-link))`
29
+ where they read `--accent`: `#1d43ed` where they were `#2e54ff` in light, `#8197f8` where they
30
+ were `#2e54ff` (3.14:1 on the dark surface, now 6.33:1) in dark, and blue under a brand that set
31
+ `--primary`. A brand recolours links by setting `--text-link` and `--text-link-visited` in each
32
+ theme block; `--ds-link-color` and `--ds-link-color-visited` are `.link` hooks, set on `.link` or
33
+ an ancestor. If your theme sets them on `:root` as its link colour, set `--text-link` and
34
+ `--text-link-visited` there instead, and read `var(--text-link)` where you read
35
+ `var(--ds-link-color)` or a palette value such as `var(--blue-700)` for the link colour. The
36
+ visited role 0.15.0 named `--link-visited` is `--text-link-visited`: where you set or read
37
+ `--link-visited`, set or read `--text-link-visited`. Its default reads `--blue-h` and `--blue-s`
38
+ where `--link-visited` read `--primary-h` and `--primary-s`, so it stays blue under a brand that
39
+ sets `--primary-h` or `--primary-s`, as `--text-link` does in dark. To keep a table link in the
40
+ brand colour, set `--ds-table-cell-link-color: var(--accent)` on `ds-table`.
41
+
42
+ - **`showChange` colours a stretch that starts at zero.** On `dsLineSeries` and `ds-line-chart`,
43
+ the stretch from a reading of 0 thickens in `--ds-chart-positive-color` or
44
+ `--ds-chart-negative-color` like any other, and prints no percentage.
45
+
46
+ - **The `showChange` stretch and percentage fade in as the chart's other marks do.** They wait
47
+ `--ds-motion-chart-mark-exit-duration` and fade in over `--ds-motion-chart-mark-enter-duration`
48
+ (120ms and 400ms by default), where they appeared at once over 120ms, and leave on
49
+ `--ds-motion-chart-mark-exit-duration` and `--ds-motion-chart-mark-exit-easing`.
50
+
51
+ ### Deprecated
52
+
53
+ - **`layout: 'auto'` on `ds-table` and in `DsConfig.table.layout`.** It is a temporary way back to
54
+ the 0.15.0 column widths and will be removed. A development build warns once per page while a
55
+ table uses it. Review each table under `'fixed'`, giving a column `width`, `kind` or `minWidth`
56
+ where it needs one, then delete the binding or the config key.
57
+
58
+ ### Fixed
59
+
60
+ - **A `ds-table` measured while hidden no longer keeps the widths it read there.** A table under a
61
+ `display: none` ancestor, such as an inactive `ds-tabs` panel, measured its header labels when it
62
+ rendered there or its columns, its density or the loaded fonts changed there, and its
63
+ `width: 'content'` columns when it rendered there or its rows, its page or the loaded fonts
64
+ changed there. It read 0 for each and kept those widths when shown: a `width: 'content'` column
65
+ collapsed to 0px and its cells spilled over the next column, a column could shrink below its
66
+ header label, and resizing the window did not bring them back. The table skips both measurements
67
+ while hidden and measures when it is shown.
68
+
3
69
  ## 0.15.1 — 2026-10-13
4
70
 
5
71
  ### Breaking
package/components.md CHANGED
@@ -33,7 +33,7 @@ Loaded via `@use 'styles/tokens';` (when the consumer also `@use 'styles/ds';` t
33
33
  **Colour roles:**
34
34
  - Surfaces: `--surface-canvas`, `--surface-default`, `--surface-secondary`, `--surface-overlay`, `--surface-tint`, `--surface-disabled`, `--surface-muted`, `--surface-inverted`, `--surface-inverted-hover`, `--surface-scrim`
35
35
  - Borders: `--border-default`, `--border-strong`, `--border-subtle`, `--border-divider`, `--border-disabled`, `--border-inverted`
36
- - Text: `--text-primary`, `--text-secondary`, `--text-tertiary`, `--text-muted`, `--text-disabled`, `--text-inverted`, `--text-on-primary`, `--text-on-success`, `--text-on-error`
36
+ - Text: `--text-primary`, `--text-secondary`, `--text-tertiary`, `--text-muted`, `--text-disabled`, `--text-inverted`, `--text-link`, `--text-link-visited`, `--text-on-primary`, `--text-on-success`, `--text-on-error`
37
37
  - Icons: `--icon-default`, `--icon-strong`, `--icon-muted`, `--icon-on-primary`
38
38
  - Primary (main brand fill): `--primary`, `--primary-hover`, `--primary-pressed`, `--primary-selected-hover`, `--primary-strong`, `--primary-subtle`, `--primary-muted`, `--primary-muted-strong`, `--primary-on` + HSL channels `--primary-h/s/l`
39
39
  - Secondary (paired CTAs, accent rails, opt-in variants): `--secondary`, `--secondary-hover`, `--secondary-pressed`, `--secondary-strong`, `--secondary-subtle`, `--secondary-muted`, `--secondary-on` + HSL channels `--secondary-h/s/l`
@@ -112,7 +112,7 @@ Responsive 4-tier page grid loaded via `@use 'styles/ds'` (or directly via `@use
112
112
 
113
113
  The DS aggregate (`@use 'styles/ds'`) forwards the full stack: theme primitives + tokens + tokens-charts + fonts + reset + typography + link + layout-utils + page-grid + scrollbar + icon-base + dropdown-overlay. Consumers that only `@use 'styles/tokens'` get pure tokens — **no** font faces, `.link`, typography utilities, `.grid-*`, `.page-grid` / `.col-span-*`, or the dropdown overlay rules — load each partial explicitly (`@use 'styles/fonts'; @use 'styles/link';` …) or switch to the aggregate.
114
114
 
115
- - `.link` — anchor styling, declared in `_link.scss`. Modifiers: `.quiet` `.inline` `.standalone` `.plain` `.xs` `.sm` `.lg`. `.plain` drops the underline until hover or keyboard focus: for a link that stands on its own (a row action, a list of links), never for a link inside running text. Colour from `--ds-link-color` (default `--blue-700`, a light blue in dark); hover→`color-mix(link colour, black 20%)`, active→`color-mix(link colour, black 35%)`, disabled via `[aria-disabled="true"]`. Loaded via `@use 'styles/link'` (included in the `@use 'styles/ds'` aggregate).
115
+ - `.link` — anchor styling, declared in `_link.scss`. Modifiers: `.quiet` `.inline` `.standalone` `.plain` `.xs` `.sm` `.lg`. `.plain` drops the underline until hover or keyboard focus: for a link that stands on its own (a row action, a list of links), never for a link inside running text. Colour from `--ds-link-color` (default `--text-link`), visited from `--ds-link-color-visited` (default `--text-link-visited`); hover→`color-mix(link colour, black 20%)`, active→`color-mix(link colour, black 35%)`, disabled via `[aria-disabled="true"]`. Loaded via `@use 'styles/link'` (included in the `@use 'styles/ds'` aggregate).
116
116
  - Typography utilities (`_typography.scss`): `.t-display`, `.t-h1`, `.t-h2`, `.t-h3`, `.t-h4`, `.t-h5`, `.t-l`, `.t-l-bold`, `.t-m`, `.t-m-bold`, `.t-s`, `.t-s-bold`, `.t-xs`, `.t-xs-bold`, `.t-overline`, `.t-caption`, `.t-mono`, `.t-mono-block`, `.sr-only`
117
117
  - Layout (`_layout-utils.scss`): `.grid-2`, `.grid-3`, `.grid-4`. Breakpoints: at ≤1100px `.grid-4` drops to 3 columns; at ≤820px both `.grid-3` and `.grid-4` drop to 2 columns. Gap is `--space-4`.
118
118
  - Page grid (`_page-grid.scss`): `.page-grid` + `.col-span-1` … `.col-span-12`. 4-tier responsive grid (4 / 8 / 12 / 12 columns); see Foundations → Grid above for the full spec.
@@ -910,7 +910,7 @@ Footer pager: `pageSizeOptions`, `showPageSize`, `showLabel`, `paginationSize: D
910
910
  Tokens: `--ds-table-border: var(--border-default)`, `--ds-table-radius: var(--radius-md)`, `--ds-table-bg-color`, `--ds-table-head-text-color: var(--text-secondary)`, `--ds-table-head-bg-color: var(--surface-secondary)`, `--ds-table-head-font-size: var(--font-size-xs)`, `--ds-table-row-hover-bg-color`, `--ds-table-row-selected-bg-color`, `--ds-table-divider`, `--ds-table-sort-active-icon-color`, `--ds-table-cell-padding-x/y`, `--ds-table-utility-column-width` (the column the column picker and the row-actions ⋮ ride in; default `--space-6`, the buttons' own size, so the column is as wide as its padding makes it) and `--ds-table-utility-column-padding-x` (one length for both sides; default the cell padding chain), `--ds-table-footer-padding-y` / `-top` / `-bottom` (the pagination footer's block padding; default `--space-3`). (Renamed 2026-06: `--ds-table-header-*` → `--ds-table-head-*`, matching the tokens reference.)
911
911
 
912
912
  <!-- inputs:ds-table -->
913
- All inputs: `data: required readonly T[]`, `rowId: ((row: T) => string) | null = null`, `columns: required readonly TableColumn<T>[]`, `selectable: boolean = false`, `bordered: boolean | null = null`, `loading: boolean | 'skeleton' | 'overlay' = false`, `stickyHeader: boolean = true`, `maxHeight: string | null = null`, `density: 'default' | 'compact' = 'default'`, `zebra: boolean = false`, `animateHeight: boolean = false`, `selectedIds: Set<string>`, `sortKey: string | null = null`, `sortDirection: 'asc' | 'desc' = null`, `sortingOrder: SortDirection[]`, `sortAnnouncement: ((label: string, dir: SortDirection) => string) | null = null`, `rangeAnnouncement: ((first: number, last: number, total: number) => string) | null = null`, `skeletonRows: number = 5`, `caption: string = ''`, `rowInteractive: boolean = false`, `activeRowId: string | null = null`, `filterQuery: string = ''`, `columnFilters: Map<string, ReadonlySet<string>>`, `persistLayout: boolean = false`, `storageKey: string = ''`, `stickyScrollbar: boolean | null = null`, `pageSize: number | null = null`, `page: number = 1`, `pageSizeOptions: number[]`, `showPageSize: boolean = true`, `showLabel: boolean = true`, `paginationSize: 'sm' | 'md' | 'lg' = null`, `paginationLayout: 'grouped' | 'spread' = null`, `total: number | null = null`, `scrollToTopOnPageChange: boolean = false`, `sortMode: 'client' | 'server' | 'none' = null`, `filterMode: 'client' | 'server' | 'none' = null`, `columnFilterOptions: ReadonlyMap<string, readonly string[]>`, `stickyScrollbarOffset: string | null = null`, `stickyFirstColumn: boolean = false`, `virtualScroll: boolean = false`, `virtualRowSize: number = 44`, `lazy: boolean = false`, `rowActions: readonly TableRowAction<T>[] = []`, `cellTemplateMap: Record<string, TemplateRef<{ $implicit: unknown; row: unknown }>> = {}`, `emptyTemplate: TemplateRef<unknown> | null = null`, `expandableRows: boolean = false`, `expandedIds: Set<string>`, `expandMode: 'multiple' | 'single' = 'multiple'`, `expandAllToggle: boolean = false`, `rowExpandTemplate: TemplateRef<{
913
+ All inputs: `data: required readonly T[]`, `rowId: ((row: T) => string) | null = null`, `columns: required readonly TableColumn<T>[]`, `selectable: boolean = false`, `bordered: boolean | null = null`, `loading: boolean | 'skeleton' | 'overlay' = false`, `stickyHeader: boolean = true`, `maxHeight: string | null = null`, `density: 'default' | 'compact' = 'default'`, `zebra: boolean = false`, `animateHeight: boolean = false`, `selectedIds: Set<string>`, `sortKey: string | null = null`, `sortDirection: 'asc' | 'desc' = null`, `sortingOrder: SortDirection[]`, `sortAnnouncement: ((label: string, dir: SortDirection) => string) | null = null`, `rangeAnnouncement: ((first: number, last: number, total: number) => string) | null = null`, `skeletonRows: number = 5`, `caption: string = ''`, `rowInteractive: boolean = false`, `activeRowId: string | null = null`, `filterQuery: string = ''`, `columnFilters: Map<string, ReadonlySet<string>>`, `persistLayout: boolean = false`, `storageKey: string = ''`, `stickyScrollbar: boolean | null = null`, `pageSize: number | null = null`, `page: number = 1`, `pageSizeOptions: number[]`, `showPageSize: boolean = true`, `showLabel: boolean = true`, `paginationSize: 'sm' | 'md' | 'lg' = null`, `paginationLayout: 'grouped' | 'spread' = null`, `total: number | null = null`, `scrollToTopOnPageChange: boolean = false`, `sortMode: 'client' | 'server' | 'none' = null`, `filterMode: 'client' | 'server' | 'none' = null`, `columnFilterOptions: ReadonlyMap<string, readonly string[]>`, `stickyScrollbarOffset: string | null = null`, `layout: 'fixed' | 'auto' = null`, `stickyFirstColumn: boolean = false`, `virtualScroll: boolean = false`, `virtualRowSize: number = 44`, `lazy: boolean = false`, `rowActions: readonly TableRowAction<T>[] = []`, `cellTemplateMap: Record<string, TemplateRef<{ $implicit: unknown; row: unknown }>> = {}`, `emptyTemplate: TemplateRef<unknown> | null = null`, `expandableRows: boolean = false`, `expandedIds: Set<string>`, `expandMode: 'multiple' | 'single' = 'multiple'`, `expandAllToggle: boolean = false`, `rowExpandTemplate: TemplateRef<{
914
914
  $implicit: unknown;
915
915
  row: unknown;
916
916
  }> | null = null`
@@ -3,7 +3,7 @@
3
3
 
4
4
  The DS aggregate (`@use 'styles/ds'`) forwards the full stack: theme primitives + tokens + tokens-charts + fonts + reset + typography + link + layout-utils + page-grid + scrollbar + icon-base + dropdown-overlay. Consumers that only `@use 'styles/tokens'` get pure tokens — **no** font faces, `.link`, typography utilities, `.grid-*`, `.page-grid` / `.col-span-*`, or the dropdown overlay rules — load each partial explicitly (`@use 'styles/fonts'; @use 'styles/link';` …) or switch to the aggregate.
5
5
 
6
- - `.link` — anchor styling, declared in `_link.scss`. Modifiers: `.quiet` `.inline` `.standalone` `.plain` `.xs` `.sm` `.lg`. `.plain` drops the underline until hover or keyboard focus: for a link that stands on its own (a row action, a list of links), never for a link inside running text. Colour from `--ds-link-color` (default `--blue-700`, a light blue in dark); hover→`color-mix(link colour, black 20%)`, active→`color-mix(link colour, black 35%)`, disabled via `[aria-disabled="true"]`. Loaded via `@use 'styles/link'` (included in the `@use 'styles/ds'` aggregate).
6
+ - `.link` — anchor styling, declared in `_link.scss`. Modifiers: `.quiet` `.inline` `.standalone` `.plain` `.xs` `.sm` `.lg`. `.plain` drops the underline until hover or keyboard focus: for a link that stands on its own (a row action, a list of links), never for a link inside running text. Colour from `--ds-link-color` (default `--text-link`), visited from `--ds-link-color-visited` (default `--text-link-visited`); hover→`color-mix(link colour, black 20%)`, active→`color-mix(link colour, black 35%)`, disabled via `[aria-disabled="true"]`. Loaded via `@use 'styles/link'` (included in the `@use 'styles/ds'` aggregate).
7
7
  - Typography utilities (`_typography.scss`): `.t-display`, `.t-h1`, `.t-h2`, `.t-h3`, `.t-h4`, `.t-h5`, `.t-l`, `.t-l-bold`, `.t-m`, `.t-m-bold`, `.t-s`, `.t-s-bold`, `.t-xs`, `.t-xs-bold`, `.t-overline`, `.t-caption`, `.t-mono`, `.t-mono-block`, `.sr-only`
8
8
  - Layout (`_layout-utils.scss`): `.grid-2`, `.grid-3`, `.grid-4`. Breakpoints: at ≤1100px `.grid-4` drops to 3 columns; at ≤820px both `.grid-3` and `.grid-4` drop to 2 columns. Gap is `--space-4`.
9
9
  - Page grid (`_page-grid.scss`): `.page-grid` + `.col-span-1` … `.col-span-12`. 4-tier responsive grid (4 / 8 / 12 / 12 columns); see Foundations → Grid above for the full spec.
@@ -6,7 +6,7 @@ Loaded via `@use 'styles/tokens';` (when the consumer also `@use 'styles/ds';` t
6
6
  **Colour roles:**
7
7
  - Surfaces: `--surface-canvas`, `--surface-default`, `--surface-secondary`, `--surface-overlay`, `--surface-tint`, `--surface-disabled`, `--surface-muted`, `--surface-inverted`, `--surface-inverted-hover`, `--surface-scrim`
8
8
  - Borders: `--border-default`, `--border-strong`, `--border-subtle`, `--border-divider`, `--border-disabled`, `--border-inverted`
9
- - Text: `--text-primary`, `--text-secondary`, `--text-tertiary`, `--text-muted`, `--text-disabled`, `--text-inverted`, `--text-on-primary`, `--text-on-success`, `--text-on-error`
9
+ - Text: `--text-primary`, `--text-secondary`, `--text-tertiary`, `--text-muted`, `--text-disabled`, `--text-inverted`, `--text-link`, `--text-link-visited`, `--text-on-primary`, `--text-on-success`, `--text-on-error`
10
10
  - Icons: `--icon-default`, `--icon-strong`, `--icon-muted`, `--icon-on-primary`
11
11
  - Primary (main brand fill): `--primary`, `--primary-hover`, `--primary-pressed`, `--primary-selected-hover`, `--primary-strong`, `--primary-subtle`, `--primary-muted`, `--primary-muted-strong`, `--primary-on` + HSL channels `--primary-h/s/l`
12
12
  - Secondary (paired CTAs, accent rails, opt-in variants): `--secondary`, `--secondary-hover`, `--secondary-pressed`, `--secondary-strong`, `--secondary-subtle`, `--secondary-muted`, `--secondary-on` + HSL channels `--secondary-h/s/l`
@@ -16,7 +16,7 @@ Footer pager: `pageSizeOptions`, `showPageSize`, `showLabel`, `paginationSize: D
16
16
  Tokens: `--ds-table-border: var(--border-default)`, `--ds-table-radius: var(--radius-md)`, `--ds-table-bg-color`, `--ds-table-head-text-color: var(--text-secondary)`, `--ds-table-head-bg-color: var(--surface-secondary)`, `--ds-table-head-font-size: var(--font-size-xs)`, `--ds-table-row-hover-bg-color`, `--ds-table-row-selected-bg-color`, `--ds-table-divider`, `--ds-table-sort-active-icon-color`, `--ds-table-cell-padding-x/y`, `--ds-table-utility-column-width` (the column the column picker and the row-actions ⋮ ride in; default `--space-6`, the buttons' own size, so the column is as wide as its padding makes it) and `--ds-table-utility-column-padding-x` (one length for both sides; default the cell padding chain), `--ds-table-footer-padding-y` / `-top` / `-bottom` (the pagination footer's block padding; default `--space-3`). (Renamed 2026-06: `--ds-table-header-*` → `--ds-table-head-*`, matching the tokens reference.)
17
17
 
18
18
  <!-- inputs:ds-table -->
19
- All inputs: `data: required readonly T[]`, `rowId: ((row: T) => string) | null = null`, `columns: required readonly TableColumn<T>[]`, `selectable: boolean = false`, `bordered: boolean | null = null`, `loading: boolean | 'skeleton' | 'overlay' = false`, `stickyHeader: boolean = true`, `maxHeight: string | null = null`, `density: 'default' | 'compact' = 'default'`, `zebra: boolean = false`, `animateHeight: boolean = false`, `selectedIds: Set<string>`, `sortKey: string | null = null`, `sortDirection: 'asc' | 'desc' = null`, `sortingOrder: SortDirection[]`, `sortAnnouncement: ((label: string, dir: SortDirection) => string) | null = null`, `rangeAnnouncement: ((first: number, last: number, total: number) => string) | null = null`, `skeletonRows: number = 5`, `caption: string = ''`, `rowInteractive: boolean = false`, `activeRowId: string | null = null`, `filterQuery: string = ''`, `columnFilters: Map<string, ReadonlySet<string>>`, `persistLayout: boolean = false`, `storageKey: string = ''`, `stickyScrollbar: boolean | null = null`, `pageSize: number | null = null`, `page: number = 1`, `pageSizeOptions: number[]`, `showPageSize: boolean = true`, `showLabel: boolean = true`, `paginationSize: 'sm' | 'md' | 'lg' = null`, `paginationLayout: 'grouped' | 'spread' = null`, `total: number | null = null`, `scrollToTopOnPageChange: boolean = false`, `sortMode: 'client' | 'server' | 'none' = null`, `filterMode: 'client' | 'server' | 'none' = null`, `columnFilterOptions: ReadonlyMap<string, readonly string[]>`, `stickyScrollbarOffset: string | null = null`, `stickyFirstColumn: boolean = false`, `virtualScroll: boolean = false`, `virtualRowSize: number = 44`, `lazy: boolean = false`, `rowActions: readonly TableRowAction<T>[] = []`, `cellTemplateMap: Record<string, TemplateRef<{ $implicit: unknown; row: unknown }>> = {}`, `emptyTemplate: TemplateRef<unknown> | null = null`, `expandableRows: boolean = false`, `expandedIds: Set<string>`, `expandMode: 'multiple' | 'single' = 'multiple'`, `expandAllToggle: boolean = false`, `rowExpandTemplate: TemplateRef<{
19
+ All inputs: `data: required readonly T[]`, `rowId: ((row: T) => string) | null = null`, `columns: required readonly TableColumn<T>[]`, `selectable: boolean = false`, `bordered: boolean | null = null`, `loading: boolean | 'skeleton' | 'overlay' = false`, `stickyHeader: boolean = true`, `maxHeight: string | null = null`, `density: 'default' | 'compact' = 'default'`, `zebra: boolean = false`, `animateHeight: boolean = false`, `selectedIds: Set<string>`, `sortKey: string | null = null`, `sortDirection: 'asc' | 'desc' = null`, `sortingOrder: SortDirection[]`, `sortAnnouncement: ((label: string, dir: SortDirection) => string) | null = null`, `rangeAnnouncement: ((first: number, last: number, total: number) => string) | null = null`, `skeletonRows: number = 5`, `caption: string = ''`, `rowInteractive: boolean = false`, `activeRowId: string | null = null`, `filterQuery: string = ''`, `columnFilters: Map<string, ReadonlySet<string>>`, `persistLayout: boolean = false`, `storageKey: string = ''`, `stickyScrollbar: boolean | null = null`, `pageSize: number | null = null`, `page: number = 1`, `pageSizeOptions: number[]`, `showPageSize: boolean = true`, `showLabel: boolean = true`, `paginationSize: 'sm' | 'md' | 'lg' = null`, `paginationLayout: 'grouped' | 'spread' = null`, `total: number | null = null`, `scrollToTopOnPageChange: boolean = false`, `sortMode: 'client' | 'server' | 'none' = null`, `filterMode: 'client' | 'server' | 'none' = null`, `columnFilterOptions: ReadonlyMap<string, readonly string[]>`, `stickyScrollbarOffset: string | null = null`, `layout: 'fixed' | 'auto' = null`, `stickyFirstColumn: boolean = false`, `virtualScroll: boolean = false`, `virtualRowSize: number = 44`, `lazy: boolean = false`, `rowActions: readonly TableRowAction<T>[] = []`, `cellTemplateMap: Record<string, TemplateRef<{ $implicit: unknown; row: unknown }>> = {}`, `emptyTemplate: TemplateRef<unknown> | null = null`, `expandableRows: boolean = false`, `expandedIds: Set<string>`, `expandMode: 'multiple' | 'single' = 'multiple'`, `expandAllToggle: boolean = false`, `rowExpandTemplate: TemplateRef<{
20
20
  $implicit: unknown;
21
21
  row: unknown;
22
22
  }> | null = null`
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { InjectionToken, inject, input, booleanAttribute, computed, numberAttribute, output, effect, afterRenderEffect, untracked, ElementRef, signal, NgZone, viewChildren, ChangeDetectionStrategy, ViewEncapsulation, Component, PLATFORM_ID, contentChildren, viewChild, DestroyRef, forwardRef } from '@angular/core';
3
- import { domainMinOf, niceDomain, linearScale, tickValues, roundStepAtLeast, leaveMark, CHART_TOOLTIP_LINGER_MS, chartValueFormat, listenForMarkFocus, CHART_SERIES_COLORS, lineSegments, linePath, areaPath, bandPath, staggerDelay, tweenMarks, formatPercent, markOf, leftMark, nextRovingIndex, focusMark, dimmedBy, DsChartBase, chartRenderGate, CHART_SKELETON_COUNT, skeletonMarkCount, elementWidth, afterTwoFrames, bandScale, rotationWouldFit, labelInterval, chartTiming, rovingMarks, describeShare } from '@ids-group-ltd/ids-design-system/components';
3
+ import { domainMinOf, niceDomain, linearScale, tickValues, roundStepAtLeast, formatPercent, leaveMark, CHART_TOOLTIP_LINGER_MS, chartValueFormat, listenForMarkFocus, CHART_SERIES_COLORS, lineSegments, linePath, areaPath, bandPath, staggerDelay, tweenMarks, markOf, leftMark, nextRovingIndex, focusMark, dimmedBy, DsChartBase, chartRenderGate, CHART_SKELETON_COUNT, skeletonMarkCount, elementWidth, afterTwoFrames, bandScale, rotationWouldFit, labelInterval, chartTiming, rovingMarks, describeShare } from '@ids-group-ltd/ids-design-system/components';
4
4
  import { isPlatformBrowser } from '@angular/common';
5
5
  import { chartActiveMark, CHART_PIN_RADIUS, CHART_PIN_GAP, ChartPinMarkerComponent, CHART_UNPIN_DRAWN_BY_HOST, isPrimaryPress, ChartSkeletonComponent, ChartTooltipDirective, ChartPlacedDirective, ChartStatesComponent } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
6
6
  import { resolveWithConfig, injectDsLocale, DS_INTL_DEFAULTS, DS_INTL } from '@ids-group-ltd/ids-design-system/core';
@@ -294,6 +294,16 @@ function categoryKeys(labels) {
294
294
  return count === 0 ? label : `${label}#${count}`;
295
295
  });
296
296
  }
297
+ /** The change from one reading to the next: its direction, and its percentage, which is `null` from zero. */
298
+ function changeBetween(from, to, locale) {
299
+ const change = to - from;
300
+ return {
301
+ rising: change >= 0,
302
+ label: from === 0
303
+ ? null
304
+ : `${change > 0 ? '+' : ''}${formatPercent(change, Math.abs(from), locale)}`,
305
+ };
306
+ }
297
307
 
298
308
  const CHART_SCALES = new InjectionToken('CHART_SCALES');
299
309
 
@@ -439,7 +449,7 @@ class LineSeriesComponent {
439
449
  highlighted = input(null, ...(ngDevMode ? [{ debugName: "highlighted" }] : /* istanbul ignore next */ []));
440
450
  /** On the hovered reading, thickens the stretches from the reading before it and to the reading
441
451
  * after it, each in its own rising or falling colour (`--ds-chart-positive-color`,
442
- * `--ds-chart-negative-color`) and with its own change in percent. With several series it follows the one singled out: hovered, focused or highlighted. */
452
+ * `--ds-chart-negative-color`) and, unless it starts at zero, with its own change in percent. With several series it follows the one singled out: hovered, focused or highlighted. */
443
453
  showChange = input(false, { ...(ngDevMode ? { debugName: "showChange" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
444
454
  /** A dash pattern per series, in series order. A series past the end, or given `''`, draws solid. */
445
455
  patterns = input([], ...(ngDevMode ? [{ debugName: "patterns" }] : /* istanbul ignore next */ []));
@@ -893,16 +903,14 @@ class LineSeriesComponent {
893
903
  ],
894
904
  ];
895
905
  return stretches.flatMap(([from, to]) => {
896
- if (!from || !to || from.value === 0) {
906
+ if (!from || !to) {
897
907
  return [];
898
908
  }
899
- const change = to.value - from.value;
900
909
  return [
901
910
  {
902
911
  key: `${current.seriesId}-${from.categoryIndex}`,
903
912
  path: linePath([from, to], this.curve()),
904
- rising: change >= 0,
905
- label: `${change > 0 ? '+' : ''}${formatPercent(change, Math.abs(from.value), this.locale)}`,
913
+ ...changeBetween(from.value, to.value, this.locale),
906
914
  x: (from.x + to.x) / 2,
907
915
  y: Math.min(from.y, to.y) - CHANGE_LABEL_GAP,
908
916
  },
@@ -1105,11 +1113,11 @@ class LineSeriesComponent {
1105
1113
  };
1106
1114
  }, ...(ngDevMode ? [{ debugName: "axisTooltipContext" }] : /* istanbul ignore next */ []));
1107
1115
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LineSeriesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1108
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: LineSeriesComponent, isStandalone: true, selector: "g[dsLineSeries]", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, showMarkers: { classPropertyName: "showMarkers", publicName: "showMarkers", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, pinOnClick: { classPropertyName: "pinOnClick", publicName: "pinOnClick", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, highlighted: { classPropertyName: "highlighted", publicName: "highlighted", isSignal: true, isRequired: false, transformFunction: null }, showChange: { classPropertyName: "showChange", publicName: "showChange", isSignal: true, isRequired: false, transformFunction: null }, patterns: { classPropertyName: "patterns", publicName: "patterns", isSignal: true, isRequired: false, transformFunction: null }, stacked: { classPropertyName: "stacked", publicName: "stacked", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, gaps: { classPropertyName: "gaps", publicName: "gaps", isSignal: true, isRequired: false, transformFunction: null }, curve: { classPropertyName: "curve", publicName: "curve", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipAnchor: { classPropertyName: "tooltipAnchor", publicName: "tooltipAnchor", isSignal: true, isRequired: false, transformFunction: null }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked" }, viewQueries: [{ propertyName: "markerElements", predicate: ["markerEl"], descendants: true, isSignal: true }], exportAs: ["dsLineSeries"], ngImport: i0, template: "<svg:g\n class=\"lines\"\n [class.dims-others]=\"dimOthers()\"\n [class.is-outlined]=\"outline()\"\n (pointerover)=\"onMarkerOver($event)\"\n (pointerout)=\"onMarkerOut($event)\"\n (keydown)=\"onMarkerKey($event)\"\n (click)=\"onMarkerClick($event)\">\n @for (entry of plotted(); track entry.series.id) {\n @let fades = entry.series.area === 'fade';\n\n @if (fades && entry.areaPaths.length) {\n <svg:defs>\n <svg:linearGradient\n x1=\"0\"\n x2=\"0\"\n y1=\"0\"\n y2=\"1\"\n [attr.id]=\"fadeId(entry.seriesIndex)\"\n [style.--_series-area-color]=\"entry.color\">\n <svg:stop\n class=\"fade-start\"\n offset=\"0\" />\n\n <svg:stop\n class=\"fade-end\"\n offset=\"1\" />\n </svg:linearGradient>\n </svg:defs>\n }\n\n @for (path of entry.areaPaths; track $index) {\n <svg:path\n class=\"series-area\"\n [attr.data-series-id]=\"entry.series.id\"\n [class.is-fade]=\"fades\"\n [class.is-stacked]=\"stacked()\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-collapsed]=\"entry.series.hidden\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [style.--_series-area-color]=\"entry.color\"\n [style.fill]=\"fades ? 'url(#' + fadeId(entry.seriesIndex) + ')' : null\"\n [attr.d]=\"path\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @if (outline()) {\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-halo\"\n data-morph=\"hold\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.data-series-id]=\"entry.series.id\"\n [class.is-collapsed]=\"entry.series.hidden\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\" />\n }\n }\n }\n\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-line\"\n data-morph=\"line\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-spotlit]=\"isSpotlit(entry.series.id)\"\n [class.is-collapsed]=\"entry.series.hidden\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [attr.data-series-id]=\"entry.series.id\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\"\n [attr.stroke]=\"entry.color\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @for (change of changes(); track change.key) {\n <svg:g\n class=\"change\"\n aria-hidden=\"true\"\n [class.is-falling]=\"!change.rising\"\n (animate.leave)=\"leaveMark($event)\">\n <svg:path\n class=\"change-stretch\"\n [attr.d]=\"change.path\" />\n\n <svg:text\n class=\"change-label\"\n text-anchor=\"middle\"\n [attr.x]=\"change.x\"\n [attr.y]=\"change.y\">\n {{ change.label }}\n </svg:text>\n </svg:g>\n }\n\n @if (\n showMarkers() ||\n interactive() ||\n pins()\n ) {\n @for (entry of plotted(); track entry.series.id) {\n @for (marker of entry.markers; track marker.key) {\n <svg:circle\n #markerEl\n class=\"series-marker\"\n data-morph=\"hold\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-collapsed]=\"marker.hidden\"\n [class.is-out]=\"isOutsideRange(marker.categoryIndex)\"\n [class.ghost]=\"!showMarkers()\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"pins()\"\n [class.is-active]=\"isActiveMarker(marker)\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [attr.fill]=\"entry.color\"\n [attr.data-mark-index]=\"marker.hidden ? null : marker.markIndex\"\n [attr.data-point-key]=\"marker.key\"\n [attr.role]=\"interactive() && !marker.hidden ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() && !marker.hidden\n ? !scales.cursorOn?.() &&\n isTabStop(entry.series.id, marker.markIndex)\n ? 0\n : -1\n : null\n \"\n [attr.aria-label]=\"\n interactive() && !marker.hidden ? markerLabel(marker) : null\n \"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n }\n\n @if (scales.cursorOn?.()) {\n @for (entry of plotted(); track entry.series.id) {\n @if (!entry.series.hidden) {\n <svg:circle\n class=\"travel-marker\"\n aria-hidden=\"true\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.data-series-id]=\"entry.series.id\"\n [attr.fill]=\"entry.color\" />\n }\n }\n }\n\n @for (pinned of pinnedMarkers(); track pinned.index) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' + pinned.value.x + ',' + (pinned.value.y - pinLift) + ')'\n \" />\n }\n</svg:g>\n", styles: ["@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}@keyframes ds-chart-pin-pop{0%{scale:.4;opacity:0}}@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}.series-line:not(.is-dashed){stroke-dasharray:1}.series-line:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line:not(.is-dashed){animation-delay:0ms}}.series-line:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo:not(.is-dashed){stroke-dasharray:1}.series-halo:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo:not(.is-dashed){animation-delay:0ms}}.series-halo:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-line.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line.is-dashed{animation-delay:0ms}}.series-line.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo.is-dashed{animation-delay:0ms}}.series-halo.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-area{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--duration-base) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-area{animation-delay:0ms}}.series-area.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-marker{animation:ds-chart-mark-settle var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-marker{animation-delay:0ms}}@media not (forced-colors:active){.series-marker:focus{outline:none}}.series-marker.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.lines{--_chart-line-width: var(--ds-chart-line-width);--_chart-line-width-bold: var(--ds-chart-line-width-bold);--_chart-dot-radius: var(--ds-chart-dot-radius);--_chart-dot-radius-active: var(--ds-chart-dot-radius-active);--_chart-area-opacity: var(--ds-chart-area-opacity)}.series-line{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),d var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),stroke-width var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke-dashoffset var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing)}.series-line.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),cx var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),cy var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),r var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-marker.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker.interactive,.series-marker.pins{cursor:pointer}.series-area{transition:d var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing);fill:var(--ds-chart-area-color, var(--_series-area-color));fill-opacity:var(--_chart-area-opacity);stroke:none}.series-area.is-fade{fill-opacity:1}.fade-start,.fade-end{stop-color:var(--ds-chart-area-color, var(--_series-area-color))}.fade-start{stop-opacity:var(--ds-chart-area-fade-opacity)}.fade-end{stop-opacity:0}.series-area.is-stacked{stroke:var(--ds-chart-bg-color);stroke-width:2;stroke-linejoin:round}.series-line.is-spotlit{stroke-width:var(--_chart-line-width-bold)}.series-line.is-collapsed:not(.is-dashed),.series-halo.is-collapsed:not(.is-dashed){stroke-dashoffset:1}.series-line.is-collapsed.is-dashed,.series-halo.is-collapsed.is-dashed,.series-area.is-collapsed,.series-marker.is-collapsed{opacity:0;pointer-events:none}.series-marker.is-out{opacity:var(--ds-chart-dim-opacity)}.travel-marker{r:var(--_chart-dot-radius-active);opacity:0;pointer-events:none;transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.travel-marker.is-shown{opacity:1}.travel-marker.is-shown.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.lines.is-outlined .travel-marker{stroke:var(--ds-chart-bg-color);stroke-width:var(--_chart-line-outline, 3px);paint-order:stroke}.change{--_chart-change-label-color: var(--success-text);pointer-events:none;animation:ds-chart-mark-fade-in var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) backwards}.change.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.change-stretch{fill:none;stroke:var(--ds-chart-positive-color);stroke-width:calc(2 * var(--_chart-line-width));stroke-linecap:round;stroke-linejoin:round}.change.is-falling .change-stretch{stroke:var(--ds-chart-negative-color)}.change.is-falling{--_chart-change-label-color: var(--error-text)}.change-label{fill:var(--_chart-change-label-color);font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);paint-order:stroke;stroke:var(--ds-chart-bg-color);stroke-width:3px;stroke-linejoin:round}@media(forced-colors:active){.change-label{fill:CanvasText;stroke:Canvas}}.series-halo{transition:stroke-dashoffset var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing),opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing);fill:none;stroke:var(--ds-chart-bg-color);stroke-width:calc(var(--_chart-line-width) + var(--_chart-line-outline, 3px));stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-halo.is-dimmed{opacity:0}.series-line{fill:none;stroke-width:var(--_chart-line-width);stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-marker{transform-box:fill-box;transform-origin:center;r:var(--_chart-dot-radius)}.lines.is-outlined .series-marker{stroke:var(--ds-chart-bg-color);stroke-width:var(--_chart-line-outline, 3px);paint-order:stroke}.series-marker.ghost{fill-opacity:0}.series-marker.ghost:hover,.series-marker.ghost:focus-visible,.series-marker.ghost.is-active{fill-opacity:1}.series-marker.is-active{r:var(--_chart-dot-radius-active)}.series-marker.interactive{stroke:transparent;stroke-width:24px;vector-effect:non-scaling-stroke}@media(pointer:coarse){.series-marker.interactive{stroke-width:44px}}@media not (forced-colors:active){.series-marker.interactive:focus-visible{outline:none}}.series-marker.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color, var(--ds-chart-bg-color)));r:var(--_chart-dot-radius-active)}@media(forced-colors:active){.series-line{stroke:CanvasText}.series-marker{fill:CanvasText}}\n"], dependencies: [{ kind: "component", type: ChartPinMarkerComponent, selector: "g[dsChartPinMarker]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1116
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: LineSeriesComponent, isStandalone: true, selector: "g[dsLineSeries]", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, showMarkers: { classPropertyName: "showMarkers", publicName: "showMarkers", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, pinOnClick: { classPropertyName: "pinOnClick", publicName: "pinOnClick", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, highlighted: { classPropertyName: "highlighted", publicName: "highlighted", isSignal: true, isRequired: false, transformFunction: null }, showChange: { classPropertyName: "showChange", publicName: "showChange", isSignal: true, isRequired: false, transformFunction: null }, patterns: { classPropertyName: "patterns", publicName: "patterns", isSignal: true, isRequired: false, transformFunction: null }, stacked: { classPropertyName: "stacked", publicName: "stacked", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, gaps: { classPropertyName: "gaps", publicName: "gaps", isSignal: true, isRequired: false, transformFunction: null }, curve: { classPropertyName: "curve", publicName: "curve", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipAnchor: { classPropertyName: "tooltipAnchor", publicName: "tooltipAnchor", isSignal: true, isRequired: false, transformFunction: null }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked" }, viewQueries: [{ propertyName: "markerElements", predicate: ["markerEl"], descendants: true, isSignal: true }], exportAs: ["dsLineSeries"], ngImport: i0, template: "<svg:g\n class=\"lines\"\n [class.dims-others]=\"dimOthers()\"\n [class.is-outlined]=\"outline()\"\n (pointerover)=\"onMarkerOver($event)\"\n (pointerout)=\"onMarkerOut($event)\"\n (keydown)=\"onMarkerKey($event)\"\n (click)=\"onMarkerClick($event)\">\n @for (entry of plotted(); track entry.series.id) {\n @let fades = entry.series.area === 'fade';\n\n @if (fades && entry.areaPaths.length) {\n <svg:defs>\n <svg:linearGradient\n x1=\"0\"\n x2=\"0\"\n y1=\"0\"\n y2=\"1\"\n [attr.id]=\"fadeId(entry.seriesIndex)\"\n [style.--_series-area-color]=\"entry.color\">\n <svg:stop\n class=\"fade-start\"\n offset=\"0\" />\n\n <svg:stop\n class=\"fade-end\"\n offset=\"1\" />\n </svg:linearGradient>\n </svg:defs>\n }\n\n @for (path of entry.areaPaths; track $index) {\n <svg:path\n class=\"series-area\"\n [attr.data-series-id]=\"entry.series.id\"\n [class.is-fade]=\"fades\"\n [class.is-stacked]=\"stacked()\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-collapsed]=\"entry.series.hidden\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [style.--_series-area-color]=\"entry.color\"\n [style.fill]=\"fades ? 'url(#' + fadeId(entry.seriesIndex) + ')' : null\"\n [attr.d]=\"path\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @if (outline()) {\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-halo\"\n data-morph=\"hold\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.data-series-id]=\"entry.series.id\"\n [class.is-collapsed]=\"entry.series.hidden\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\" />\n }\n }\n }\n\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-line\"\n data-morph=\"line\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-spotlit]=\"isSpotlit(entry.series.id)\"\n [class.is-collapsed]=\"entry.series.hidden\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [attr.data-series-id]=\"entry.series.id\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\"\n [attr.stroke]=\"entry.color\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @for (change of changes(); track change.key) {\n <svg:g\n class=\"change\"\n aria-hidden=\"true\"\n [class.is-falling]=\"!change.rising\"\n (animate.leave)=\"leaveMark($event)\">\n <svg:path\n class=\"change-stretch\"\n [attr.d]=\"change.path\" />\n\n @if (change.label) {\n <svg:text\n class=\"change-label\"\n text-anchor=\"middle\"\n [attr.x]=\"change.x\"\n [attr.y]=\"change.y\">\n {{ change.label }}\n </svg:text>\n }\n </svg:g>\n }\n\n @if (\n showMarkers() ||\n interactive() ||\n pins()\n ) {\n @for (entry of plotted(); track entry.series.id) {\n @for (marker of entry.markers; track marker.key) {\n <svg:circle\n #markerEl\n class=\"series-marker\"\n data-morph=\"hold\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-collapsed]=\"marker.hidden\"\n [class.is-out]=\"isOutsideRange(marker.categoryIndex)\"\n [class.ghost]=\"!showMarkers()\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"pins()\"\n [class.is-active]=\"isActiveMarker(marker)\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [attr.fill]=\"entry.color\"\n [attr.data-mark-index]=\"marker.hidden ? null : marker.markIndex\"\n [attr.data-point-key]=\"marker.key\"\n [attr.role]=\"interactive() && !marker.hidden ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() && !marker.hidden\n ? !scales.cursorOn?.() &&\n isTabStop(entry.series.id, marker.markIndex)\n ? 0\n : -1\n : null\n \"\n [attr.aria-label]=\"\n interactive() && !marker.hidden ? markerLabel(marker) : null\n \"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n }\n\n @if (scales.cursorOn?.()) {\n @for (entry of plotted(); track entry.series.id) {\n @if (!entry.series.hidden) {\n <svg:circle\n class=\"travel-marker\"\n aria-hidden=\"true\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.data-series-id]=\"entry.series.id\"\n [attr.fill]=\"entry.color\" />\n }\n }\n }\n\n @for (pinned of pinnedMarkers(); track pinned.index) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' + pinned.value.x + ',' + (pinned.value.y - pinLift) + ')'\n \" />\n }\n</svg:g>\n", styles: ["@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}@keyframes ds-chart-pin-pop{0%{scale:.4;opacity:0}}@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}.series-line:not(.is-dashed){stroke-dasharray:1}.series-line:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line:not(.is-dashed){animation-delay:0ms}}.series-line:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo:not(.is-dashed){stroke-dasharray:1}.series-halo:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo:not(.is-dashed){animation-delay:0ms}}.series-halo:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-line.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line.is-dashed{animation-delay:0ms}}.series-line.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo.is-dashed{animation-delay:0ms}}.series-halo.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-area{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--duration-base) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-area{animation-delay:0ms}}.series-area.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-marker{animation:ds-chart-mark-settle var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-marker{animation-delay:0ms}}@media not (forced-colors:active){.series-marker:focus{outline:none}}.series-marker.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.change{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.change{animation-delay:0ms}}.change.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.lines{--_chart-line-width: var(--ds-chart-line-width);--_chart-line-width-bold: var(--ds-chart-line-width-bold);--_chart-dot-radius: var(--ds-chart-dot-radius);--_chart-dot-radius-active: var(--ds-chart-dot-radius-active);--_chart-area-opacity: var(--ds-chart-area-opacity)}.series-line{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),d var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),stroke-width var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke-dashoffset var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing)}.series-line.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),cx var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),cy var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),r var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-marker.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker.interactive,.series-marker.pins{cursor:pointer}.series-area{transition:d var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing);fill:var(--ds-chart-area-color, var(--_series-area-color));fill-opacity:var(--_chart-area-opacity);stroke:none}.series-area.is-fade{fill-opacity:1}.fade-start,.fade-end{stop-color:var(--ds-chart-area-color, var(--_series-area-color))}.fade-start{stop-opacity:var(--ds-chart-area-fade-opacity)}.fade-end{stop-opacity:0}.series-area.is-stacked{stroke:var(--ds-chart-bg-color);stroke-width:2;stroke-linejoin:round}.series-line.is-spotlit{stroke-width:var(--_chart-line-width-bold)}.series-line.is-collapsed:not(.is-dashed),.series-halo.is-collapsed:not(.is-dashed){stroke-dashoffset:1}.series-line.is-collapsed.is-dashed,.series-halo.is-collapsed.is-dashed,.series-area.is-collapsed,.series-marker.is-collapsed{opacity:0;pointer-events:none}.series-marker.is-out{opacity:var(--ds-chart-dim-opacity)}.travel-marker{r:var(--_chart-dot-radius-active);opacity:0;pointer-events:none;transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.travel-marker.is-shown{opacity:1}.travel-marker.is-shown.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.lines.is-outlined .travel-marker{stroke:var(--ds-chart-bg-color);stroke-width:var(--_chart-line-outline, 3px);paint-order:stroke}.change{--_chart-change-label-color: var(--success-text);pointer-events:none}.change-stretch{fill:none;stroke:var(--ds-chart-positive-color);stroke-width:calc(2 * var(--_chart-line-width));stroke-linecap:round;stroke-linejoin:round}.change.is-falling .change-stretch{stroke:var(--ds-chart-negative-color)}.change.is-falling{--_chart-change-label-color: var(--error-text)}.change-label{fill:var(--_chart-change-label-color);font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);paint-order:stroke;stroke:var(--ds-chart-bg-color);stroke-width:3px;stroke-linejoin:round}@media(forced-colors:active){.change-label{fill:CanvasText;stroke:Canvas}}.series-halo{transition:stroke-dashoffset var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing),opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing);fill:none;stroke:var(--ds-chart-bg-color);stroke-width:calc(var(--_chart-line-width) + var(--_chart-line-outline, 3px));stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-halo.is-dimmed{opacity:0}.series-line{fill:none;stroke-width:var(--_chart-line-width);stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-marker{transform-box:fill-box;transform-origin:center;r:var(--_chart-dot-radius)}.lines.is-outlined .series-marker{stroke:var(--ds-chart-bg-color);stroke-width:var(--_chart-line-outline, 3px);paint-order:stroke}.series-marker.ghost{fill-opacity:0}.series-marker.ghost:hover,.series-marker.ghost:focus-visible,.series-marker.ghost.is-active{fill-opacity:1}.series-marker.is-active{r:var(--_chart-dot-radius-active)}.series-marker.interactive{stroke:transparent;stroke-width:24px;vector-effect:non-scaling-stroke}@media(pointer:coarse){.series-marker.interactive{stroke-width:44px}}@media not (forced-colors:active){.series-marker.interactive:focus-visible{outline:none}}.series-marker.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color, var(--ds-chart-bg-color)));r:var(--_chart-dot-radius-active)}@media(forced-colors:active){.series-line{stroke:CanvasText}.series-marker{fill:CanvasText}}\n"], dependencies: [{ kind: "component", type: ChartPinMarkerComponent, selector: "g[dsChartPinMarker]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1109
1117
  }
1110
1118
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LineSeriesComponent, decorators: [{
1111
1119
  type: Component,
1112
- args: [{ selector: 'g[dsLineSeries]', standalone: true, imports: [ChartPinMarkerComponent], exportAs: 'dsLineSeries', encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg:g\n class=\"lines\"\n [class.dims-others]=\"dimOthers()\"\n [class.is-outlined]=\"outline()\"\n (pointerover)=\"onMarkerOver($event)\"\n (pointerout)=\"onMarkerOut($event)\"\n (keydown)=\"onMarkerKey($event)\"\n (click)=\"onMarkerClick($event)\">\n @for (entry of plotted(); track entry.series.id) {\n @let fades = entry.series.area === 'fade';\n\n @if (fades && entry.areaPaths.length) {\n <svg:defs>\n <svg:linearGradient\n x1=\"0\"\n x2=\"0\"\n y1=\"0\"\n y2=\"1\"\n [attr.id]=\"fadeId(entry.seriesIndex)\"\n [style.--_series-area-color]=\"entry.color\">\n <svg:stop\n class=\"fade-start\"\n offset=\"0\" />\n\n <svg:stop\n class=\"fade-end\"\n offset=\"1\" />\n </svg:linearGradient>\n </svg:defs>\n }\n\n @for (path of entry.areaPaths; track $index) {\n <svg:path\n class=\"series-area\"\n [attr.data-series-id]=\"entry.series.id\"\n [class.is-fade]=\"fades\"\n [class.is-stacked]=\"stacked()\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-collapsed]=\"entry.series.hidden\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [style.--_series-area-color]=\"entry.color\"\n [style.fill]=\"fades ? 'url(#' + fadeId(entry.seriesIndex) + ')' : null\"\n [attr.d]=\"path\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @if (outline()) {\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-halo\"\n data-morph=\"hold\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.data-series-id]=\"entry.series.id\"\n [class.is-collapsed]=\"entry.series.hidden\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\" />\n }\n }\n }\n\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-line\"\n data-morph=\"line\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-spotlit]=\"isSpotlit(entry.series.id)\"\n [class.is-collapsed]=\"entry.series.hidden\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [attr.data-series-id]=\"entry.series.id\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\"\n [attr.stroke]=\"entry.color\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @for (change of changes(); track change.key) {\n <svg:g\n class=\"change\"\n aria-hidden=\"true\"\n [class.is-falling]=\"!change.rising\"\n (animate.leave)=\"leaveMark($event)\">\n <svg:path\n class=\"change-stretch\"\n [attr.d]=\"change.path\" />\n\n <svg:text\n class=\"change-label\"\n text-anchor=\"middle\"\n [attr.x]=\"change.x\"\n [attr.y]=\"change.y\">\n {{ change.label }}\n </svg:text>\n </svg:g>\n }\n\n @if (\n showMarkers() ||\n interactive() ||\n pins()\n ) {\n @for (entry of plotted(); track entry.series.id) {\n @for (marker of entry.markers; track marker.key) {\n <svg:circle\n #markerEl\n class=\"series-marker\"\n data-morph=\"hold\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-collapsed]=\"marker.hidden\"\n [class.is-out]=\"isOutsideRange(marker.categoryIndex)\"\n [class.ghost]=\"!showMarkers()\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"pins()\"\n [class.is-active]=\"isActiveMarker(marker)\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [attr.fill]=\"entry.color\"\n [attr.data-mark-index]=\"marker.hidden ? null : marker.markIndex\"\n [attr.data-point-key]=\"marker.key\"\n [attr.role]=\"interactive() && !marker.hidden ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() && !marker.hidden\n ? !scales.cursorOn?.() &&\n isTabStop(entry.series.id, marker.markIndex)\n ? 0\n : -1\n : null\n \"\n [attr.aria-label]=\"\n interactive() && !marker.hidden ? markerLabel(marker) : null\n \"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n }\n\n @if (scales.cursorOn?.()) {\n @for (entry of plotted(); track entry.series.id) {\n @if (!entry.series.hidden) {\n <svg:circle\n class=\"travel-marker\"\n aria-hidden=\"true\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.data-series-id]=\"entry.series.id\"\n [attr.fill]=\"entry.color\" />\n }\n }\n }\n\n @for (pinned of pinnedMarkers(); track pinned.index) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' + pinned.value.x + ',' + (pinned.value.y - pinLift) + ')'\n \" />\n }\n</svg:g>\n", styles: ["@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}@keyframes ds-chart-pin-pop{0%{scale:.4;opacity:0}}@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}.series-line:not(.is-dashed){stroke-dasharray:1}.series-line:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line:not(.is-dashed){animation-delay:0ms}}.series-line:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo:not(.is-dashed){stroke-dasharray:1}.series-halo:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo:not(.is-dashed){animation-delay:0ms}}.series-halo:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-line.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line.is-dashed{animation-delay:0ms}}.series-line.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo.is-dashed{animation-delay:0ms}}.series-halo.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-area{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--duration-base) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-area{animation-delay:0ms}}.series-area.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-marker{animation:ds-chart-mark-settle var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-marker{animation-delay:0ms}}@media not (forced-colors:active){.series-marker:focus{outline:none}}.series-marker.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.lines{--_chart-line-width: var(--ds-chart-line-width);--_chart-line-width-bold: var(--ds-chart-line-width-bold);--_chart-dot-radius: var(--ds-chart-dot-radius);--_chart-dot-radius-active: var(--ds-chart-dot-radius-active);--_chart-area-opacity: var(--ds-chart-area-opacity)}.series-line{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),d var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),stroke-width var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke-dashoffset var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing)}.series-line.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),cx var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),cy var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),r var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-marker.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker.interactive,.series-marker.pins{cursor:pointer}.series-area{transition:d var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing);fill:var(--ds-chart-area-color, var(--_series-area-color));fill-opacity:var(--_chart-area-opacity);stroke:none}.series-area.is-fade{fill-opacity:1}.fade-start,.fade-end{stop-color:var(--ds-chart-area-color, var(--_series-area-color))}.fade-start{stop-opacity:var(--ds-chart-area-fade-opacity)}.fade-end{stop-opacity:0}.series-area.is-stacked{stroke:var(--ds-chart-bg-color);stroke-width:2;stroke-linejoin:round}.series-line.is-spotlit{stroke-width:var(--_chart-line-width-bold)}.series-line.is-collapsed:not(.is-dashed),.series-halo.is-collapsed:not(.is-dashed){stroke-dashoffset:1}.series-line.is-collapsed.is-dashed,.series-halo.is-collapsed.is-dashed,.series-area.is-collapsed,.series-marker.is-collapsed{opacity:0;pointer-events:none}.series-marker.is-out{opacity:var(--ds-chart-dim-opacity)}.travel-marker{r:var(--_chart-dot-radius-active);opacity:0;pointer-events:none;transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.travel-marker.is-shown{opacity:1}.travel-marker.is-shown.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.lines.is-outlined .travel-marker{stroke:var(--ds-chart-bg-color);stroke-width:var(--_chart-line-outline, 3px);paint-order:stroke}.change{--_chart-change-label-color: var(--success-text);pointer-events:none;animation:ds-chart-mark-fade-in var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) backwards}.change.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.change-stretch{fill:none;stroke:var(--ds-chart-positive-color);stroke-width:calc(2 * var(--_chart-line-width));stroke-linecap:round;stroke-linejoin:round}.change.is-falling .change-stretch{stroke:var(--ds-chart-negative-color)}.change.is-falling{--_chart-change-label-color: var(--error-text)}.change-label{fill:var(--_chart-change-label-color);font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);paint-order:stroke;stroke:var(--ds-chart-bg-color);stroke-width:3px;stroke-linejoin:round}@media(forced-colors:active){.change-label{fill:CanvasText;stroke:Canvas}}.series-halo{transition:stroke-dashoffset var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing),opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing);fill:none;stroke:var(--ds-chart-bg-color);stroke-width:calc(var(--_chart-line-width) + var(--_chart-line-outline, 3px));stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-halo.is-dimmed{opacity:0}.series-line{fill:none;stroke-width:var(--_chart-line-width);stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-marker{transform-box:fill-box;transform-origin:center;r:var(--_chart-dot-radius)}.lines.is-outlined .series-marker{stroke:var(--ds-chart-bg-color);stroke-width:var(--_chart-line-outline, 3px);paint-order:stroke}.series-marker.ghost{fill-opacity:0}.series-marker.ghost:hover,.series-marker.ghost:focus-visible,.series-marker.ghost.is-active{fill-opacity:1}.series-marker.is-active{r:var(--_chart-dot-radius-active)}.series-marker.interactive{stroke:transparent;stroke-width:24px;vector-effect:non-scaling-stroke}@media(pointer:coarse){.series-marker.interactive{stroke-width:44px}}@media not (forced-colors:active){.series-marker.interactive:focus-visible{outline:none}}.series-marker.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color, var(--ds-chart-bg-color)));r:var(--_chart-dot-radius-active)}@media(forced-colors:active){.series-line{stroke:CanvasText}.series-marker{fill:CanvasText}}\n"] }]
1120
+ args: [{ selector: 'g[dsLineSeries]', standalone: true, imports: [ChartPinMarkerComponent], exportAs: 'dsLineSeries', encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg:g\n class=\"lines\"\n [class.dims-others]=\"dimOthers()\"\n [class.is-outlined]=\"outline()\"\n (pointerover)=\"onMarkerOver($event)\"\n (pointerout)=\"onMarkerOut($event)\"\n (keydown)=\"onMarkerKey($event)\"\n (click)=\"onMarkerClick($event)\">\n @for (entry of plotted(); track entry.series.id) {\n @let fades = entry.series.area === 'fade';\n\n @if (fades && entry.areaPaths.length) {\n <svg:defs>\n <svg:linearGradient\n x1=\"0\"\n x2=\"0\"\n y1=\"0\"\n y2=\"1\"\n [attr.id]=\"fadeId(entry.seriesIndex)\"\n [style.--_series-area-color]=\"entry.color\">\n <svg:stop\n class=\"fade-start\"\n offset=\"0\" />\n\n <svg:stop\n class=\"fade-end\"\n offset=\"1\" />\n </svg:linearGradient>\n </svg:defs>\n }\n\n @for (path of entry.areaPaths; track $index) {\n <svg:path\n class=\"series-area\"\n [attr.data-series-id]=\"entry.series.id\"\n [class.is-fade]=\"fades\"\n [class.is-stacked]=\"stacked()\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-collapsed]=\"entry.series.hidden\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [style.--_series-area-color]=\"entry.color\"\n [style.fill]=\"fades ? 'url(#' + fadeId(entry.seriesIndex) + ')' : null\"\n [attr.d]=\"path\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @if (outline()) {\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-halo\"\n data-morph=\"hold\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.data-series-id]=\"entry.series.id\"\n [class.is-collapsed]=\"entry.series.hidden\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\" />\n }\n }\n }\n\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-line\"\n data-morph=\"line\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-spotlit]=\"isSpotlit(entry.series.id)\"\n [class.is-collapsed]=\"entry.series.hidden\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [attr.data-series-id]=\"entry.series.id\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\"\n [attr.stroke]=\"entry.color\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @for (change of changes(); track change.key) {\n <svg:g\n class=\"change\"\n aria-hidden=\"true\"\n [class.is-falling]=\"!change.rising\"\n (animate.leave)=\"leaveMark($event)\">\n <svg:path\n class=\"change-stretch\"\n [attr.d]=\"change.path\" />\n\n @if (change.label) {\n <svg:text\n class=\"change-label\"\n text-anchor=\"middle\"\n [attr.x]=\"change.x\"\n [attr.y]=\"change.y\">\n {{ change.label }}\n </svg:text>\n }\n </svg:g>\n }\n\n @if (\n showMarkers() ||\n interactive() ||\n pins()\n ) {\n @for (entry of plotted(); track entry.series.id) {\n @for (marker of entry.markers; track marker.key) {\n <svg:circle\n #markerEl\n class=\"series-marker\"\n data-morph=\"hold\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-collapsed]=\"marker.hidden\"\n [class.is-out]=\"isOutsideRange(marker.categoryIndex)\"\n [class.ghost]=\"!showMarkers()\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"pins()\"\n [class.is-active]=\"isActiveMarker(marker)\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [attr.fill]=\"entry.color\"\n [attr.data-mark-index]=\"marker.hidden ? null : marker.markIndex\"\n [attr.data-point-key]=\"marker.key\"\n [attr.role]=\"interactive() && !marker.hidden ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() && !marker.hidden\n ? !scales.cursorOn?.() &&\n isTabStop(entry.series.id, marker.markIndex)\n ? 0\n : -1\n : null\n \"\n [attr.aria-label]=\"\n interactive() && !marker.hidden ? markerLabel(marker) : null\n \"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n }\n\n @if (scales.cursorOn?.()) {\n @for (entry of plotted(); track entry.series.id) {\n @if (!entry.series.hidden) {\n <svg:circle\n class=\"travel-marker\"\n aria-hidden=\"true\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.data-series-id]=\"entry.series.id\"\n [attr.fill]=\"entry.color\" />\n }\n }\n }\n\n @for (pinned of pinnedMarkers(); track pinned.index) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' + pinned.value.x + ',' + (pinned.value.y - pinLift) + ')'\n \" />\n }\n</svg:g>\n", styles: ["@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}@keyframes ds-chart-pin-pop{0%{scale:.4;opacity:0}}@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}.series-line:not(.is-dashed){stroke-dasharray:1}.series-line:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line:not(.is-dashed){animation-delay:0ms}}.series-line:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo:not(.is-dashed){stroke-dasharray:1}.series-halo:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo:not(.is-dashed){animation-delay:0ms}}.series-halo:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-line.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line.is-dashed{animation-delay:0ms}}.series-line.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo.is-dashed{animation-delay:0ms}}.series-halo.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-area{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--duration-base) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-area{animation-delay:0ms}}.series-area.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-marker{animation:ds-chart-mark-settle var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-marker{animation-delay:0ms}}@media not (forced-colors:active){.series-marker:focus{outline:none}}.series-marker.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.change{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.change{animation-delay:0ms}}.change.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.lines{--_chart-line-width: var(--ds-chart-line-width);--_chart-line-width-bold: var(--ds-chart-line-width-bold);--_chart-dot-radius: var(--ds-chart-dot-radius);--_chart-dot-radius-active: var(--ds-chart-dot-radius-active);--_chart-area-opacity: var(--ds-chart-area-opacity)}.series-line{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),d var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),stroke-width var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke-dashoffset var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing)}.series-line.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),cx var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),cy var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),r var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-marker.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker.interactive,.series-marker.pins{cursor:pointer}.series-area{transition:d var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing);fill:var(--ds-chart-area-color, var(--_series-area-color));fill-opacity:var(--_chart-area-opacity);stroke:none}.series-area.is-fade{fill-opacity:1}.fade-start,.fade-end{stop-color:var(--ds-chart-area-color, var(--_series-area-color))}.fade-start{stop-opacity:var(--ds-chart-area-fade-opacity)}.fade-end{stop-opacity:0}.series-area.is-stacked{stroke:var(--ds-chart-bg-color);stroke-width:2;stroke-linejoin:round}.series-line.is-spotlit{stroke-width:var(--_chart-line-width-bold)}.series-line.is-collapsed:not(.is-dashed),.series-halo.is-collapsed:not(.is-dashed){stroke-dashoffset:1}.series-line.is-collapsed.is-dashed,.series-halo.is-collapsed.is-dashed,.series-area.is-collapsed,.series-marker.is-collapsed{opacity:0;pointer-events:none}.series-marker.is-out{opacity:var(--ds-chart-dim-opacity)}.travel-marker{r:var(--_chart-dot-radius-active);opacity:0;pointer-events:none;transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.travel-marker.is-shown{opacity:1}.travel-marker.is-shown.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.lines.is-outlined .travel-marker{stroke:var(--ds-chart-bg-color);stroke-width:var(--_chart-line-outline, 3px);paint-order:stroke}.change{--_chart-change-label-color: var(--success-text);pointer-events:none}.change-stretch{fill:none;stroke:var(--ds-chart-positive-color);stroke-width:calc(2 * var(--_chart-line-width));stroke-linecap:round;stroke-linejoin:round}.change.is-falling .change-stretch{stroke:var(--ds-chart-negative-color)}.change.is-falling{--_chart-change-label-color: var(--error-text)}.change-label{fill:var(--_chart-change-label-color);font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);paint-order:stroke;stroke:var(--ds-chart-bg-color);stroke-width:3px;stroke-linejoin:round}@media(forced-colors:active){.change-label{fill:CanvasText;stroke:Canvas}}.series-halo{transition:stroke-dashoffset var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing),opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing);fill:none;stroke:var(--ds-chart-bg-color);stroke-width:calc(var(--_chart-line-width) + var(--_chart-line-outline, 3px));stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-halo.is-dimmed{opacity:0}.series-line{fill:none;stroke-width:var(--_chart-line-width);stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-marker{transform-box:fill-box;transform-origin:center;r:var(--_chart-dot-radius)}.lines.is-outlined .series-marker{stroke:var(--ds-chart-bg-color);stroke-width:var(--_chart-line-outline, 3px);paint-order:stroke}.series-marker.ghost{fill-opacity:0}.series-marker.ghost:hover,.series-marker.ghost:focus-visible,.series-marker.ghost.is-active{fill-opacity:1}.series-marker.is-active{r:var(--_chart-dot-radius-active)}.series-marker.interactive{stroke:transparent;stroke-width:24px;vector-effect:non-scaling-stroke}@media(pointer:coarse){.series-marker.interactive{stroke-width:44px}}@media not (forced-colors:active){.series-marker.interactive:focus-visible{outline:none}}.series-marker.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color, var(--ds-chart-bg-color)));r:var(--_chart-dot-radius-active)}@media(forced-colors:active){.series-line{stroke:CanvasText}.series-marker{fill:CanvasText}}\n"] }]
1113
1121
  }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], showMarkers: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMarkers", required: false }] }], outline: [{ type: i0.Input, args: [{ isSignal: true, alias: "outline", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], pinOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "pinOnClick", required: false }] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], highlighted: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlighted", required: false }] }], showChange: [{ type: i0.Input, args: [{ isSignal: true, alias: "showChange", required: false }] }], patterns: [{ type: i0.Input, args: [{ isSignal: true, alias: "patterns", required: false }] }], stacked: [{ type: i0.Input, args: [{ isSignal: true, alias: "stacked", required: false }] }], staggerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "staggerMs", required: false }] }], gaps: [{ type: i0.Input, args: [{ isSignal: true, alias: "gaps", required: false }] }], curve: [{ type: i0.Input, args: [{ isSignal: true, alias: "curve", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipAnchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipAnchor", required: false }] }], tooltipLingerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipLingerMs", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], pointClicked: [{ type: i0.Output, args: ["pointClicked"] }], markerElements: [{ type: i0.ViewChildren, args: ['markerEl', { isSignal: true }] }] } });
1114
1122
 
1115
1123
  // Between the value axis and the pill that prints the reading there.