ngwr 16.3.0 → 16.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/carousel/styles/_index.scss +53 -1
- package/charts/bar-chart/styles/_index.scss +494 -305
- package/charts/boxplot-chart/styles/_index.scss +114 -48
- package/charts/bullet-chart/styles/_index.scss +113 -42
- package/charts/calendar-heatmap/styles/_index.scss +111 -20
- package/charts/candlestick-chart/styles/_index.scss +61 -26
- package/charts/chart-legend/styles/_index.scss +119 -1
- package/charts/core/styles/_index.scss +201 -5
- package/charts/donut-chart/styles/_index.scss +76 -21
- package/charts/funnel-chart/styles/_index.scss +66 -38
- package/charts/gauge/styles/_index.scss +12 -1
- package/charts/heatmap-chart/styles/_index.scss +90 -53
- package/charts/line-chart/styles/_index.scss +143 -139
- package/charts/meter-group/styles/_index.scss +87 -25
- package/charts/radar-chart/styles/_index.scss +82 -40
- package/charts/scatter-chart/styles/_index.scss +117 -44
- package/charts/sparkline/styles/_index.scss +7 -1
- package/charts/treemap-chart/styles/_index.scss +94 -42
- package/charts/waterfall-chart/styles/_index.scss +150 -87
- package/color-picker/styles/_index.scss +7 -3
- package/copy-value/styles/_index.scss +21 -2
- package/date-stamp/styles/_index.scss +2 -1
- package/dialog/styles/_index.scss +6 -0
- package/drawer/styles/_index.scss +5 -1
- package/fesm2022/ngwr-breadcrumbs.mjs +2 -2
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-carousel-testing.mjs +27 -1
- package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +86 -4
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader-testing.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +56 -25
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart-testing.mjs +16 -14
- package/fesm2022/ngwr-charts-bar-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +399 -141
- package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs +19 -5
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +250 -56
- package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bullet-chart.mjs +118 -18
- package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +266 -46
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs +21 -10
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +319 -72
- package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-chart-legend.mjs +211 -9
- package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +299 -18
- package/fesm2022/ngwr-charts-core.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart.mjs +206 -27
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs +4 -4
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart.mjs +113 -10
- package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge.mjs +98 -12
- package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +226 -31
- package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart-testing.mjs +16 -4
- package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart.mjs +407 -172
- package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group-testing.mjs +4 -4
- package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +223 -31
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs +2 -1
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +255 -66
- package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs +39 -18
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart.mjs +431 -53
- package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-sparkline.mjs +19 -8
- package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
- package/fesm2022/ngwr-charts-treemap-chart.mjs +253 -44
- package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs +15 -7
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +151 -23
- package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +44 -4
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu-testing.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu.mjs +60 -17
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value-testing.mjs +5 -1
- package/fesm2022/ngwr-copy-value-testing.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value.mjs +38 -2
- package/fesm2022/ngwr-copy-value.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +56 -8
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +13 -5
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +19 -3
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +49 -6
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +1 -0
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +7 -3
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-graph-testing.mjs +27 -0
- package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +643 -14
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +13 -4
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +13 -4
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +13 -4
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +13 -4
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +13 -4
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +13 -4
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +13 -4
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +13 -4
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +13 -4
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +13 -4
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +13 -4
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +13 -4
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +13 -4
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +13 -4
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +13 -4
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +13 -4
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +13 -4
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +13 -4
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +13 -4
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +13 -4
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +13 -4
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +13 -4
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +22 -5
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +2 -2
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +21 -2
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +1 -0
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm-testing.mjs +4 -1
- package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +41 -5
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +67 -12
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +3 -0
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +100 -3
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list.mjs +2 -2
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-table-testing.mjs +71 -3
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +173 -11
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tour-testing.mjs +13 -1
- package/fesm2022/ngwr-tour-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +25 -16
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +52 -8
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +64 -1
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-window.mjs +16 -9
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/graph/styles/_index.scss +87 -0
- package/i18n/ar.json +13 -4
- package/i18n/cs.json +13 -4
- package/i18n/de.json +13 -4
- package/i18n/en.json +13 -4
- package/i18n/es.json +13 -4
- package/i18n/fr.json +13 -4
- package/i18n/he.json +13 -4
- package/i18n/hi.json +13 -4
- package/i18n/id.json +13 -4
- package/i18n/it.json +13 -4
- package/i18n/ja.json +13 -4
- package/i18n/ko.json +13 -4
- package/i18n/nl.json +13 -4
- package/i18n/pl.json +13 -4
- package/i18n/pt.json +13 -4
- package/i18n/ru.json +13 -4
- package/i18n/sv.json +13 -4
- package/i18n/tr.json +13 -4
- package/i18n/uk.json +13 -4
- package/i18n/vi.json +13 -4
- package/i18n/zh-TW.json +13 -4
- package/i18n/zh.json +13 -4
- package/llms-full.txt +12 -12
- package/llms.txt +64 -27
- package/package.json +1 -1
- package/popconfirm/styles/_index.scss +6 -0
- package/popover/styles/_index.scss +24 -13
- package/schematics/collection.json +5 -0
- package/schematics/eject/index.js +158 -0
- package/schematics/eject/schema.js +8 -0
- package/schematics/eject/schema.json +24 -0
- package/schematics/eject/source.js +295 -0
- package/schematics/use/symbol-map.json +2 -0
- package/select/styles/_index.scss +13 -0
- package/skills/ngwr/SKILL.md +30 -3
- package/skills/ngwr/references/catalog.md +2 -2
- package/table/styles/_index.scss +24 -0
- package/theme/styles/_focus.scss +11 -1
- package/tour/styles/_index.scss +6 -0
- package/types/ngwr-carousel-testing.d.ts +29 -6
- package/types/ngwr-carousel.d.ts +52 -5
- package/types/ngwr-cascader-testing.d.ts +4 -3
- package/types/ngwr-cascader.d.ts +29 -7
- package/types/ngwr-charts-bar-chart-testing.d.ts +15 -13
- package/types/ngwr-charts-bar-chart.d.ts +220 -48
- package/types/ngwr-charts-boxplot-chart-testing.d.ts +9 -2
- package/types/ngwr-charts-boxplot-chart.d.ts +110 -19
- package/types/ngwr-charts-bullet-chart.d.ts +72 -12
- package/types/ngwr-charts-calendar-heatmap.d.ts +119 -15
- package/types/ngwr-charts-candlestick-chart-testing.d.ts +19 -9
- package/types/ngwr-charts-candlestick-chart.d.ts +195 -62
- package/types/ngwr-charts-chart-legend.d.ts +142 -5
- package/types/ngwr-charts-core.d.ts +259 -21
- package/types/ngwr-charts-donut-chart-testing.d.ts +11 -5
- package/types/ngwr-charts-donut-chart.d.ts +124 -16
- package/types/ngwr-charts-funnel-chart.d.ts +62 -6
- package/types/ngwr-charts-gauge-testing.d.ts +5 -1
- package/types/ngwr-charts-gauge.d.ts +72 -10
- package/types/ngwr-charts-heatmap-chart.d.ts +103 -20
- package/types/ngwr-charts-line-chart-testing.d.ts +16 -2
- package/types/ngwr-charts-line-chart.d.ts +215 -86
- package/types/ngwr-charts-meter-group.d.ts +96 -7
- package/types/ngwr-charts-radar-chart-testing.d.ts +14 -3
- package/types/ngwr-charts-radar-chart.d.ts +148 -28
- package/types/ngwr-charts-scatter-chart-testing.d.ts +22 -10
- package/types/ngwr-charts-scatter-chart.d.ts +188 -18
- package/types/ngwr-charts-sparkline.d.ts +26 -4
- package/types/ngwr-charts-treemap-chart.d.ts +121 -23
- package/types/ngwr-charts-waterfall-chart-testing.d.ts +8 -1
- package/types/ngwr-charts-waterfall-chart.d.ts +108 -21
- package/types/ngwr-color-picker.d.ts +27 -0
- package/types/ngwr-context-menu-testing.d.ts +10 -9
- package/types/ngwr-context-menu.d.ts +19 -0
- package/types/ngwr-copy-value.d.ts +8 -0
- package/types/ngwr-date-picker.d.ts +34 -2
- package/types/ngwr-dialog.d.ts +30 -10
- package/types/ngwr-drawer.d.ts +32 -1
- package/types/ngwr-dropdown-testing.d.ts +8 -5
- package/types/ngwr-dropdown.d.ts +31 -6
- package/types/ngwr-file-upload.d.ts +8 -2
- package/types/ngwr-graph-testing.d.ts +28 -0
- package/types/ngwr-graph.d.ts +263 -91
- package/types/ngwr-lightbox.d.ts +15 -0
- package/types/ngwr-overlay.d.ts +16 -1
- package/types/ngwr-popconfirm-testing.d.ts +11 -2
- package/types/ngwr-popconfirm.d.ts +28 -1
- package/types/ngwr-popover.d.ts +59 -9
- package/types/ngwr-select.d.ts +37 -0
- package/types/ngwr-table-testing.d.ts +52 -1
- package/types/ngwr-table.d.ts +102 -10
- package/types/ngwr-tour-testing.d.ts +10 -0
- package/types/ngwr-tour.d.ts +32 -4
- package/types/ngwr-tree-testing.d.ts +1 -2
- package/types/ngwr-tree.d.ts +35 -2
- package/types/ngwr-utils.d.ts +79 -1
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window.d.ts +14 -11
- package/window/styles/_index.scss +5 -10
|
@@ -74,6 +74,11 @@ type WrFunnelConversion = 'both' | 'previous' | 'first' | 'none';
|
|
|
74
74
|
* the same figures as a table a reader can walk cell by cell. No part of the chart is a
|
|
75
75
|
* tab stop.
|
|
76
76
|
*
|
|
77
|
+
* **On the chart theme.** The bars are the first colour of the chart palette, the band
|
|
78
|
+
* between two of them the theme's track, and the corners the theme's radius. Hovering a
|
|
79
|
+
* stage dims the others. With no stage the chart keeps a box and says "No data";
|
|
80
|
+
* `loading` and `error` put their own message there in place of the stages.
|
|
81
|
+
*
|
|
77
82
|
* Under RTL the labels and the figures swap sides; the bars and the bands are centred,
|
|
78
83
|
* so they read the same in both directions. A label takes its direction from its own
|
|
79
84
|
* text, so a Latin one is ellipsised at its end on an RTL page, and a figure from its
|
|
@@ -98,8 +103,9 @@ export declare class WrFunnelChart {
|
|
|
98
103
|
/**
|
|
99
104
|
* The colour of a stage with no `color` of its own. One colour by default, because the
|
|
100
105
|
* stages are one quantity measured along a sequence, not categories: every stage is
|
|
101
|
-
* named in text beside its bar, so colour tells nothing apart here.
|
|
102
|
-
*
|
|
106
|
+
* named in text beside its bar, so colour tells nothing apart here. The first colour of
|
|
107
|
+
* the chart palette, which is the brand colour unless the theme says otherwise.
|
|
108
|
+
* @default 'var(--wr-chart-1)'
|
|
103
109
|
*/
|
|
104
110
|
readonly color: import("@angular/core").InputSignal<string>;
|
|
105
111
|
/**
|
|
@@ -125,9 +131,29 @@ export declare class WrFunnelChart {
|
|
|
125
131
|
readonly valueLabel: import("@angular/core").InputSignal<string | null>;
|
|
126
132
|
/**
|
|
127
133
|
* Show a tooltip with the stage's label, value and both conversions on hover. Pointer
|
|
128
|
-
* only — each stage's accessible name already carries the same figures.
|
|
134
|
+
* only — each stage's accessible name already carries the same figures.
|
|
135
|
+
*
|
|
136
|
+
* By default the pointer passes under the chip to the chart, so the next section
|
|
137
|
+
* answers at once and the chip closes off the chart; `'hoverable'` lets the pointer
|
|
138
|
+
* rest on the chip instead, as WCAG 1.4.13 asks of a hint. @default true
|
|
139
|
+
*/
|
|
140
|
+
readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean | "hoverable", unknown>;
|
|
141
|
+
/**
|
|
142
|
+
* A request for the chart's data is in flight: the stages give way to the loading
|
|
143
|
+
* message. @default false
|
|
144
|
+
*/
|
|
145
|
+
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
146
|
+
/**
|
|
147
|
+
* The chart's data failed to load: the stages give way to the error message. `loading`
|
|
148
|
+
* wins while both are set. @default false
|
|
129
149
|
*/
|
|
130
|
-
readonly
|
|
150
|
+
readonly error: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
151
|
+
/** The message shown when there is no stage. Falls back to `chart.empty`, then `'No data'`. */
|
|
152
|
+
readonly emptyLabel: import("@angular/core").InputSignal<string | null>;
|
|
153
|
+
/** The message shown while `loading`. Falls back to `chart.loading`, then `'Loading…'`. */
|
|
154
|
+
readonly loadingLabel: import("@angular/core").InputSignal<string | null>;
|
|
155
|
+
/** The message shown on `error`. Falls back to `chart.error`, then `'Could not load'`. */
|
|
156
|
+
readonly errorLabel: import("@angular/core").InputSignal<string | null>;
|
|
131
157
|
/**
|
|
132
158
|
* Writes every value the chart shows: beside the bars, in the tooltip, in the accessible
|
|
133
159
|
* names and in the data table. `null` uses `Intl.NumberFormat` in `LOCALE_ID`.
|
|
@@ -196,8 +222,11 @@ export declare class WrFunnelChart {
|
|
|
196
222
|
label: string;
|
|
197
223
|
value: number | null;
|
|
198
224
|
color: string;
|
|
199
|
-
/**
|
|
200
|
-
|
|
225
|
+
/**
|
|
226
|
+
* The bar's length as a share of the track, 0 to 1: the bar is as wide as the
|
|
227
|
+
* track and scaled to this, so a new value moves a transform and lays nothing out.
|
|
228
|
+
*/
|
|
229
|
+
scale: number;
|
|
201
230
|
valueText: string;
|
|
202
231
|
previousText: string;
|
|
203
232
|
firstText: string;
|
|
@@ -209,6 +238,8 @@ export declare class WrFunnelChart {
|
|
|
209
238
|
/** The paint of the stage above, where the band starts. */
|
|
210
239
|
bandFrom: string;
|
|
211
240
|
}[]>;
|
|
241
|
+
/** What the chart shows in place of its stages, or `null` while it draws them. */
|
|
242
|
+
protected readonly state: import("@angular/core").Signal<import("ngwr/charts/core").WrChartStateView | null>;
|
|
212
243
|
/**
|
|
213
244
|
* The figures for `dataTable`: the chart's name as the caption, a row per stage, and its
|
|
214
245
|
* value and both conversions as the columns, each cell written as the tooltip writes it.
|
|
@@ -277,6 +308,31 @@ export declare class WrFunnelChart {
|
|
|
277
308
|
"required": false;
|
|
278
309
|
"isSignal": true;
|
|
279
310
|
};
|
|
311
|
+
"loading": {
|
|
312
|
+
"alias": "loading";
|
|
313
|
+
"required": false;
|
|
314
|
+
"isSignal": true;
|
|
315
|
+
};
|
|
316
|
+
"error": {
|
|
317
|
+
"alias": "error";
|
|
318
|
+
"required": false;
|
|
319
|
+
"isSignal": true;
|
|
320
|
+
};
|
|
321
|
+
"emptyLabel": {
|
|
322
|
+
"alias": "emptyLabel";
|
|
323
|
+
"required": false;
|
|
324
|
+
"isSignal": true;
|
|
325
|
+
};
|
|
326
|
+
"loadingLabel": {
|
|
327
|
+
"alias": "loadingLabel";
|
|
328
|
+
"required": false;
|
|
329
|
+
"isSignal": true;
|
|
330
|
+
};
|
|
331
|
+
"errorLabel": {
|
|
332
|
+
"alias": "errorLabel";
|
|
333
|
+
"required": false;
|
|
334
|
+
"isSignal": true;
|
|
335
|
+
};
|
|
280
336
|
"valueFormat": {
|
|
281
337
|
"alias": "valueFormat";
|
|
282
338
|
"required": false;
|
|
@@ -25,7 +25,11 @@ export declare class WrGaugeHarness extends ComponentHarness {
|
|
|
25
25
|
/** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
|
|
26
26
|
static with(options?: WrGaugeHarnessFilters): HarnessPredicate<WrGaugeHarness>;
|
|
27
27
|
private readonly surface;
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* The role the dial announces — `meter`, which is what a gauge is. Under `loading` or
|
|
30
|
+
* `error` it is a `group`: there is no reading to announce, so the value attributes are
|
|
31
|
+
* gone and the methods that read them say so.
|
|
32
|
+
*/
|
|
29
33
|
getRole(): Promise<string | null>;
|
|
30
34
|
/** The dial's accessible name. */
|
|
31
35
|
getAccessibleName(): Promise<string | null>;
|
|
@@ -9,6 +9,15 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* <wr-gauge [value]="9.5" [min]="0" [max]="10" suffix="/10" valueColor="var(--wr-color-warning)" />
|
|
10
10
|
* ```
|
|
11
11
|
*
|
|
12
|
+
* **The look is the chart theme's.** The arc is the first colour of the chart palette
|
|
13
|
+
* (`--wr-chart-1`) over a track in `--wr-chart-track`, and `strokeWidth` is in CSS pixels,
|
|
14
|
+
* so two gauges of different sizes draw the same arc. `valueColor` takes any colour: a
|
|
15
|
+
* palette token, or an intent once the reading crosses a threshold.
|
|
16
|
+
*
|
|
17
|
+
* **Loading and error.** `loading` and `error` put their message in place of the reading,
|
|
18
|
+
* over the track; the gauge is a named group rather than a meter while it has no reading
|
|
19
|
+
* to announce.
|
|
20
|
+
*
|
|
12
21
|
* @see https://ngwr.dev/charts/gauge
|
|
13
22
|
*/
|
|
14
23
|
export declare class WrGauge {
|
|
@@ -34,18 +43,23 @@ export declare class WrGauge {
|
|
|
34
43
|
readonly max: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
35
44
|
/** Diameter in CSS pixels. @default 160 */
|
|
36
45
|
readonly size: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
37
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* Arc stroke thickness in CSS pixels, the same at any `size`. It was a share of the
|
|
48
|
+
* drawing until 16.5, so a gauge twice the size drew an arc twice as thick.
|
|
49
|
+
* @default 16
|
|
50
|
+
*/
|
|
38
51
|
readonly strokeWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
39
52
|
/**
|
|
40
|
-
* Colour of the unfilled arc behind the value. Any CSS colour; the default is
|
|
41
|
-
*
|
|
42
|
-
* @default
|
|
53
|
+
* Colour of the unfilled arc behind the value. Any CSS colour; the default is the
|
|
54
|
+
* chart theme's track, shared with the meter group and the bullet chart.
|
|
55
|
+
* @default 'var(--wr-chart-track)'
|
|
43
56
|
*/
|
|
44
57
|
readonly trackColor: import("@angular/core").InputSignal<string>;
|
|
45
58
|
/**
|
|
46
|
-
* Colour of the filled arc. Any CSS colour
|
|
59
|
+
* Colour of the filled arc. Any CSS colour: the default is the first colour of the
|
|
60
|
+
* chart palette; pass another (`var(--wr-chart-3)`), or an intent token to tie it to
|
|
47
61
|
* a threshold, e.g. `var(--wr-color-danger)` once the value crosses one.
|
|
48
|
-
* @default 'var(--wr-
|
|
62
|
+
* @default 'var(--wr-chart-1)'
|
|
49
63
|
*/
|
|
50
64
|
readonly valueColor: import("@angular/core").InputSignal<string>;
|
|
51
65
|
/** Show the value text in the center. @default true */
|
|
@@ -56,10 +70,28 @@ export declare class WrGauge {
|
|
|
56
70
|
*/
|
|
57
71
|
readonly suffix: import("@angular/core").InputSignal<string>;
|
|
58
72
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
73
|
+
* A request for the reading is in flight: the arc and the number give way to the
|
|
74
|
+
* loading message, over the track. @default false
|
|
75
|
+
*/
|
|
76
|
+
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
77
|
+
/**
|
|
78
|
+
* The reading failed to load: the arc and the number give way to the error message.
|
|
79
|
+
* `loading` wins while both are set. @default false
|
|
61
80
|
*/
|
|
62
|
-
readonly
|
|
81
|
+
readonly error: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
82
|
+
/** The message shown while `loading`. Falls back to `chart.loading`, then `'Loading…'`. */
|
|
83
|
+
readonly loadingLabel: import("@angular/core").InputSignal<string | null>;
|
|
84
|
+
/** The message shown on `error`. Falls back to `chart.error`, then `'Could not load'`. */
|
|
85
|
+
readonly errorLabel: import("@angular/core").InputSignal<string | null>;
|
|
86
|
+
/**
|
|
87
|
+
* Show a tooltip with the reading on hover, named by `ariaLabel` when one is given.
|
|
88
|
+
* Pointer only — the meter announces the same reading.
|
|
89
|
+
*
|
|
90
|
+
* By default the pointer passes under the chip to the chart, so the next section
|
|
91
|
+
* answers at once and the chip closes off the chart; `'hoverable'` lets the pointer
|
|
92
|
+
* rest on the chip instead, as WCAG 1.4.13 asks of a hint. @default true
|
|
93
|
+
*/
|
|
94
|
+
readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean | "hoverable", unknown>;
|
|
63
95
|
/**
|
|
64
96
|
* Writes the reading in the centre, the tooltip and `aria-valuetext`, before
|
|
65
97
|
* `suffix`. `null` uses `Intl.NumberFormat` in `LOCALE_ID`. `aria-valuenow` stays a
|
|
@@ -71,6 +103,13 @@ export declare class WrGauge {
|
|
|
71
103
|
private readonly surface;
|
|
72
104
|
protected readonly cx = 50;
|
|
73
105
|
protected readonly cy = 50;
|
|
106
|
+
/**
|
|
107
|
+
* The stroke in the viewBox's units. The drawing is `size` px wide and 100 units wide,
|
|
108
|
+
* so a width in pixels is that many hundredths of `size`: worked out from the input
|
|
109
|
+
* rather than measured, since the surface is laid out at exactly `size`, and the radius
|
|
110
|
+
* and the viewBox depend on it, which a non-scaling stroke would leave behind.
|
|
111
|
+
*/
|
|
112
|
+
protected readonly stroke: import("@angular/core").Signal<number>;
|
|
74
113
|
protected readonly radius: import("@angular/core").Signal<number>;
|
|
75
114
|
/**
|
|
76
115
|
* The reading as it can actually be shown. Only `ratio` used to be clamped, so an
|
|
@@ -84,7 +123,10 @@ export declare class WrGauge {
|
|
|
84
123
|
protected readonly ratio: import("@angular/core").Signal<number>;
|
|
85
124
|
protected readonly trackPath: import("@angular/core").Signal<string>;
|
|
86
125
|
protected readonly valuePath: import("@angular/core").Signal<string | null>;
|
|
87
|
-
|
|
126
|
+
/** A unit past the caps, which end half a stroke below the centre. */
|
|
127
|
+
protected readonly viewBox: import("@angular/core").Signal<string>;
|
|
128
|
+
/** Loading, or a failed load, or `null` while the gauge shows its reading. A gauge always has a value, so it is never empty. */
|
|
129
|
+
protected readonly state: import("@angular/core").Signal<import("ngwr/charts/core").WrChartStateView | null>;
|
|
88
130
|
/**
|
|
89
131
|
* The reading as the meter announces it — `aria-valuetext`, the number plus the
|
|
90
132
|
* suffix — so the tooltip, the printed value and a screen reader all say one
|
|
@@ -149,6 +191,26 @@ export declare class WrGauge {
|
|
|
149
191
|
"required": false;
|
|
150
192
|
"isSignal": true;
|
|
151
193
|
};
|
|
194
|
+
"loading": {
|
|
195
|
+
"alias": "loading";
|
|
196
|
+
"required": false;
|
|
197
|
+
"isSignal": true;
|
|
198
|
+
};
|
|
199
|
+
"error": {
|
|
200
|
+
"alias": "error";
|
|
201
|
+
"required": false;
|
|
202
|
+
"isSignal": true;
|
|
203
|
+
};
|
|
204
|
+
"loadingLabel": {
|
|
205
|
+
"alias": "loadingLabel";
|
|
206
|
+
"required": false;
|
|
207
|
+
"isSignal": true;
|
|
208
|
+
};
|
|
209
|
+
"errorLabel": {
|
|
210
|
+
"alias": "errorLabel";
|
|
211
|
+
"required": false;
|
|
212
|
+
"isSignal": true;
|
|
213
|
+
};
|
|
152
214
|
"tooltip": {
|
|
153
215
|
"alias": "tooltip";
|
|
154
216
|
"required": false;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
+
import { WrChartLegendPosition } from "ngwr/charts/chart-legend";
|
|
2
3
|
import { WrChartTableData } from "ngwr/charts/core";
|
|
3
4
|
/**
|
|
4
5
|
* @license
|
|
@@ -39,6 +40,8 @@ interface Cell {
|
|
|
39
40
|
* rounded so the inline style stays short. `null` for an empty cell.
|
|
40
41
|
*/
|
|
41
42
|
readonly level: number | null;
|
|
43
|
+
/** Its level's paint, a step of the sequential scale or a mix of two. `null` for an empty cell. */
|
|
44
|
+
readonly paint: string | null;
|
|
42
45
|
/** The number printed in the cell with `showValues`, compact from a thousand; `''` when it prints none. */
|
|
43
46
|
readonly text: string;
|
|
44
47
|
}
|
|
@@ -64,13 +67,20 @@ interface Cell {
|
|
|
64
67
|
* ```
|
|
65
68
|
*
|
|
66
69
|
* **The scale.** It runs from `min` to `max`, each the data's own unless given, and is cut
|
|
67
|
-
* into `levels` equal bands. A cell takes its band's level
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
70
|
+
* into `levels` equal bands. A cell takes its band's level, painted from the chart
|
|
71
|
+
* theme's sequential scale: `--wr-chart-seq-1`, a tint of the first palette colour, for
|
|
72
|
+
* the lowest, up to `--wr-chart-seq-5`, the colour itself, for the highest. Five levels
|
|
73
|
+
* are the five steps; more are mixed between two steps. `color` paints the same five
|
|
74
|
+
* steps from a colour of the chart's own. Every cell carries a faint edge, so the lowest
|
|
75
|
+
* level still reads as a cell on a dark surface. A value outside a given `min` or `max`
|
|
76
|
+
* takes the end level; the tooltip and the data table still give its own figure. A scale
|
|
77
|
+
* key (`legendPosition`: under the matrix, over it or beside it) keys the levels from
|
|
78
|
+
* the scale's minimum to its maximum. A scale with no span — every value the same, an
|
|
79
|
+
* all-zero matrix included — has one level, the lowest, and the key shows that one.
|
|
80
|
+
*
|
|
81
|
+
* **Empty, loading, error.** A matrix with no row or no column keeps a box and says
|
|
82
|
+
* "No data"; `loading` and `error` put their own message over the row and column names
|
|
83
|
+
* in place of the cells.
|
|
74
84
|
*
|
|
75
85
|
* **An empty cell is no data, never zero.** A `null`, a value that is not a finite number,
|
|
76
86
|
* or one a shorter row does not reach is drawn hatched and outlined, not as the lowest
|
|
@@ -127,10 +137,11 @@ export declare class WrHeatmapChart {
|
|
|
127
137
|
readonly columns: import("@angular/core").InputSignal<readonly string[]>;
|
|
128
138
|
/**
|
|
129
139
|
* The colour of the highest level: any CSS colour, `var(--wr-…)` included. Every lower
|
|
130
|
-
* level is
|
|
131
|
-
*
|
|
140
|
+
* level is stepped from it toward the surface, as the chart theme steps its own scale.
|
|
141
|
+
* `null` paints the levels with the theme's sequential scale, `--wr-chart-seq-1` to
|
|
142
|
+
* `-5`, which an app retints for every chart at once. @default null
|
|
132
143
|
*/
|
|
133
|
-
readonly color: import("@angular/core").InputSignal<string>;
|
|
144
|
+
readonly color: import("@angular/core").InputSignal<string | null>;
|
|
134
145
|
/**
|
|
135
146
|
* The value of the lowest level. `null` takes the lowest value in `data`; a value given
|
|
136
147
|
* holds the scale there, and a cell below it takes the lowest level. @default null
|
|
@@ -161,14 +172,42 @@ export declare class WrHeatmapChart {
|
|
|
161
172
|
* @default false
|
|
162
173
|
*/
|
|
163
174
|
readonly showValues: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
164
|
-
/** Show the
|
|
175
|
+
/** Show the scale key, from `min` to `max`, with a key for an empty cell while there is one. @default true */
|
|
165
176
|
readonly showLegend: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
166
177
|
/**
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
|
|
178
|
+
* Where the scale key sits: `bottom` or `top` of the matrix, `start` or `end` of it, or
|
|
179
|
+
* `none` for no key at all. @default 'bottom'
|
|
180
|
+
*/
|
|
181
|
+
readonly legendPosition: import("@angular/core").InputSignal<WrChartLegendPosition>;
|
|
182
|
+
/**
|
|
183
|
+
* A request for the chart's data is in flight: the cells give way to the loading
|
|
184
|
+
* message, beside the row and column names the chart had. @default false
|
|
185
|
+
*/
|
|
186
|
+
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
187
|
+
/**
|
|
188
|
+
* The chart's data failed to load: the cells give way to the error message. `loading`
|
|
189
|
+
* wins while both are set. @default false
|
|
190
|
+
*/
|
|
191
|
+
readonly error: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
192
|
+
/**
|
|
193
|
+
* The message shown for a matrix with no row or no column. Falls back to `chart.empty`,
|
|
194
|
+
* then `'No data'`. An empty CELL is `noDataLabel`'s.
|
|
195
|
+
*/
|
|
196
|
+
readonly emptyLabel: import("@angular/core").InputSignal<string | null>;
|
|
197
|
+
/** The message shown while `loading`. Falls back to `chart.loading`, then `'Loading…'`. */
|
|
198
|
+
readonly loadingLabel: import("@angular/core").InputSignal<string | null>;
|
|
199
|
+
/** The message shown on `error`. Falls back to `chart.error`, then `'Could not load'`. */
|
|
200
|
+
readonly errorLabel: import("@angular/core").InputSignal<string | null>;
|
|
201
|
+
/**
|
|
202
|
+
* Show a tooltip for the cell under the pointer: its row's name, its column's name
|
|
203
|
+
* and its value, or `noDataLabel` for an empty cell. Pointer only — the data table is
|
|
204
|
+
* where the same numbers are for a keyboard or a screen reader.
|
|
205
|
+
*
|
|
206
|
+
* By default the pointer passes under the chip to the chart, so the next section
|
|
207
|
+
* answers at once and the chip closes off the chart; `'hoverable'` lets the pointer
|
|
208
|
+
* rest on the chip instead, as WCAG 1.4.13 asks of a hint. @default true
|
|
170
209
|
*/
|
|
171
|
-
readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean,
|
|
210
|
+
readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean | "hoverable", unknown>;
|
|
172
211
|
/**
|
|
173
212
|
* Writes every number the chart shows: the values in the cells, the legend, the tooltip
|
|
174
213
|
* and the data table. `null` uses `Intl.NumberFormat` in `LOCALE_ID`, compact in the
|
|
@@ -205,8 +244,11 @@ export declare class WrHeatmapChart {
|
|
|
205
244
|
private readonly positions;
|
|
206
245
|
private readonly grid;
|
|
207
246
|
private readonly columnStrip;
|
|
208
|
-
/**
|
|
209
|
-
|
|
247
|
+
/**
|
|
248
|
+
* The column names' strip's box, as last observed: what measures the names again on a
|
|
249
|
+
* resize. On the observer every chart shares.
|
|
250
|
+
*/
|
|
251
|
+
private readonly stripSize;
|
|
210
252
|
/**
|
|
211
253
|
* Which column names are drawn. Every one until the browser has measured them, so the
|
|
212
254
|
* server and the first paint carry every name, cut where it does not fit.
|
|
@@ -245,12 +287,23 @@ export declare class WrHeatmapChart {
|
|
|
245
287
|
protected readonly legend: import("@angular/core").Signal<{
|
|
246
288
|
min: string;
|
|
247
289
|
max: null;
|
|
248
|
-
|
|
290
|
+
steps: string[];
|
|
249
291
|
} | {
|
|
250
292
|
min: string;
|
|
251
293
|
max: string;
|
|
252
|
-
|
|
294
|
+
steps: string[];
|
|
253
295
|
} | null>;
|
|
296
|
+
/**
|
|
297
|
+
* Whether the chart draws its scale key: with `showLegend`, unless `legendPosition` is
|
|
298
|
+
* `none`, and while there is a scale or an empty cell to key.
|
|
299
|
+
*/
|
|
300
|
+
protected readonly legendShown: import("@angular/core").Signal<boolean>;
|
|
301
|
+
/** Whether the key comes before the matrix, in the DOM as on screen: above it, or at inline start. */
|
|
302
|
+
protected readonly legendFirst: import("@angular/core").Signal<boolean>;
|
|
303
|
+
/** Whether the key sits beside the matrix rather than above or below it. */
|
|
304
|
+
protected readonly legendSide: import("@angular/core").Signal<boolean>;
|
|
305
|
+
/** What the chart shows in place of its cells, or `null` while it draws them. */
|
|
306
|
+
protected readonly state: import("@angular/core").Signal<import("ngwr/charts/core").WrChartStateView | null>;
|
|
254
307
|
/**
|
|
255
308
|
* The figures for `dataTable`: the matrix's name as the caption, a column per column and
|
|
256
309
|
* a row per row, every value written as the tooltip writes it and an empty cell as
|
|
@@ -281,7 +334,7 @@ export declare class WrHeatmapChart {
|
|
|
281
334
|
* tap fires the compatibility `mousemove` and no `pointermove`. Over the gap between two
|
|
282
335
|
* cells it is on none, and the tooltip starts to leave.
|
|
283
336
|
*/
|
|
284
|
-
|
|
337
|
+
private onPointerMove;
|
|
285
338
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrHeatmapChart, never>;
|
|
286
339
|
static ɵcmp: i0.ɵɵComponentDeclaration<WrHeatmapChart, "wr-heatmap-chart", never, {
|
|
287
340
|
"data": {
|
|
@@ -329,6 +382,36 @@ export declare class WrHeatmapChart {
|
|
|
329
382
|
"required": false;
|
|
330
383
|
"isSignal": true;
|
|
331
384
|
};
|
|
385
|
+
"legendPosition": {
|
|
386
|
+
"alias": "legendPosition";
|
|
387
|
+
"required": false;
|
|
388
|
+
"isSignal": true;
|
|
389
|
+
};
|
|
390
|
+
"loading": {
|
|
391
|
+
"alias": "loading";
|
|
392
|
+
"required": false;
|
|
393
|
+
"isSignal": true;
|
|
394
|
+
};
|
|
395
|
+
"error": {
|
|
396
|
+
"alias": "error";
|
|
397
|
+
"required": false;
|
|
398
|
+
"isSignal": true;
|
|
399
|
+
};
|
|
400
|
+
"emptyLabel": {
|
|
401
|
+
"alias": "emptyLabel";
|
|
402
|
+
"required": false;
|
|
403
|
+
"isSignal": true;
|
|
404
|
+
};
|
|
405
|
+
"loadingLabel": {
|
|
406
|
+
"alias": "loadingLabel";
|
|
407
|
+
"required": false;
|
|
408
|
+
"isSignal": true;
|
|
409
|
+
};
|
|
410
|
+
"errorLabel": {
|
|
411
|
+
"alias": "errorLabel";
|
|
412
|
+
"required": false;
|
|
413
|
+
"isSignal": true;
|
|
414
|
+
};
|
|
332
415
|
"tooltip": {
|
|
333
416
|
"alias": "tooltip";
|
|
334
417
|
"required": false;
|
|
@@ -39,6 +39,11 @@ interface WrLineChartTableRow {
|
|
|
39
39
|
* browser-run harness, or a spec that gives the drawing a box (`getBoundingClientRect`)
|
|
40
40
|
* and dispatches the move itself.
|
|
41
41
|
*
|
|
42
|
+
* **The tooltip is read off the document.** It is the chip every chart shares, drawn in
|
|
43
|
+
* an overlay outside the chart under the chart's own class, `.wr-line-chart__tooltip`.
|
|
44
|
+
* One chip is up at a time for a pointer, so with several line charts on a page the
|
|
45
|
+
* tooltip readers answer for whichever of them opened it.
|
|
46
|
+
*
|
|
42
47
|
* @example
|
|
43
48
|
* ```ts
|
|
44
49
|
* const chart = await loader.getHarness(WrLineChartHarness);
|
|
@@ -56,7 +61,7 @@ export declare class WrLineChartHarness extends ComponentHarness {
|
|
|
56
61
|
static with(options?: WrLineChartHarnessFilters): HarnessPredicate<WrLineChartHarness>;
|
|
57
62
|
/** The plot's accessible name — the only name the drawing has. */
|
|
58
63
|
getAccessibleName(): Promise<string | null>;
|
|
59
|
-
/** Whether the legend is rendered
|
|
64
|
+
/** Whether the legend is rendered: `showLegend`, which leaves it out for a single series unless it is `true`. */
|
|
60
65
|
hasLegend(): Promise<boolean>;
|
|
61
66
|
/** The series names from the legend, in order — hidden series included, since their rows stay. */
|
|
62
67
|
getSeriesLabels(): Promise<string[]>;
|
|
@@ -118,7 +123,14 @@ export declare class WrLineChartHarness extends ComponentHarness {
|
|
|
118
123
|
getTableRows(): Promise<WrLineChartTableRow[]>;
|
|
119
124
|
/** Whether the horizontal grid lines are drawn (`showGrid`). */
|
|
120
125
|
hasGrid(): Promise<boolean>;
|
|
121
|
-
/**
|
|
126
|
+
/** Whether the y axis' scale is printed beside the plot (`showAxis`). */
|
|
127
|
+
hasAxis(): Promise<boolean>;
|
|
128
|
+
/**
|
|
129
|
+
* The message the chart shows in place of its lines: "No data" with nothing to draw,
|
|
130
|
+
* or the loading or error message. `null` while it draws its lines.
|
|
131
|
+
*/
|
|
132
|
+
getStateLabel(): Promise<string | null>;
|
|
133
|
+
/** The y-axis tick labels, top to bottom as drawn. `[]` with `showAxis` off. */
|
|
122
134
|
getYTicks(): Promise<string[]>;
|
|
123
135
|
/**
|
|
124
136
|
* The x-axis labels printed under the plot, in order: every one while the widest fits
|
|
@@ -132,6 +144,8 @@ export declare class WrLineChartHarness extends ComponentHarness {
|
|
|
132
144
|
getTooltipLabel(): Promise<string | null>;
|
|
133
145
|
/** The tooltip's rows, one per series shown with a reading at that x, or `[]` while it is closed. */
|
|
134
146
|
getTooltipRows(): Promise<WrLineChartTooltipRow[]>;
|
|
147
|
+
/** The chart's chip in the overlay, or `null` while it is closed. */
|
|
148
|
+
private chip;
|
|
135
149
|
private assertDataTable;
|
|
136
150
|
/**
|
|
137
151
|
* The plot's height in pixels, read off the `style` ATTRIBUTE.
|