ngwr 16.7.1 → 16.9.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/charts/donut-chart/styles/_index.scss +9 -3
- package/charts/meter-group/styles/_index.scss +8 -1
- package/charts/sparkline/styles/_index.scss +6 -3
- package/command-palette/styles/_index.scss +10 -0
- package/descriptions/styles/_index.scss +91 -0
- package/fesm2022/ngwr-anchor.mjs +48 -10
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +3 -2
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -1
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +17 -0
- package/fesm2022/ngwr-charts-core.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart-testing.mjs +27 -0
- package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart.mjs +54 -6
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group-testing.mjs +27 -0
- package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +54 -6
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-sparkline-testing.mjs +27 -0
- package/fesm2022/ngwr-charts-sparkline-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-sparkline.mjs +45 -4
- package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
- package/fesm2022/ngwr-checkbox.mjs +38 -3
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +4 -3
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-command-palette.mjs +39 -19
- package/fesm2022/ngwr-command-palette.mjs.map +1 -1
- package/fesm2022/ngwr-compare.mjs +4 -0
- package/fesm2022/ngwr-compare.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu.mjs +7 -2
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-cookie.mjs +6 -3
- package/fesm2022/ngwr-cookie.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp-testing.mjs +3 -0
- package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp.mjs +81 -4
- package/fesm2022/ngwr-date-stamp.mjs.map +1 -1
- package/fesm2022/ngwr-date.mjs +16 -2
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-density.mjs +4 -3
- package/fesm2022/ngwr-density.mjs.map +1 -1
- package/fesm2022/ngwr-descriptions.mjs +77 -20
- package/fesm2022/ngwr-descriptions.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +10 -7
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +12 -0
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +14 -8
- package/fesm2022/ngwr-drawer.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 +4 -5
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +10 -5
- package/fesm2022/ngwr-hotkey.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +18 -5
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +18 -5
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +18 -5
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +18 -5
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +18 -5
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +18 -5
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +18 -5
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +18 -5
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +18 -5
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +18 -5
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +18 -5
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-kk.mjs +18 -5
- package/fesm2022/ngwr-i18n-kk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +18 -5
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +18 -5
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +18 -5
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +18 -5
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +18 -5
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +18 -5
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +18 -5
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +18 -5
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +18 -5
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +18 -5
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +18 -5
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +7 -6
- package/fesm2022/ngwr-i18n.mjs.map +1 -1
- package/fesm2022/ngwr-image-cropper-testing.mjs +33 -0
- package/fesm2022/ngwr-image-cropper-testing.mjs.map +1 -1
- package/fesm2022/ngwr-image-cropper.mjs +536 -30
- package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +33 -10
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +24 -10
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +2 -2
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-knob.mjs +5 -0
- package/fesm2022/ngwr-knob.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +5 -3
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-mention.mjs +2 -0
- package/fesm2022/ngwr-mention.mjs.map +1 -1
- package/fesm2022/ngwr-meta.mjs +43 -8
- package/fesm2022/ngwr-meta.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +51 -2
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +1 -1
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +160 -8
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +2 -2
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-qr.mjs +65 -7
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +2 -2
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +1 -2
- package/fesm2022/ngwr-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +22 -17
- package/fesm2022/ngwr-slider.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +30 -1
- package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
- package/fesm2022/ngwr-statistic.mjs +1 -1
- package/fesm2022/ngwr-stepper-testing.mjs +7 -1
- package/fesm2022/ngwr-stepper-testing.mjs.map +1 -1
- package/fesm2022/ngwr-stepper.mjs +55 -4
- package/fesm2022/ngwr-stepper.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +33 -3
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-timeline.mjs +4 -0
- package/fesm2022/ngwr-timeline.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +171 -16
- package/fesm2022/ngwr-toolbar.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +8 -3
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +3 -2
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +1 -1
- package/fesm2022/ngwr-utils.mjs +46 -8
- 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-virtual-scroll.mjs +2 -2
- package/fesm2022/ngwr-virtual-scroll.mjs.map +1 -1
- package/i18n/ar.json +18 -5
- package/i18n/cs.json +18 -5
- package/i18n/de.json +18 -5
- package/i18n/en.json +18 -5
- package/i18n/es.json +18 -5
- package/i18n/fr.json +18 -5
- package/i18n/he.json +18 -5
- package/i18n/hi.json +18 -5
- package/i18n/id.json +18 -5
- package/i18n/it.json +18 -5
- package/i18n/ja.json +18 -5
- package/i18n/kk.json +18 -5
- package/i18n/ko.json +18 -5
- package/i18n/nl.json +18 -5
- package/i18n/pl.json +18 -5
- package/i18n/pt.json +18 -5
- package/i18n/ru.json +18 -5
- package/i18n/sv.json +18 -5
- package/i18n/tr.json +18 -5
- package/i18n/uk.json +18 -5
- package/i18n/vi.json +18 -5
- package/i18n/zh-TW.json +18 -5
- package/i18n/zh.json +18 -5
- package/image-cropper/styles/_index.scss +30 -1
- package/llms-full.txt +9 -9
- package/package.json +1 -1
- package/schematics/use/rule.js +1 -0
- package/schematics/use/symbol-map.json +2 -0
- package/skills/ngwr/SKILL.md +2 -2
- package/stepper/styles/_index.scss +33 -0
- package/tour/styles/_index.scss +11 -7
- package/types/ngwr-anchor.d.ts +14 -1
- package/types/ngwr-charts-donut-chart-testing.d.ts +32 -3
- package/types/ngwr-charts-donut-chart.d.ts +45 -6
- package/types/ngwr-charts-meter-group-testing.d.ts +29 -1
- package/types/ngwr-charts-meter-group.d.ts +43 -4
- package/types/ngwr-charts-sparkline-testing.d.ts +32 -2
- package/types/ngwr-charts-sparkline.d.ts +42 -3
- package/types/ngwr-checkbox.d.ts +14 -0
- package/types/ngwr-color-picker-testing.d.ts +1 -1
- package/types/ngwr-command-palette.d.ts +2 -1
- package/types/ngwr-date-stamp-testing.d.ts +2 -0
- package/types/ngwr-date-stamp.d.ts +41 -2
- package/types/ngwr-date.d.ts +3 -1
- package/types/ngwr-descriptions.d.ts +33 -5
- package/types/ngwr-dialog.d.ts +11 -6
- package/types/ngwr-directives.d.ts +1 -0
- package/types/ngwr-drawer.d.ts +12 -4
- package/types/ngwr-file-upload.d.ts +1 -1
- package/types/ngwr-form.d.ts +4 -0
- package/types/ngwr-hotkey.d.ts +2 -0
- package/types/ngwr-image-cropper-testing.d.ts +33 -1
- package/types/ngwr-image-cropper.d.ts +214 -6
- package/types/ngwr-input-number.d.ts +14 -2
- package/types/ngwr-input-otp.d.ts +2 -0
- package/types/ngwr-lightbox.d.ts +1 -0
- package/types/ngwr-meta.d.ts +13 -1
- package/types/ngwr-overlay.d.ts +20 -1
- package/types/ngwr-pipes.d.ts +125 -1
- package/types/ngwr-qr.d.ts +17 -0
- package/types/ngwr-slider.d.ts +3 -1
- package/types/ngwr-speed-dial.d.ts +10 -0
- package/types/ngwr-stepper-testing.d.ts +10 -0
- package/types/ngwr-stepper.d.ts +47 -1
- package/types/ngwr-switch.d.ts +13 -0
- package/types/ngwr-toolbar.d.ts +27 -0
- package/types/ngwr-transfer.d.ts +2 -0
- package/types/ngwr-utils.d.ts +61 -2
- package/types/ngwr-version.d.ts +1 -1
|
@@ -14,6 +14,16 @@ interface WrMeterGroupSlice {
|
|
|
14
14
|
/** The share of the bar it takes, in percent. */
|
|
15
15
|
readonly percent: number;
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* One row of the meter's data table (`dataTable`): the segment's label as its row header,
|
|
19
|
+
* then its value and its share of the total the bar is drawn against.
|
|
20
|
+
*/
|
|
21
|
+
interface WrMeterGroupTableRow {
|
|
22
|
+
/** The row header: the segment's label. */
|
|
23
|
+
readonly header: string;
|
|
24
|
+
/** Its value and its share, as the meter writes them; `''` where it has none. */
|
|
25
|
+
readonly cells: readonly string[];
|
|
26
|
+
}
|
|
17
27
|
/**
|
|
18
28
|
* Test harness for `<wr-meter-group>` — one bar divided into labelled bands.
|
|
19
29
|
*
|
|
@@ -70,5 +80,23 @@ export declare class WrMeterGroupHarness extends ComponentHarness {
|
|
|
70
80
|
getLegendLabels(): Promise<string[]>;
|
|
71
81
|
/** The legend's values, in order — empty when `showValues` is off. */
|
|
72
82
|
getLegendValues(): Promise<string[]>;
|
|
83
|
+
/** Whether the hidden data table is rendered (`dataTable`, while the meter draws its segments). */
|
|
84
|
+
hasDataTable(): Promise<boolean>;
|
|
85
|
+
/**
|
|
86
|
+
* The data table's column headings: the value's name and the share's.
|
|
87
|
+
*
|
|
88
|
+
* Throws when the meter renders no table (`dataTable` off, or a state in the legend's
|
|
89
|
+
* place) rather than answering with no columns.
|
|
90
|
+
*/
|
|
91
|
+
getTableColumns(): Promise<string[]>;
|
|
92
|
+
/**
|
|
93
|
+
* The data table's rows, one per segment shown, in the data's own order: its label, its
|
|
94
|
+
* value and its share of the total, as a screen reader walks them. A segment hidden
|
|
95
|
+
* through `hiddenSegments` has no row, and one that draws nothing an empty share.
|
|
96
|
+
*
|
|
97
|
+
* Throws when the meter renders no table, for the reason {@link getTableColumns} gives.
|
|
98
|
+
*/
|
|
99
|
+
getTableRows(): Promise<WrMeterGroupTableRow[]>;
|
|
100
|
+
private assertDataTable;
|
|
73
101
|
}
|
|
74
|
-
export type { WrMeterGroupHarnessFilters, WrMeterGroupSlice };
|
|
102
|
+
export type { WrMeterGroupHarnessFilters, WrMeterGroupSlice, WrMeterGroupTableRow };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { WrChartLegendItem, WrChartLegendPosition } from "ngwr/charts/chart-legend";
|
|
3
|
+
import { WrChartTableData } from "ngwr/charts/core";
|
|
3
4
|
/**
|
|
4
5
|
* @license
|
|
5
6
|
*
|
|
@@ -42,11 +43,16 @@ interface WrMeterSegment {
|
|
|
42
43
|
* bar is an empty track with "No data" under it; `loading` and `error` put their own
|
|
43
44
|
* message there.
|
|
44
45
|
*
|
|
46
|
+
* **What a screen reader gets.** The bar is a `role="progressbar"` that announces the
|
|
47
|
+
* total, so each segment's figure is in text only in the legend, which `showLegend` and
|
|
48
|
+
* `showValues` can leave out. `dataTable` renders every segment shown with its value and
|
|
49
|
+
* its share of the total as a table a reader can walk cell by cell.
|
|
50
|
+
*
|
|
45
51
|
* @see https://ngwr.dev/charts/meter-group
|
|
46
52
|
*/
|
|
47
53
|
export declare class WrMeterGroup {
|
|
48
54
|
constructor();
|
|
49
|
-
/** Accessible name — the role needs one. Falls back to `meterGroup.label`. */
|
|
55
|
+
/** Accessible name — the role needs one. Also the caption of the data table. Falls back to `meterGroup.label`. */
|
|
50
56
|
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
51
57
|
protected readonly resolvedAriaLabel: import("@angular/core").Signal<string>;
|
|
52
58
|
/**
|
|
@@ -122,13 +128,36 @@ export declare class WrMeterGroup {
|
|
|
122
128
|
*/
|
|
123
129
|
readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean | "hoverable", unknown>;
|
|
124
130
|
/**
|
|
125
|
-
* Writes every value in the legend and the
|
|
126
|
-
* as `aria-valuetext`. `null` uses `Intl.NumberFormat` in `LOCALE_ID`.
|
|
131
|
+
* Writes every value in the legend, the tooltip and the data table, and the total the
|
|
132
|
+
* bar announces as `aria-valuetext`. `null` uses `Intl.NumberFormat` in `LOCALE_ID`.
|
|
127
133
|
* `aria-valuenow` stays a number.
|
|
128
134
|
*/
|
|
129
135
|
readonly valueFormat: import("@angular/core").InputSignal<((value: number) => string) | null>;
|
|
130
|
-
/**
|
|
136
|
+
/**
|
|
137
|
+
* Render the meter's figures as a table that only assistive technology reaches: a row
|
|
138
|
+
* per segment shown, headed by its label, with its value as the legend writes it and
|
|
139
|
+
* its share of the total the bar is drawn against, a percentage in `LOCALE_ID`: of
|
|
140
|
+
* `max` when one is set, else of the sum of the segments shown. A segment hidden
|
|
141
|
+
* through `hiddenSegments` has no row, and one that draws nothing has an empty share.
|
|
142
|
+
* The values are listed whatever `showValues` says. The table gives way with the legend
|
|
143
|
+
* while the meter is empty, `loading` or in `error`.
|
|
144
|
+
*
|
|
145
|
+
* The bar announces the total alone, and the legend is optional, so without the table
|
|
146
|
+
* the segments' figures may be nowhere a screen reader can walk. It is rendered beside
|
|
147
|
+
* the bar, clipped to nothing: it takes no room, draws nothing and holds no tab stop.
|
|
148
|
+
* @default false
|
|
149
|
+
*/
|
|
150
|
+
readonly dataTable: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
151
|
+
/** The headings of the data table's two columns. */
|
|
152
|
+
private readonly valueName;
|
|
153
|
+
private readonly shareName;
|
|
154
|
+
/** Each value as the legend, the tooltip, the data table and the bar print it: never compact, in `LOCALE_ID` unless `valueFormat` is given. */
|
|
131
155
|
private readonly numbers;
|
|
156
|
+
private readonly locale;
|
|
157
|
+
/** Shares from one percent up, to one decimal. */
|
|
158
|
+
private readonly shares;
|
|
159
|
+
/** Shares below one percent, to two significant digits, so a sliver does not read `0%`. */
|
|
160
|
+
private readonly smallShares;
|
|
132
161
|
private readonly barEl;
|
|
133
162
|
private readonly sliceEls;
|
|
134
163
|
/**
|
|
@@ -191,6 +220,11 @@ export declare class WrMeterGroup {
|
|
|
191
220
|
}[]>;
|
|
192
221
|
/** The legend's rows: every segment, hidden ones included, with its value unless `showValues` is off. */
|
|
193
222
|
protected readonly legendItems: import("@angular/core").Signal<readonly WrChartLegendItem[]>;
|
|
223
|
+
/**
|
|
224
|
+
* The figures for `dataTable`: the meter's name as the caption, a row per segment shown,
|
|
225
|
+
* and its value and its share of the total as the columns.
|
|
226
|
+
*/
|
|
227
|
+
protected readonly tableData: import("@angular/core").Signal<WrChartTableData>;
|
|
194
228
|
/**
|
|
195
229
|
* One tooltip for the whole bar, pointing at the hovered band, with the value as
|
|
196
230
|
* the legend prints it. Asked by the segment's own position, and the drawn bands are
|
|
@@ -285,6 +319,11 @@ export declare class WrMeterGroup {
|
|
|
285
319
|
"required": false;
|
|
286
320
|
"isSignal": true;
|
|
287
321
|
};
|
|
322
|
+
"dataTable": {
|
|
323
|
+
"alias": "dataTable";
|
|
324
|
+
"required": false;
|
|
325
|
+
"isSignal": true;
|
|
326
|
+
};
|
|
288
327
|
}, {
|
|
289
328
|
"hiddenSegments": "hiddenSegmentsChange";
|
|
290
329
|
}, never, never, true, never>;
|
|
@@ -4,6 +4,16 @@ interface WrSparklineHarnessFilters extends BaseHarnessFilters {
|
|
|
4
4
|
/** Match the sparkline's accessible name — `null` for the decorative ones. */
|
|
5
5
|
readonly ariaLabel?: string | RegExp;
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* One row of the sparkline's data table (`dataTable`): the point's position in the series
|
|
9
|
+
* as its row header, then its value.
|
|
10
|
+
*/
|
|
11
|
+
interface WrSparklineTableRow {
|
|
12
|
+
/** The row header: the point's position, counted from one. */
|
|
13
|
+
readonly header: string;
|
|
14
|
+
/** Its value, as the tooltip writes it. */
|
|
15
|
+
readonly cells: readonly string[];
|
|
16
|
+
}
|
|
7
17
|
/**
|
|
8
18
|
* Test harness for `<wr-sparkline>`.
|
|
9
19
|
*
|
|
@@ -18,7 +28,9 @@ interface WrSparklineHarnessFilters extends BaseHarnessFilters {
|
|
|
18
28
|
* assert: it is a rendering detail that changes with the viewBox, the stroke width
|
|
19
29
|
* and the smoothing. What IS worth asserting is whether the parts are there —
|
|
20
30
|
* {@link hasLine}, {@link hasArea}, {@link hasTip} — since each is an input the
|
|
21
|
-
* consumer set, and an empty dataset draws none of them.
|
|
31
|
+
* consumer set, and an empty dataset draws none of them. The values themselves are in
|
|
32
|
+
* text only in the data table: {@link getTableRows}, for a named sparkline with
|
|
33
|
+
* `dataTable` on.
|
|
22
34
|
*
|
|
23
35
|
* @see https://ngwr.dev/guides/testing
|
|
24
36
|
*/
|
|
@@ -50,5 +62,23 @@ export declare class WrSparklineHarness extends ComponentHarness {
|
|
|
50
62
|
hasTip(): Promise<boolean>;
|
|
51
63
|
/** The stroke colour as the component passed it through — a CSS value, not a resolved one. */
|
|
52
64
|
getColor(): Promise<string | null>;
|
|
65
|
+
/** Whether the hidden data table is rendered (`dataTable`, on a sparkline with an `ariaLabel`). */
|
|
66
|
+
hasDataTable(): Promise<boolean>;
|
|
67
|
+
/**
|
|
68
|
+
* The data table's column headings: the value's name.
|
|
69
|
+
*
|
|
70
|
+
* Throws when the sparkline renders no table (`dataTable` off, or no `ariaLabel`)
|
|
71
|
+
* rather than answering with no columns.
|
|
72
|
+
*/
|
|
73
|
+
getTableColumns(): Promise<string[]>;
|
|
74
|
+
/**
|
|
75
|
+
* The data table's rows, one per point drawn, in order: its position, counted from one,
|
|
76
|
+
* and its value, as a screen reader walks them.
|
|
77
|
+
*
|
|
78
|
+
* Throws when the sparkline renders no table, for the reason {@link getTableColumns}
|
|
79
|
+
* gives.
|
|
80
|
+
*/
|
|
81
|
+
getTableRows(): Promise<WrSparklineTableRow[]>;
|
|
82
|
+
private assertDataTable;
|
|
53
83
|
}
|
|
54
|
-
export type { WrSparklineHarnessFilters };
|
|
84
|
+
export type { WrSparklineHarnessFilters, WrSparklineTableRow };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
+
import { WrChartTableData } from "ngwr/charts/core";
|
|
2
3
|
/**
|
|
3
4
|
* Tiny inline trend line. SVG path drawn from `[data]: number[]` — no
|
|
4
5
|
* axes, no labels, just the shape. Optional area fill + tip dot.
|
|
@@ -14,6 +15,10 @@ import * as i0 from "@angular/core";
|
|
|
14
15
|
* <wr-sparkline [data]="prices" [showArea]="true" color="var(--wr-color-success)" />
|
|
15
16
|
* ```
|
|
16
17
|
*
|
|
18
|
+
* **What a screen reader gets.** Nothing by default: the drawing is `aria-hidden` until
|
|
19
|
+
* `ariaLabel` names it, and then it is one `role="img"` with that name and no figure.
|
|
20
|
+
* `dataTable` renders the values of a named sparkline as a table a reader can walk.
|
|
21
|
+
*
|
|
17
22
|
* @see https://ngwr.dev/charts/sparkline
|
|
18
23
|
*/
|
|
19
24
|
export declare class WrSparkline {
|
|
@@ -26,7 +31,8 @@ export declare class WrSparkline {
|
|
|
26
31
|
/**
|
|
27
32
|
* Accessible name. A sparkline usually sits beside the number it summarises, where
|
|
28
33
|
* announcing it again is noise — so it is `aria-hidden` by default and becomes a
|
|
29
|
-
* named `role="img"` only when a consumer says what it shows.
|
|
34
|
+
* named `role="img"` only when a consumer says what it shows. It is also the caption of
|
|
35
|
+
* the data table, which an unnamed sparkline does not render.
|
|
30
36
|
*/
|
|
31
37
|
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
32
38
|
/**
|
|
@@ -58,11 +64,33 @@ export declare class WrSparkline {
|
|
|
58
64
|
*/
|
|
59
65
|
readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean | "hoverable", unknown>;
|
|
60
66
|
/**
|
|
61
|
-
* Writes the value in the tooltip. `null` uses `Intl.NumberFormat`
|
|
67
|
+
* Writes the value in the tooltip and in the data table. `null` uses `Intl.NumberFormat`
|
|
68
|
+
* in `LOCALE_ID`.
|
|
62
69
|
*/
|
|
63
70
|
readonly valueFormat: import("@angular/core").InputSignal<((value: number) => string) | null>;
|
|
64
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* Render the sparkline's values as a table that only assistive technology reaches: a
|
|
73
|
+
* row per point drawn, headed by its position in the series, counted from one, with its
|
|
74
|
+
* value as the tooltip writes it. A value that is not a number is not drawn and has no
|
|
75
|
+
* row.
|
|
76
|
+
*
|
|
77
|
+
* Only with `ariaLabel`, which is the table's caption: a sparkline with no name is
|
|
78
|
+
* decoration, hidden from a screen reader as a whole, and renders no table. The drawing
|
|
79
|
+
* is one named `role="img"`, which carries the name and no figure, so without the table
|
|
80
|
+
* the values are nowhere a screen reader can walk. It is rendered beside the drawing,
|
|
81
|
+
* clipped to nothing: it takes no room, draws nothing and holds no tab stop.
|
|
82
|
+
*
|
|
83
|
+
* The table is a real `<table>` inside the host, so under SSR keep a sparkline that
|
|
84
|
+
* renders one out of a `<p>`: the HTML parser ends a paragraph at a table, and hydration
|
|
85
|
+
* then meets a tree the server did not render. @default false
|
|
86
|
+
*/
|
|
87
|
+
readonly dataTable: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
88
|
+
/** The heading of the data table's one column. */
|
|
89
|
+
private readonly valueName;
|
|
90
|
+
/** The value as the tooltip and the data table write it — in full, never compact, to `Intl`'s default precision. */
|
|
65
91
|
private readonly numbers;
|
|
92
|
+
/** A point's position in the series, in `LOCALE_ID`'s digits. */
|
|
93
|
+
private readonly positions;
|
|
66
94
|
private readonly host;
|
|
67
95
|
private readonly svg;
|
|
68
96
|
private readonly marker;
|
|
@@ -77,6 +105,12 @@ export declare class WrSparkline {
|
|
|
77
105
|
* the one under the point it marks.
|
|
78
106
|
*/
|
|
79
107
|
private readonly values;
|
|
108
|
+
/**
|
|
109
|
+
* The figures for `dataTable`, or `null` while there is no table to render: `dataTable`
|
|
110
|
+
* is off, or the sparkline has no name to caption it with. A row per point drawn, headed
|
|
111
|
+
* by its position, and its value as the one column.
|
|
112
|
+
*/
|
|
113
|
+
protected readonly tableData: import("@angular/core").Signal<WrChartTableData | null>;
|
|
80
114
|
/** Mapped `{ x, y }` points for the path. */
|
|
81
115
|
protected readonly points: import("@angular/core").Signal<readonly {
|
|
82
116
|
x: number;
|
|
@@ -189,5 +223,10 @@ export declare class WrSparkline {
|
|
|
189
223
|
"required": false;
|
|
190
224
|
"isSignal": true;
|
|
191
225
|
};
|
|
226
|
+
"dataTable": {
|
|
227
|
+
"alias": "dataTable";
|
|
228
|
+
"required": false;
|
|
229
|
+
"isSignal": true;
|
|
230
|
+
};
|
|
192
231
|
}, {}, never, never, true, never>;
|
|
193
232
|
}
|
package/types/ngwr-checkbox.d.ts
CHANGED
|
@@ -125,6 +125,13 @@ export declare class WrCheckbox implements FormCheckboxControl {
|
|
|
125
125
|
readonly indeterminate: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
126
126
|
private readonly group;
|
|
127
127
|
private readonly native;
|
|
128
|
+
private readonly textEl;
|
|
129
|
+
private readonly destroyRef;
|
|
130
|
+
/**
|
|
131
|
+
* Whether the projected content names the box. Assumed `true` until the first
|
|
132
|
+
* render has looked, so the server renders the own-label path.
|
|
133
|
+
*/
|
|
134
|
+
private readonly hasText;
|
|
128
135
|
/** Rendered "is checked" — reads the group when grouped, else the `checked` model. */
|
|
129
136
|
protected readonly isChecked: import("@angular/core").Signal<boolean>;
|
|
130
137
|
/** Effective disabled — the `disabled` input wins, then the group. */
|
|
@@ -141,6 +148,13 @@ export declare class WrCheckbox implements FormCheckboxControl {
|
|
|
141
148
|
protected readonly ariaInvalid: import("@angular/core").Signal<"true" | null>;
|
|
142
149
|
protected readonly describedBy: import("@angular/core").Signal<string | null>;
|
|
143
150
|
protected readonly ariaRequired: import("@angular/core").Signal<"true" | null>;
|
|
151
|
+
/**
|
|
152
|
+
* The input's `aria-labelledby`. The consumer's wins; otherwise a box with no
|
|
153
|
+
* text of its own and no `ariaLabel` is named by the surrounding field's
|
|
154
|
+
* label. A box WITH text keeps that text as its name, never joined to the
|
|
155
|
+
* field's label, and a grouped box leaves the naming to the group.
|
|
156
|
+
*/
|
|
157
|
+
protected readonly labelledBy: import("@angular/core").Signal<string | null>;
|
|
144
158
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
145
159
|
/**
|
|
146
160
|
* Focus the checkbox — what Signal Forms calls to focus this control. The
|
|
@@ -284,7 +284,7 @@ export declare class WrColorPickerTriggerHarness extends ComponentHarness {
|
|
|
284
284
|
* the top-most overlay — so this does not depend on where focus happens to be.
|
|
285
285
|
*/
|
|
286
286
|
sendEscape(): Promise<void>;
|
|
287
|
-
/** The
|
|
287
|
+
/** The `aria-haspopup` the trigger carries: `null`, since the pane is not a named dialog. */
|
|
288
288
|
getHasPopup(): Promise<string | null>;
|
|
289
289
|
}
|
|
290
290
|
export type { WrColorPickerHarnessFilters, WrColorPickerTab, WrColorPickerThumbs, WrColorPickerTriggerHarnessFilters };
|
|
@@ -121,6 +121,7 @@ export declare class WrCommandPalette {
|
|
|
121
121
|
protected readonly activeIndex: import("@angular/core").WritableSignal<number>;
|
|
122
122
|
protected readonly inputEl: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
123
123
|
protected readonly panelEl: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
124
|
+
private readonly rootEl;
|
|
124
125
|
/** Listbox id (referenced by the input's `aria-controls`). */
|
|
125
126
|
protected readonly listboxId: string;
|
|
126
127
|
/** @internal Build a stable option id for a given flat index. */
|
|
@@ -139,7 +140,7 @@ export declare class WrCommandPalette {
|
|
|
139
140
|
private readonly destroyRef;
|
|
140
141
|
private readonly focusTrapFactory;
|
|
141
142
|
private readonly isBrowser;
|
|
142
|
-
private readonly
|
|
143
|
+
private readonly scrollBlockService;
|
|
143
144
|
private readonly overlayContainer;
|
|
144
145
|
private bindingHandle;
|
|
145
146
|
private focusTrap;
|
|
@@ -34,6 +34,8 @@ export declare class WrDateStampHarness extends ComponentHarness {
|
|
|
34
34
|
getDate(): Promise<string | null>;
|
|
35
35
|
/** The second line, or `null` when the stamp is empty or shows a date-only value. */
|
|
36
36
|
getTime(): Promise<string | null>;
|
|
37
|
+
/** The relative line ("5 minutes ago"), or `null` when the stamp is empty or not `relative`. */
|
|
38
|
+
getRelative(): Promise<string | null>;
|
|
37
39
|
/**
|
|
38
40
|
* The `datetime` attribute: the instant in ISO 8601 (UTC), or `yyyy-MM-dd` for a
|
|
39
41
|
* date-only value. `null` when the stamp is empty.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { WrDateFormat, WrEpochUnit } from "ngwr/date";
|
|
3
3
|
interface Stamp {
|
|
4
|
+
readonly at: Date;
|
|
5
|
+
readonly dayOnly: boolean;
|
|
4
6
|
readonly iso: string;
|
|
5
7
|
readonly date: string | null;
|
|
6
8
|
readonly time: string | null;
|
|
@@ -16,8 +18,12 @@ interface Stamp {
|
|
|
16
18
|
* (`'2026-11-12'`) is a day, so it shows the date line alone and does not
|
|
17
19
|
* shift with the zone.
|
|
18
20
|
*
|
|
19
|
-
* `
|
|
20
|
-
*
|
|
21
|
+
* `relative` shows how far the moment is from now instead ("5 minutes ago"),
|
|
22
|
+
* and keeps that text current on a timer. The date and the time stay in the
|
|
23
|
+
* `title` of the `<time>`.
|
|
24
|
+
*
|
|
25
|
+
* `withDates({ stamp })` sets the formats, `todayTimeOnly`, `seconds` and
|
|
26
|
+
* `relative` for every stamp of the app; an input set here wins.
|
|
21
27
|
*
|
|
22
28
|
* The lines sit in one `<time>` whose `datetime` is the instant in ISO 8601,
|
|
23
29
|
* or the day for a date-only string. `null`, `undefined`, `''` and a value
|
|
@@ -28,6 +34,7 @@ interface Stamp {
|
|
|
28
34
|
* <wr-date-stamp [value]="row.createdAt" />
|
|
29
35
|
* <wr-date-stamp [value]="row.createdAt" dateFormat="d MMM yyyy" timeFormat="time24hSeconds" />
|
|
30
36
|
* <wr-date-stamp [value]="message.sentAt" todayTimeOnly seconds />
|
|
37
|
+
* <wr-date-stamp [value]="comment.createdAt" relative />
|
|
31
38
|
* ```
|
|
32
39
|
*
|
|
33
40
|
* @see https://ngwr.dev/reference/components/date-stamp
|
|
@@ -73,6 +80,19 @@ export declare class WrDateStamp {
|
|
|
73
80
|
* @default false
|
|
74
81
|
*/
|
|
75
82
|
readonly todayTimeOnly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
83
|
+
/**
|
|
84
|
+
* Show how far the moment is from now ("5 minutes ago", "tomorrow") in
|
|
85
|
+
* place of the two lines, as `wrFormatRelativeTime` writes it, in the
|
|
86
|
+
* language the stamp formats in. The text is kept current: it is written
|
|
87
|
+
* again each second under a minute, each minute under an hour, each hour
|
|
88
|
+
* under a day and each day after that, from a timer that starts after the
|
|
89
|
+
* first render and never on the server. The date and the time move to the
|
|
90
|
+
* `title` of the `<time>`. A date-only value is compared as a day ("today",
|
|
91
|
+
* "yesterday"). `withDates({ stamp })` changes the default.
|
|
92
|
+
*
|
|
93
|
+
* @default false
|
|
94
|
+
*/
|
|
95
|
+
readonly relative: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
76
96
|
/**
|
|
77
97
|
* What a number in `value` counts since the epoch: `'ms'`, `'us'`, `'s'` or
|
|
78
98
|
* `'auto'`, by size. `null` follows `withDates({ epochUnit })`.
|
|
@@ -85,6 +105,20 @@ export declare class WrDateStamp {
|
|
|
85
105
|
protected readonly resolvedEmptyLabel: import("@angular/core").Signal<string>;
|
|
86
106
|
private readonly adapter;
|
|
87
107
|
protected readonly parts: import("@angular/core").Signal<Stamp | null>;
|
|
108
|
+
private readonly locale;
|
|
109
|
+
/**
|
|
110
|
+
* The current time the relative text is measured from. The timer moves it,
|
|
111
|
+
* and a new value or `relative` turned on reads the clock again: a stamp of
|
|
112
|
+
* last year ticks once a day, and must not measure the next value from then.
|
|
113
|
+
*/
|
|
114
|
+
private readonly now;
|
|
115
|
+
/** Midnight of today in the display zone, which a date-only value is compared with. */
|
|
116
|
+
private readonly today;
|
|
117
|
+
protected readonly relativeText: import("@angular/core").Signal<string | null>;
|
|
118
|
+
/** The two lines as one, for the `title` a relative stamp keeps them in. */
|
|
119
|
+
protected readonly title: import("@angular/core").Signal<string | null>;
|
|
120
|
+
/** Milliseconds to the next change of the relative text, `null` when there is none to keep current. */
|
|
121
|
+
private untilNextText;
|
|
88
122
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrDateStamp, never>;
|
|
89
123
|
static ɵcmp: i0.ɵɵComponentDeclaration<WrDateStamp, "wr-date-stamp", never, {
|
|
90
124
|
"value": {
|
|
@@ -112,6 +146,11 @@ export declare class WrDateStamp {
|
|
|
112
146
|
"required": false;
|
|
113
147
|
"isSignal": true;
|
|
114
148
|
};
|
|
149
|
+
"relative": {
|
|
150
|
+
"alias": "relative";
|
|
151
|
+
"required": false;
|
|
152
|
+
"isSignal": true;
|
|
153
|
+
};
|
|
115
154
|
"epochUnit": {
|
|
116
155
|
"alias": "epochUnit";
|
|
117
156
|
"required": false;
|
package/types/ngwr-date.d.ts
CHANGED
|
@@ -93,6 +93,8 @@ interface WrDateStampDefaults {
|
|
|
93
93
|
readonly todayTimeOnly?: boolean;
|
|
94
94
|
/** Write the seconds in the time line. Default: `false`. */
|
|
95
95
|
readonly seconds?: boolean;
|
|
96
|
+
/** Show how far the moment is from now, kept current, in place of the two lines. Default: `false`. */
|
|
97
|
+
readonly relative?: boolean;
|
|
96
98
|
}
|
|
97
99
|
/**
|
|
98
100
|
* Options for `withDates()`.
|
|
@@ -156,7 +158,7 @@ interface WrDatesOptions {
|
|
|
156
158
|
readonly zonelessIn?: WrZonelessIn;
|
|
157
159
|
/**
|
|
158
160
|
* App-wide defaults of `wr-date-stamp`: `dateFormat`, `timeFormat`,
|
|
159
|
-
* `todayTimeOnly` and `
|
|
161
|
+
* `todayTimeOnly`, `seconds` and `relative`. An input set on a stamp wins.
|
|
160
162
|
*/
|
|
161
163
|
readonly stamp?: WrDateStampDefaults;
|
|
162
164
|
}
|
|
@@ -2,7 +2,8 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
/**
|
|
3
3
|
* Read-only labeled key / value list. Project `<wr-description-item>`
|
|
4
4
|
* children. `title` is optional. Default layout stacks vertically; set
|
|
5
|
-
* `[inline]="true"` for label-left / value-right rows
|
|
5
|
+
* `[inline]="true"` for label-left / value-right rows, and `columns` for a
|
|
6
|
+
* grid of several items per row.
|
|
6
7
|
*
|
|
7
8
|
* @example
|
|
8
9
|
* ```html
|
|
@@ -24,12 +25,20 @@ export declare class WrDescriptions {
|
|
|
24
25
|
/** Add visible borders around each row. @default false */
|
|
25
26
|
readonly bordered: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
26
27
|
/**
|
|
27
|
-
* Reflow `inline` rows back to a stacked layout
|
|
28
|
-
*
|
|
29
|
-
* adapts inside a narrow card or side
|
|
30
|
-
* container's width. @default false
|
|
28
|
+
* Reflow `inline` rows back to a stacked layout, and a `columns` grid back
|
|
29
|
+
* to one column, when the box itself is narrow (a container query on its
|
|
30
|
+
* own width, not the viewport — so it adapts inside a narrow card or side
|
|
31
|
+
* panel). Makes the box fill its container's width. @default false
|
|
31
32
|
*/
|
|
32
33
|
readonly responsive: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
34
|
+
/**
|
|
35
|
+
* How many items a row holds, as equal columns. An item takes more of them
|
|
36
|
+
* with its `span`.
|
|
37
|
+
*
|
|
38
|
+
* @default 1
|
|
39
|
+
*/
|
|
40
|
+
readonly columns: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
41
|
+
protected readonly grid: import("@angular/core").Signal<boolean>;
|
|
33
42
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
34
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrDescriptions, never>;
|
|
35
44
|
static ɵcmp: i0.ɵɵComponentDeclaration<WrDescriptions, "wr-descriptions", never, {
|
|
@@ -53,6 +62,11 @@ export declare class WrDescriptions {
|
|
|
53
62
|
"required": false;
|
|
54
63
|
"isSignal": true;
|
|
55
64
|
};
|
|
65
|
+
"columns": {
|
|
66
|
+
"alias": "columns";
|
|
67
|
+
"required": false;
|
|
68
|
+
"isSignal": true;
|
|
69
|
+
};
|
|
56
70
|
}, {}, never, ["*"], true, never>;
|
|
57
71
|
}
|
|
58
72
|
/**
|
|
@@ -60,12 +74,21 @@ export declare class WrDescriptions {
|
|
|
60
74
|
* `label` input; the value is the projected content.
|
|
61
75
|
*/
|
|
62
76
|
export declare class WrDescriptionItem {
|
|
77
|
+
private readonly list;
|
|
63
78
|
constructor();
|
|
64
79
|
/**
|
|
65
80
|
* The term shown beside the projected value — "Email", "Created". Keep it a
|
|
66
81
|
* noun: it is read as the name of the value, not as a sentence.
|
|
67
82
|
*/
|
|
68
83
|
readonly label: import("@angular/core").InputSignal<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Columns the item takes in a list with `columns`. A number above the
|
|
86
|
+
* list's `columns` takes the whole row.
|
|
87
|
+
*
|
|
88
|
+
* @default 1
|
|
89
|
+
*/
|
|
90
|
+
readonly span: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
91
|
+
protected readonly track: import("@angular/core").Signal<number | null>;
|
|
69
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrDescriptionItem, never>;
|
|
70
93
|
static ɵcmp: i0.ɵɵComponentDeclaration<WrDescriptionItem, "wr-description-item", never, {
|
|
71
94
|
"label": {
|
|
@@ -73,5 +96,10 @@ export declare class WrDescriptionItem {
|
|
|
73
96
|
"required": false;
|
|
74
97
|
"isSignal": true;
|
|
75
98
|
};
|
|
99
|
+
"span": {
|
|
100
|
+
"alias": "span";
|
|
101
|
+
"required": false;
|
|
102
|
+
"isSignal": true;
|
|
103
|
+
};
|
|
76
104
|
}, {}, never, ["*"], true, never>;
|
|
77
105
|
}
|
package/types/ngwr-dialog.d.ts
CHANGED
|
@@ -288,7 +288,7 @@ type WrDialogDefaults = Pick<WrDialogOptions, 'tabTitle' | 'autoFocus' | 'size'>
|
|
|
288
288
|
*/
|
|
289
289
|
export declare class WrDialog {
|
|
290
290
|
private readonly overlay;
|
|
291
|
-
private readonly
|
|
291
|
+
private readonly scrollBlock;
|
|
292
292
|
private readonly parentInjector;
|
|
293
293
|
private readonly focusTrapFactory;
|
|
294
294
|
private readonly isBrowser;
|
|
@@ -468,8 +468,8 @@ export declare const WR_DIALOG_REF: InjectionToken<WrDialogRef<unknown, unknown>
|
|
|
468
468
|
export declare function withDialog(defaults: WrDialogDefaults): WrFeature<'dialog'>;
|
|
469
469
|
/**
|
|
470
470
|
* Styles a dialog title row. Use on a heading inside an opened dialog.
|
|
471
|
-
*
|
|
472
|
-
* `aria-labelledby`.
|
|
471
|
+
* Keeps an `id` of your own and otherwise assigns one, so the dialog panel
|
|
472
|
+
* can reference it via `aria-labelledby`.
|
|
473
473
|
*
|
|
474
474
|
* @example
|
|
475
475
|
* ```html
|
|
@@ -478,10 +478,15 @@ export declare function withDialog(defaults: WrDialogDefaults): WrFeature<'dialo
|
|
|
478
478
|
*/
|
|
479
479
|
export declare class WrDialogTitle {
|
|
480
480
|
constructor();
|
|
481
|
-
/** Generated id used for `aria-labelledby` wiring. */
|
|
482
|
-
readonly id: string;
|
|
483
481
|
/** @internal */
|
|
484
|
-
readonly elementRef: ElementRef<
|
|
482
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
483
|
+
private readonly fallbackId;
|
|
484
|
+
/**
|
|
485
|
+
* The id the dialog's `aria-labelledby` points at: the element's own `id` when
|
|
486
|
+
* the consumer set one, a generated one otherwise. A getter, read fresh by the
|
|
487
|
+
* host binding, so a bound `[id]` is honoured too.
|
|
488
|
+
*/
|
|
489
|
+
get id(): string;
|
|
485
490
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogTitle, never>;
|
|
486
491
|
static ɵdir: i0.ɵɵDirectiveDeclaration<WrDialogTitle, "[wrDialogTitle]", ["wrDialogTitle"], {}, {}, never, never, true, never>;
|
|
487
492
|
}
|
|
@@ -53,6 +53,7 @@ export declare class WrAutosize {
|
|
|
53
53
|
readonly maxRows: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
54
54
|
private readonly el;
|
|
55
55
|
private readonly isBrowser;
|
|
56
|
+
private readonly destroyRef;
|
|
56
57
|
private lastValue;
|
|
57
58
|
constructor();
|
|
58
59
|
/** @internal */
|
package/types/ngwr-drawer.d.ts
CHANGED
|
@@ -211,6 +211,7 @@ export declare class WrDrawer {
|
|
|
211
211
|
private readonly focusMonitor;
|
|
212
212
|
private readonly overlay;
|
|
213
213
|
private readonly order;
|
|
214
|
+
private readonly scrollBlock;
|
|
214
215
|
private readonly vcr;
|
|
215
216
|
private readonly destroyRef;
|
|
216
217
|
private readonly injector;
|
|
@@ -442,6 +443,7 @@ export declare class WrDrawerRef<C, R = unknown> {
|
|
|
442
443
|
export declare class WrDrawerManager {
|
|
443
444
|
private readonly overlay;
|
|
444
445
|
private readonly scrollStrategies;
|
|
446
|
+
private readonly scrollBlock;
|
|
445
447
|
private readonly parentInjector;
|
|
446
448
|
private readonly focusTrapFactory;
|
|
447
449
|
private readonly plainFocusTrapFactory;
|
|
@@ -538,8 +540,8 @@ export declare const WR_DRAWER_REF: InjectionToken<WrDrawerRef<unknown, unknown>
|
|
|
538
540
|
/**
|
|
539
541
|
* Marks an element as the drawer's title row. Applies the `wr-drawer__title`
|
|
540
542
|
* class so the drawer's stylesheet can lay it out alongside content and
|
|
541
|
-
* footer slots.
|
|
542
|
-
* `aria-labelledby`.
|
|
543
|
+
* footer slots. Keeps an `id` of your own and otherwise assigns one, so the drawer panel
|
|
544
|
+
* references it via `aria-labelledby`.
|
|
543
545
|
*
|
|
544
546
|
* @example
|
|
545
547
|
* ```html
|
|
@@ -551,8 +553,14 @@ export declare const WR_DRAWER_REF: InjectionToken<WrDrawerRef<unknown, unknown>
|
|
|
551
553
|
*/
|
|
552
554
|
export declare class WrDrawerTitle {
|
|
553
555
|
constructor();
|
|
554
|
-
|
|
555
|
-
readonly
|
|
556
|
+
private readonly host;
|
|
557
|
+
private readonly fallbackId;
|
|
558
|
+
/**
|
|
559
|
+
* The id the drawer panel's `aria-labelledby` points at: the element's own
|
|
560
|
+
* `id` when the consumer set one, a generated one otherwise. A getter, read
|
|
561
|
+
* fresh by the host binding, so a bound `[id]` is honoured too.
|
|
562
|
+
*/
|
|
563
|
+
get id(): string;
|
|
556
564
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrDrawerTitle, never>;
|
|
557
565
|
static ɵdir: i0.ɵɵDirectiveDeclaration<WrDrawerTitle, "[wrDrawerTitle]", ["wrDrawerTitle"], {}, {}, never, never, true, never>;
|
|
558
566
|
}
|
|
@@ -236,7 +236,7 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
236
236
|
readonly storedRemove: import("@angular/core").OutputEmitterRef<WrStoredFile>;
|
|
237
237
|
/** Emitted with the file when the retry button of a failed row is pressed. */
|
|
238
238
|
readonly retry: import("@angular/core").OutputEmitterRef<File>;
|
|
239
|
-
/** Emitted on commit so a bound field can mark itself touched. */
|
|
239
|
+
/** Emitted on commit and when focus leaves the drop zone, so a bound field can mark itself touched. */
|
|
240
240
|
readonly touch: import("@angular/core").OutputEmitterRef<void>;
|
|
241
241
|
protected readonly picker: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
242
242
|
private readonly zone;
|
package/types/ngwr-form.d.ts
CHANGED
|
@@ -586,6 +586,10 @@ interface WrFieldSpec {
|
|
|
586
586
|
readonly multiple?: boolean;
|
|
587
587
|
/** For `file`: the native `accept` list, e.g. `'image/*,.pdf'`. */
|
|
588
588
|
readonly accept?: string;
|
|
589
|
+
/** For `file`: the most bytes one file may have. A larger file is refused. Unset or `0` is no limit. */
|
|
590
|
+
readonly maxSize?: number;
|
|
591
|
+
/** For `file` with `multiple`: the most files the field holds. A file past it is refused. Unset or `0` is no limit. */
|
|
592
|
+
readonly maxFiles?: number;
|
|
589
593
|
/**
|
|
590
594
|
* For `array`: the value a new item starts as. It is what draws the Add
|
|
591
595
|
* button, and an array with no `item` is a fixed list whose items can only be
|
package/types/ngwr-hotkey.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ import { WrKey } from "ngwr/utils";
|
|
|
12
12
|
* Modifiers: `ctrl`, `alt`, `shift`, `meta`, `cmd` (alias for `meta`),
|
|
13
13
|
* `mod` (auto: `cmd` on macOS, `ctrl` elsewhere). Last token is the key.
|
|
14
14
|
*
|
|
15
|
+
* The plus key is a trailing `+` or `plus`: `'mod++'`, `'mod+plus'`.
|
|
16
|
+
*
|
|
15
17
|
* Examples: `'ctrl+k'`, `'cmd+shift+p'`, `'escape'`, `'mod+/'`, `'ArrowDown'`.
|
|
16
18
|
*/
|
|
17
19
|
type WrHotkeySpec = string;
|