ngwr 16.4.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/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-carousel-testing.mjs +4 -1
- package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +21 -2
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader-testing.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +48 -4
- 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 +47 -19
- 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 +35 -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-graph.mjs +81 -13
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +5 -0
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +5 -0
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +5 -0
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +5 -0
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +5 -0
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +5 -0
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +5 -0
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +5 -0
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +5 -0
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +5 -0
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +5 -0
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +5 -0
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +5 -0
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +5 -0
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +5 -0
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +5 -0
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +5 -0
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +5 -0
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +5 -0
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +5 -0
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +5 -0
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +5 -0
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +20 -3
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +21 -2
- package/fesm2022/ngwr-overlay.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 +2 -0
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +2 -0
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +14 -9
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +49 -16
- package/fesm2022/ngwr-tree.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/i18n/ar.json +5 -0
- package/i18n/cs.json +5 -0
- package/i18n/de.json +5 -0
- package/i18n/en.json +5 -0
- package/i18n/es.json +5 -0
- package/i18n/fr.json +5 -0
- package/i18n/he.json +5 -0
- package/i18n/hi.json +5 -0
- package/i18n/id.json +5 -0
- package/i18n/it.json +5 -0
- package/i18n/ja.json +5 -0
- package/i18n/ko.json +5 -0
- package/i18n/nl.json +5 -0
- package/i18n/pl.json +5 -0
- package/i18n/pt.json +5 -0
- package/i18n/ru.json +5 -0
- package/i18n/sv.json +5 -0
- package/i18n/tr.json +5 -0
- package/i18n/uk.json +5 -0
- package/i18n/vi.json +5 -0
- package/i18n/zh-TW.json +5 -0
- package/i18n/zh.json +5 -0
- package/llms-full.txt +8 -8
- package/llms.txt +7 -3
- package/package.json +1 -1
- package/popconfirm/styles/_index.scss +6 -0
- package/popover/styles/_index.scss +24 -13
- package/schematics/use/symbol-map.json +1 -0
- package/skills/ngwr/references/catalog.md +1 -1
- package/tour/styles/_index.scss +6 -0
- package/types/ngwr-carousel-testing.d.ts +6 -4
- package/types/ngwr-carousel.d.ts +14 -3
- package/types/ngwr-cascader-testing.d.ts +4 -3
- package/types/ngwr-cascader.d.ts +27 -3
- 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 +17 -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 +29 -6
- package/types/ngwr-graph.d.ts +22 -6
- 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-table.d.ts +1 -1
- package/types/ngwr-tour.d.ts +21 -2
- package/types/ngwr-tree-testing.d.ts +1 -2
- package/types/ngwr-tree.d.ts +33 -2
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window.d.ts +14 -11
- package/window/styles/_index.scss +5 -10
package/types/ngwr-dropdown.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { TemplateRef } from "@angular/core";
|
|
3
3
|
import { WrClassInput } from "ngwr/utils";
|
|
4
|
-
import { ConnectedPosition } from "@angular/cdk/overlay";
|
|
5
4
|
import { WrAnchoredPosition } from "ngwr/overlay";
|
|
5
|
+
import { ConnectedPosition } from "@angular/cdk/overlay";
|
|
6
6
|
/**
|
|
7
7
|
* Holds the menu content rendered when a {@link WrDropdown} opens.
|
|
8
8
|
*
|
|
@@ -94,6 +94,18 @@ export declare class WrDropdown {
|
|
|
94
94
|
* @default false
|
|
95
95
|
*/
|
|
96
96
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
97
|
+
/**
|
|
98
|
+
* Focus the first item when a click, a key or `open()` opens the menu. Off,
|
|
99
|
+
* focus stays on the trigger and ArrowDown / ArrowUp there walk into the menu
|
|
100
|
+
* at its first / last item; a letter jumps to the item it starts. A pointer
|
|
101
|
+
* hovering a `trigger="hover"` menu never moves focus.
|
|
102
|
+
*
|
|
103
|
+
* Prefixed because the directive sits on your own element, where an
|
|
104
|
+
* `autoFocus` attribute would also be the native `autofocus`.
|
|
105
|
+
*
|
|
106
|
+
* @default false
|
|
107
|
+
*/
|
|
108
|
+
readonly autoFocus: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
97
109
|
/**
|
|
98
110
|
* Extra CSS classes for the menu's overlay pane.
|
|
99
111
|
*
|
|
@@ -154,6 +166,8 @@ export declare class WrDropdown {
|
|
|
154
166
|
private overlayRef;
|
|
155
167
|
/** The root menu's link to the submenus open below it. */
|
|
156
168
|
private level;
|
|
169
|
+
/** The open root menu's type-ahead, for a letter typed on the trigger. */
|
|
170
|
+
private typeInMenu;
|
|
157
171
|
constructor();
|
|
158
172
|
/** Open the menu. Does nothing while the trigger is disabled. */
|
|
159
173
|
open(): void;
|
|
@@ -165,10 +179,10 @@ export declare class WrDropdown {
|
|
|
165
179
|
/**
|
|
166
180
|
* Whether the pointer, rather than the keyboard, opened the current menu.
|
|
167
181
|
*
|
|
168
|
-
* A hover-opened menu must not take focus — the APG
|
|
169
|
-
* leaves the caret where it was
|
|
170
|
-
*
|
|
171
|
-
*
|
|
182
|
+
* A hover-opened menu must not take focus, even under `wrDropdownAutoFocus` — the APG
|
|
183
|
+
* shows a menu on hover and leaves the caret where it was. The trigger MODE
|
|
184
|
+
* cannot answer that on its own: a `trigger="hover"` menu is still openable
|
|
185
|
+
* with Enter, and that open follows `wrDropdownAutoFocus`.
|
|
172
186
|
*/
|
|
173
187
|
private openedByPointer;
|
|
174
188
|
protected onClick(event: MouseEvent): void;
|
|
@@ -194,7 +208,11 @@ export declare class WrDropdown {
|
|
|
194
208
|
* its way out of the document.
|
|
195
209
|
*/
|
|
196
210
|
private closeOverlay;
|
|
197
|
-
/**
|
|
211
|
+
/**
|
|
212
|
+
* @internal Trigger keydown — ArrowDown/Up/Enter/Space open the menu. While
|
|
213
|
+
* it is open the arrows reach `handleMenuKeydown` through the overlay, and a
|
|
214
|
+
* letter goes to the menu's type-ahead.
|
|
215
|
+
*/
|
|
198
216
|
protected onKeydown(event: KeyboardEvent): void;
|
|
199
217
|
private handleMenuKeydown;
|
|
200
218
|
/** The focus stops of `pane`, the root menu's own by default. */
|
|
@@ -232,6 +250,11 @@ export declare class WrDropdown {
|
|
|
232
250
|
"required": false;
|
|
233
251
|
"isSignal": true;
|
|
234
252
|
};
|
|
253
|
+
"autoFocus": {
|
|
254
|
+
"alias": "wrDropdownAutoFocus";
|
|
255
|
+
"required": false;
|
|
256
|
+
"isSignal": true;
|
|
257
|
+
};
|
|
235
258
|
"panelClass": {
|
|
236
259
|
"alias": "panelClass";
|
|
237
260
|
"required": false;
|
package/types/ngwr-graph.d.ts
CHANGED
|
@@ -234,17 +234,20 @@ export declare class WrGraph<TData = unknown> {
|
|
|
234
234
|
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
235
235
|
/**
|
|
236
236
|
* Lets the viewport zoom and pan instead of scrolling: `Ctrl` or `⌘` with the
|
|
237
|
-
* wheel, a pinch, a drag on the field, the keyboard and three buttons.
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
237
|
+
* wheel, a pinch, a drag on the field, the keyboard and three buttons. A plain
|
|
238
|
+
* wheel or a two-finger scroll pans while the drawing has more to show that
|
|
239
|
+
* way, and scrolls the page once it has none. The drawing is fitted on first
|
|
240
|
+
* draw and whenever the layout changes its size, until the view is moved by
|
|
241
|
+
* hand. A touch drag on the graph then pans it rather than scrolling the page.
|
|
241
242
|
*
|
|
242
243
|
* @default false
|
|
243
244
|
*/
|
|
244
245
|
readonly zoomable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
245
246
|
/**
|
|
246
|
-
* Lets a plain wheel zoom, with no modifier key. The
|
|
247
|
-
* scrolls while the pointer is over the graph.
|
|
247
|
+
* Lets a plain wheel zoom, with no modifier key. The wheel then never pans,
|
|
248
|
+
* and the page no longer scrolls while the pointer is over the graph. Without
|
|
249
|
+
* it a plain wheel pans the drawing, and scrolls the page once the drawing has
|
|
250
|
+
* nothing more to show in that direction.
|
|
248
251
|
*
|
|
249
252
|
* @default false
|
|
250
253
|
*/
|
|
@@ -359,6 +362,8 @@ export declare class WrGraph<TData = unknown> {
|
|
|
359
362
|
private frameId;
|
|
360
363
|
private readonly pointers;
|
|
361
364
|
private dragging;
|
|
365
|
+
/** The zoom a Safari pinch started from, while one is under way. */
|
|
366
|
+
private pinchFrom;
|
|
362
367
|
/**
|
|
363
368
|
* The visually hidden sentence per node id: its parents, then its children, as
|
|
364
369
|
* name lists. Never a count — the catalogs have no plural forms. A neighbour
|
|
@@ -384,6 +389,8 @@ export declare class WrGraph<TData = unknown> {
|
|
|
384
389
|
private frame;
|
|
385
390
|
/** The fitted transform, or `null` while there is nothing to fit or no box to fit it in. */
|
|
386
391
|
private fitted;
|
|
392
|
+
/** The viewport's padding, which a fit and a scroll both stop at. */
|
|
393
|
+
private insets;
|
|
387
394
|
/** After a new drawing or a new box: fit it, or keep a view moved by hand within reach. */
|
|
388
395
|
private settle;
|
|
389
396
|
/** The transform the next frame will show. */
|
|
@@ -397,6 +404,15 @@ export declare class WrGraph<TData = unknown> {
|
|
|
397
404
|
private zoomBy;
|
|
398
405
|
private panBy;
|
|
399
406
|
private onWheel;
|
|
407
|
+
/**
|
|
408
|
+
* A plain wheel or a two-finger scroll, handled as a scroll container handles
|
|
409
|
+
* it: the drawing moves while it has more to show that way and the event is
|
|
410
|
+
* taken; once it has none the event is left alone and the page scrolls on.
|
|
411
|
+
*/
|
|
412
|
+
private onWheelPan;
|
|
413
|
+
private onGestureStart;
|
|
414
|
+
private onGestureChange;
|
|
415
|
+
private onGestureEnd;
|
|
400
416
|
private onKeydown;
|
|
401
417
|
private onPointerDown;
|
|
402
418
|
private onPointerMove;
|
package/types/ngwr-lightbox.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { Signal, TemplateRef } from "@angular/core";
|
|
3
3
|
import { WrClassInput } from "ngwr/utils";
|
|
4
|
+
import { WrOverlayAutoFocus } from "ngwr/overlay";
|
|
4
5
|
/**
|
|
5
6
|
* Image with click-to-zoom lightbox. The thumbnail is a plain `<img>`
|
|
6
7
|
* with whatever sizing/`object-fit` you give it; clicking opens a CDK
|
|
@@ -51,6 +52,15 @@ export declare class WrLightbox {
|
|
|
51
52
|
* paint. @default null
|
|
52
53
|
*/
|
|
53
54
|
readonly aspectRatio: import("@angular/core").InputSignal<string | number | null>;
|
|
55
|
+
/**
|
|
56
|
+
* Where focus goes when the viewer opens. `'dialog'` puts it on the viewer
|
|
57
|
+
* itself, with no ring, so the keyboard is inside and no button is lit;
|
|
58
|
+
* `'first-tabbable'` puts it on the Close button; `false` leaves it on the
|
|
59
|
+
* thumbnail. The viewer traps Tab in every mode, and closing returns focus to
|
|
60
|
+
* the thumbnail.
|
|
61
|
+
* @default 'dialog'
|
|
62
|
+
*/
|
|
63
|
+
readonly autoFocus: import("@angular/core").InputSignal<WrOverlayAutoFocus>;
|
|
54
64
|
/**
|
|
55
65
|
* Extra CSS classes for the viewer's overlay pane.
|
|
56
66
|
*
|
|
@@ -194,6 +204,11 @@ export declare class WrLightbox {
|
|
|
194
204
|
"required": false;
|
|
195
205
|
"isSignal": true;
|
|
196
206
|
};
|
|
207
|
+
"autoFocus": {
|
|
208
|
+
"alias": "autoFocus";
|
|
209
|
+
"required": false;
|
|
210
|
+
"isSignal": true;
|
|
211
|
+
};
|
|
197
212
|
"panelClass": {
|
|
198
213
|
"alias": "panelClass";
|
|
199
214
|
"required": false;
|
package/types/ngwr-overlay.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { InjectionToken, Injector } from "@angular/core";
|
|
3
|
+
import { FocusTrap } from "@angular/cdk/a11y";
|
|
3
4
|
import { ConnectedPosition, Overlay, OverlayContainer, OverlayRef } from "@angular/cdk/overlay";
|
|
4
5
|
import { Observable } from "rxjs";
|
|
5
6
|
import { Direction, Directionality } from "@angular/cdk/bidi";
|
|
@@ -95,6 +96,20 @@ export declare function wrAnchoredPositions(position: WrAnchoredPosition, option
|
|
|
95
96
|
* @param onClose Invoked on click.
|
|
96
97
|
*/
|
|
97
98
|
export declare function wrAppendOverlayClose(host: HTMLElement, className: string, label: string, onClose: () => void): HTMLButtonElement;
|
|
99
|
+
/**
|
|
100
|
+
* Moves focus into a freshly opened modal overlay the way its `autoFocus`
|
|
101
|
+
* option asks. An element marked `cdkFocusInitial` wins in every mode.
|
|
102
|
+
*
|
|
103
|
+
* `'first-tabbable'` is the focus trap's own initial focus. `'dialog'` focuses
|
|
104
|
+
* the panel (made programmatically focusable with `tabindex="-1"`), `false`
|
|
105
|
+
* leaves focus where it is. Both wait for the next render, because the content
|
|
106
|
+
* is not in the DOM before that.
|
|
107
|
+
*
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
export declare function wrFocusOverlay(host: HTMLElement, trap: FocusTrap, mode: WrOverlayAutoFocus, injector: Injector): void;
|
|
111
|
+
/** What a dialog or drawer does with focus when it opens. */
|
|
112
|
+
type WrOverlayAutoFocus = 'first-tabbable' | 'dialog' | false;
|
|
98
113
|
/**
|
|
99
114
|
* Keep an OPEN overlay on the application's reading direction.
|
|
100
115
|
*
|
|
@@ -344,4 +359,4 @@ export declare const WR_OVERLAY: InjectionToken<Overlay>;
|
|
|
344
359
|
* @internal
|
|
345
360
|
*/
|
|
346
361
|
export declare const WR_OVERLAY_CONTAINER: InjectionToken<OverlayContainer>;
|
|
347
|
-
export type { WrAnchoredPosition, WrAnchoredPositionsOptions };
|
|
362
|
+
export type { WrAnchoredPosition, WrAnchoredPositionsOptions, WrOverlayAutoFocus };
|
|
@@ -128,10 +128,16 @@ export declare class WrPopconfirmHarness extends ContentContainerComponentHarnes
|
|
|
128
128
|
* for it, since the button itself allows no colour at all.
|
|
129
129
|
*/
|
|
130
130
|
getConfirmColor(): Promise<WrColor | null>;
|
|
131
|
-
/**
|
|
131
|
+
/**
|
|
132
|
+
* Which action holds keyboard focus, by label, or `null` when focus is
|
|
133
|
+
* elsewhere: on the panel itself right after it opens, unless `wrPopconfirmAutoFocus` is
|
|
134
|
+
* `'first-tabbable'`.
|
|
135
|
+
*/
|
|
132
136
|
getFocusedActionLabel(): Promise<string | null>;
|
|
133
137
|
/** Answer the question: click confirm, which emits `confirmed` and closes the dialog. */
|
|
134
138
|
confirm(): Promise<void>;
|
|
139
|
+
/** Whether the panel itself holds focus, as it does right after it opens by default. */
|
|
140
|
+
isPanelFocused(): Promise<boolean>;
|
|
135
141
|
/** Decline: click cancel, which emits `cancelled` and closes the dialog. */
|
|
136
142
|
cancel(): Promise<void>;
|
|
137
143
|
/**
|
|
@@ -140,7 +146,10 @@ export declare class WrPopconfirmHarness extends ContentContainerComponentHarnes
|
|
|
140
146
|
* Sent at the pane rather than at the focused button, because the target makes
|
|
141
147
|
* no difference: the key is picked up by the overlay's keyboard dispatcher,
|
|
142
148
|
* which keeps one listener on the document and routes to the topmost overlay.
|
|
143
|
-
* The pane is the one element guaranteed to be there
|
|
149
|
+
* The panel inside the pane is the one element guaranteed to be there, and it
|
|
150
|
+
* is not the pane itself: `sendKeys` focuses its target first, and the pane
|
|
151
|
+
* takes focus, so typing at one of two open dialogs would dismiss the other by
|
|
152
|
+
* moving focus out of it.
|
|
144
153
|
*/
|
|
145
154
|
sendEscape(): Promise<void>;
|
|
146
155
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { WrClassInput } from "ngwr/utils";
|
|
3
|
+
import { WrAnchoredPosition, WrOverlayAutoFocus } from "ngwr/overlay";
|
|
3
4
|
import { ConnectedPosition } from "@angular/cdk/overlay";
|
|
4
|
-
import { WrAnchoredPosition } from "ngwr/overlay";
|
|
5
5
|
export declare class WrPopconfirm {
|
|
6
6
|
/** Confirmation message. */
|
|
7
7
|
readonly message: import("@angular/core").InputSignal<string>;
|
|
@@ -36,6 +36,18 @@ export declare class WrPopconfirm {
|
|
|
36
36
|
* handle on it. A space-separated string works as well as an array.
|
|
37
37
|
*/
|
|
38
38
|
readonly panelClass: import("@angular/core").InputSignal<WrClassInput>;
|
|
39
|
+
/**
|
|
40
|
+
* Where focus goes when the panel opens. `'dialog'` puts it on the panel
|
|
41
|
+
* itself, with no ring, so Tab reaches Cancel and no button is lit;
|
|
42
|
+
* `'first-tabbable'` puts it on Cancel; `false` leaves it on the trigger,
|
|
43
|
+
* and Tab from there walks into the panel. Closing hands focus back to the
|
|
44
|
+
* trigger in every mode.
|
|
45
|
+
*
|
|
46
|
+
* Prefixed because the directive sits on your own element, where an
|
|
47
|
+
* `autoFocus` attribute would also be the native `autofocus`.
|
|
48
|
+
* @default 'dialog'
|
|
49
|
+
*/
|
|
50
|
+
readonly autoFocus: import("@angular/core").InputSignal<WrOverlayAutoFocus>;
|
|
39
51
|
/**
|
|
40
52
|
* Turns the question off: a click on the host opens nothing and is left to
|
|
41
53
|
* propagate, `open()` does nothing, and an open panel closes without
|
|
@@ -55,6 +67,7 @@ export declare class WrPopconfirm {
|
|
|
55
67
|
readonly cancelled: import("@angular/core").OutputEmitterRef<void>;
|
|
56
68
|
private readonly host;
|
|
57
69
|
private readonly focusMonitor;
|
|
70
|
+
private readonly focusTraps;
|
|
58
71
|
private readonly overlay;
|
|
59
72
|
private readonly dir;
|
|
60
73
|
private readonly outsideClick;
|
|
@@ -66,6 +79,7 @@ export declare class WrPopconfirm {
|
|
|
66
79
|
/** Whether the popconfirm is open. Read-only: `open()` and `close()` change it. */
|
|
67
80
|
readonly isOpen: import("@angular/core").Signal<boolean>;
|
|
68
81
|
private overlayRef;
|
|
82
|
+
private finder;
|
|
69
83
|
private readonly uid;
|
|
70
84
|
/** @internal Public so the host binding can read it. */
|
|
71
85
|
protected readonly panelId: string;
|
|
@@ -91,6 +105,14 @@ export declare class WrPopconfirm {
|
|
|
91
105
|
* and Confirm, in that order.
|
|
92
106
|
*/
|
|
93
107
|
private readonly onPaneKeydown;
|
|
108
|
+
/**
|
|
109
|
+
* Tab on the trigger while the panel is open walks into it, as it would into a
|
|
110
|
+
* panel rendered beside the trigger. The way in when focus did not move on
|
|
111
|
+
* open (`wrPopconfirmAutoFocus` is `false`).
|
|
112
|
+
*
|
|
113
|
+
* @internal
|
|
114
|
+
*/
|
|
115
|
+
protected onTriggerKeydown(event: KeyboardEvent): void;
|
|
94
116
|
/**
|
|
95
117
|
* Focus that leaves the panel by any other road (a click on something
|
|
96
118
|
* focusable elsewhere) dismisses it too, and is left where it went. A `null`
|
|
@@ -150,6 +172,11 @@ export declare class WrPopconfirm {
|
|
|
150
172
|
"required": false;
|
|
151
173
|
"isSignal": true;
|
|
152
174
|
};
|
|
175
|
+
"autoFocus": {
|
|
176
|
+
"alias": "wrPopconfirmAutoFocus";
|
|
177
|
+
"required": false;
|
|
178
|
+
"isSignal": true;
|
|
179
|
+
};
|
|
153
180
|
"disabled": {
|
|
154
181
|
"alias": "wrPopconfirmDisabled";
|
|
155
182
|
"required": false;
|
package/types/ngwr-popover.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { Signal, TemplateRef } from "@angular/core";
|
|
3
3
|
import { WrClassInput } from "ngwr/utils";
|
|
4
|
+
import { WrAnchoredPosition, WrOverlayAutoFocus } from "ngwr/overlay";
|
|
4
5
|
import { ConnectedPosition } from "@angular/cdk/overlay";
|
|
5
|
-
import { WrAnchoredPosition } from "ngwr/overlay";
|
|
6
6
|
/**
|
|
7
7
|
* What a chart's hover tooltip says about one section.
|
|
8
8
|
*
|
|
@@ -26,6 +26,12 @@ interface WrChartTooltipDatum {
|
|
|
26
26
|
* always been.
|
|
27
27
|
*/
|
|
28
28
|
readonly rows?: readonly WrChartTooltipRow[];
|
|
29
|
+
/**
|
|
30
|
+
* A class the chip takes beside its own, so the chart that opened it can restyle its
|
|
31
|
+
* own chip: the chip is drawn in an overlay, outside the chart, where no hook set on
|
|
32
|
+
* the chart reaches it.
|
|
33
|
+
*/
|
|
34
|
+
readonly className?: string;
|
|
29
35
|
}
|
|
30
36
|
/**
|
|
31
37
|
* One line of a chart tooltip's `rows`.
|
|
@@ -118,8 +124,15 @@ type WrPopoverPosition = WrAnchoredPosition;
|
|
|
118
124
|
* then point at a neighbour. The measurement is written to
|
|
119
125
|
* `--wr-chart-tooltip-arrow` on the chip, and the stylesheet puts the arrow there.
|
|
120
126
|
*
|
|
121
|
-
* **
|
|
122
|
-
*
|
|
127
|
+
* **The chip lets the pointer through by default.** It belongs to the chart, not to a
|
|
128
|
+
* hint a reader has to reach: the pointer passes under it to the sections it covers, so
|
|
129
|
+
* moving to the bar beside one switches at once, and off the chart it closes. That
|
|
130
|
+
* fails WCAG 1.4.13's "hoverable", on purpose and by the maintainer's call: every value
|
|
131
|
+
* the chip shows is also the section's accessible name and the chart's data table.
|
|
132
|
+
* `tooltip="hoverable"` brings the hoverable chip back, described next.
|
|
133
|
+
*
|
|
134
|
+
* **A hoverable chip at its section sits over the sections beside it**, so the way onto
|
|
135
|
+
* it can cross another section: straight up from a heatmap
|
|
123
136
|
* day runs through the day above. Switching the moment that day reported itself
|
|
124
137
|
* would move the chip away from a pointer on its way to it — WCAG 1.4.13 with extra
|
|
125
138
|
* steps. So the strip between the anchor and the chip is a bridge: another section
|
|
@@ -130,8 +143,7 @@ type WrPopoverPosition = WrAnchoredPosition;
|
|
|
130
143
|
* pointer that keeps on going up a heatmap's column is moving onto the chip, so it
|
|
131
144
|
* passes over it and the days under it read out only once it comes out the far side.
|
|
132
145
|
*
|
|
133
|
-
* **Why an overlay and not a positioned child
|
|
134
|
-
* own.** A child is clipped by every `overflow` between it and the page, and a
|
|
146
|
+
* **Why an overlay and not a positioned child.** A child is clipped by every `overflow` between it and the page, and a
|
|
135
147
|
* chart sits inside those constantly: `wr-calendar-heatmap` IS a scroll
|
|
136
148
|
* container, and a sparkline in a `wr-table` cell sits under two more.
|
|
137
149
|
*
|
|
@@ -147,7 +159,8 @@ type WrPopoverPosition = WrAnchoredPosition;
|
|
|
147
159
|
*
|
|
148
160
|
* Call from an injection context — a chart's field initialiser.
|
|
149
161
|
*
|
|
150
|
-
* @param enabled The chart's `tooltip` input
|
|
162
|
+
* @param enabled The chart's `tooltip` input: `true` for the chip the pointer passes
|
|
163
|
+
* under, `'hoverable'` for one it can rest on. Turning it off closes an open tooltip.
|
|
151
164
|
* @param resolve What to show for section `index`, and where. It runs after
|
|
152
165
|
* render, so it may read the DOM the section just drew; the signals it reads
|
|
153
166
|
* are tracked, so a data change under an open tooltip re-reads it, and a
|
|
@@ -166,7 +179,13 @@ type WrPopoverPosition = WrAnchoredPosition;
|
|
|
166
179
|
*
|
|
167
180
|
* @internal
|
|
168
181
|
*/
|
|
169
|
-
export declare function useChartTooltip(enabled: Signal<boolean>, resolve: (index: number) => WrChartTooltipTarget | null, sectionAt?: (x: number, y: number) => number | null): WrChartTooltip;
|
|
182
|
+
export declare function useChartTooltip(enabled: Signal<boolean | 'hoverable'>, resolve: (index: number) => WrChartTooltipTarget | null, sectionAt?: (x: number, y: number) => number | null): WrChartTooltip;
|
|
183
|
+
/**
|
|
184
|
+
* A chart's `tooltip` input: `'hoverable'` as it is, anything else as a boolean attribute.
|
|
185
|
+
*
|
|
186
|
+
* @internal
|
|
187
|
+
*/
|
|
188
|
+
export declare function wrCoerceChartTooltip(value: unknown): boolean | 'hoverable';
|
|
170
189
|
export declare class WrPopover {
|
|
171
190
|
/**
|
|
172
191
|
* Content to render inside the panel.
|
|
@@ -228,6 +247,20 @@ export declare class WrPopover {
|
|
|
228
247
|
* has a heading or a purpose, pass it.
|
|
229
248
|
*/
|
|
230
249
|
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
250
|
+
/**
|
|
251
|
+
* Popover mode only: where focus goes when a click or the keyboard opens the
|
|
252
|
+
* panel. `false` leaves it on the trigger, and Tab from there walks into the
|
|
253
|
+
* panel; `'dialog'` puts it on the panel itself, with no ring;
|
|
254
|
+
* `'first-tabbable'` on the first control inside. An element marked
|
|
255
|
+
* `cdkFocusInitial` in the content takes focus in every mode. A pointer
|
|
256
|
+
* hovering a `trigger="hover"` popover never moves focus. Closing hands focus
|
|
257
|
+
* back to the trigger whenever it was inside.
|
|
258
|
+
*
|
|
259
|
+
* Prefixed because the directive sits on your own element, where an
|
|
260
|
+
* `autoFocus` attribute would also be the native `autofocus`.
|
|
261
|
+
* @default false
|
|
262
|
+
*/
|
|
263
|
+
readonly autoFocus: import("@angular/core").InputSignal<WrOverlayAutoFocus>;
|
|
231
264
|
/**
|
|
232
265
|
* Extra CSS classes for the popover's (or tooltip's) overlay pane.
|
|
233
266
|
*
|
|
@@ -243,6 +276,7 @@ export declare class WrPopover {
|
|
|
243
276
|
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
244
277
|
private readonly host;
|
|
245
278
|
private readonly focusMonitor;
|
|
279
|
+
private readonly focusTraps;
|
|
246
280
|
private readonly keystroke;
|
|
247
281
|
private readonly overlay;
|
|
248
282
|
private readonly dir;
|
|
@@ -263,14 +297,15 @@ export declare class WrPopover {
|
|
|
263
297
|
private overlayRef;
|
|
264
298
|
private connected;
|
|
265
299
|
private textPanelRef;
|
|
300
|
+
private finder;
|
|
266
301
|
/** Whether the HOST itself holds focus — not a descendant of it. */
|
|
267
302
|
private hostFocused;
|
|
268
303
|
private hoverCloseTimer;
|
|
269
304
|
/**
|
|
270
305
|
* Whether Enter or Space opened a `trigger="hover"` popover. The pointer owns
|
|
271
306
|
* a hover popover and must leave the caret alone; the keyboard has nothing
|
|
272
|
-
* else to reach the content with, so a keyboard open
|
|
273
|
-
*
|
|
307
|
+
* else to reach the content with, so a keyboard open behaves exactly as a
|
|
308
|
+
* click popover's open does: `wrPopoverAutoFocus` applies and Tab walks in.
|
|
274
309
|
*/
|
|
275
310
|
private openedByKeyboard;
|
|
276
311
|
private showTimer;
|
|
@@ -305,6 +340,16 @@ export declare class WrPopover {
|
|
|
305
340
|
* @internal
|
|
306
341
|
*/
|
|
307
342
|
protected onActivateKey(event: Event): void;
|
|
343
|
+
/**
|
|
344
|
+
* Tab on the trigger while its click or keyboard-opened popover is showing
|
|
345
|
+
* walks into the panel, as it would into one rendered beside the trigger: the
|
|
346
|
+
* pane sits at the end of `<body>`, where Tab would not find it. A panel with
|
|
347
|
+
* no tab stop closes instead and Tab moves on through the page, which is what
|
|
348
|
+
* Tab past the last control of a panel does.
|
|
349
|
+
*
|
|
350
|
+
* @internal
|
|
351
|
+
*/
|
|
352
|
+
protected onTriggerTab(event: Event): void;
|
|
308
353
|
/** @internal */
|
|
309
354
|
protected onEscape(): void;
|
|
310
355
|
/**
|
|
@@ -451,6 +496,11 @@ export declare class WrPopover {
|
|
|
451
496
|
"required": false;
|
|
452
497
|
"isSignal": true;
|
|
453
498
|
};
|
|
499
|
+
"autoFocus": {
|
|
500
|
+
"alias": "wrPopoverAutoFocus";
|
|
501
|
+
"required": false;
|
|
502
|
+
"isSignal": true;
|
|
503
|
+
};
|
|
454
504
|
"panelClass": {
|
|
455
505
|
"alias": "panelClass";
|
|
456
506
|
"required": false;
|
package/types/ngwr-table.d.ts
CHANGED
|
@@ -631,7 +631,7 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
631
631
|
*/
|
|
632
632
|
readonly loadingMode: import("@angular/core").InputSignal<WrTableLoadingMode>;
|
|
633
633
|
/** The form `loading` takes right now, `null` while nothing loads. */
|
|
634
|
-
protected readonly loadingForm: import("@angular/core").Signal<"
|
|
634
|
+
protected readonly loadingForm: import("@angular/core").Signal<"bar" | "overlay" | null>;
|
|
635
635
|
/**
|
|
636
636
|
* Collapse each row to a labelled card when the table's own box is too narrow
|
|
637
637
|
* for columns (a container query on its own width, not the viewport). Every
|
package/types/ngwr-tour.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { InjectionToken } from "@angular/core";
|
|
3
3
|
import { WrClassInput } from "ngwr/utils";
|
|
4
|
+
import { WrOverlayAutoFocus } from "ngwr/overlay";
|
|
4
5
|
/** Where the step popup sits relative to its target. */
|
|
5
6
|
type WrTourPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
6
7
|
/** One stop on a tour. */
|
|
@@ -25,6 +26,19 @@ interface WrTourStep {
|
|
|
25
26
|
*/
|
|
26
27
|
readonly panelClass?: WrClassInput;
|
|
27
28
|
}
|
|
29
|
+
/** Options for a whole tour, the second argument of `WrTour.start()`. */
|
|
30
|
+
interface WrTourOptions {
|
|
31
|
+
/**
|
|
32
|
+
* Where focus goes when a step's card opens. `'dialog'` puts it on the card
|
|
33
|
+
* itself, with no ring, so the keyboard is inside the tour and no button is
|
|
34
|
+
* lit; `'first-tabbable'` puts it on Next (Done on the last step); `false`
|
|
35
|
+
* leaves it where it is on the first step, and on the card once it has been
|
|
36
|
+
* inside one. The card traps Tab in every mode, and ending the tour returns
|
|
37
|
+
* focus to where it was when the tour started.
|
|
38
|
+
* @default 'dialog'
|
|
39
|
+
*/
|
|
40
|
+
readonly autoFocus?: WrOverlayAutoFocus;
|
|
41
|
+
}
|
|
28
42
|
/**
|
|
29
43
|
* Guided product tour: a spotlight over one element at a time plus a popup
|
|
30
44
|
* explaining it.
|
|
@@ -65,6 +79,9 @@ export declare class WrTour {
|
|
|
65
79
|
private detachKeydown;
|
|
66
80
|
private detachReposition;
|
|
67
81
|
private restoreFocus;
|
|
82
|
+
private autoFocus;
|
|
83
|
+
/** `focusNext` for the card, see {@link WrTourController}. */
|
|
84
|
+
readonly focusNext: () => boolean;
|
|
68
85
|
private stopWatchingUrl;
|
|
69
86
|
/** Whether a tour is running. */
|
|
70
87
|
readonly active: import("@angular/core").Signal<boolean>;
|
|
@@ -98,7 +115,7 @@ export declare class WrTour {
|
|
|
98
115
|
* tour is a client-side affordance and there is nothing to spotlight on the
|
|
99
116
|
* server.
|
|
100
117
|
*/
|
|
101
|
-
start(steps: readonly WrTourStep[]): void;
|
|
118
|
+
start(steps: readonly WrTourStep[], options?: WrTourOptions): void;
|
|
102
119
|
/** Advance; finishes the tour past the last step. */
|
|
103
120
|
next(): void;
|
|
104
121
|
/** Go back; stays put on the first step. */
|
|
@@ -154,6 +171,8 @@ interface WrTourController {
|
|
|
154
171
|
* would put a Back button on the very first card.
|
|
155
172
|
*/
|
|
156
173
|
readonly isFirst: () => boolean;
|
|
174
|
+
/** Whether the card opens with focus on Next: the tour's `autoFocus` is `'first-tabbable'`. */
|
|
175
|
+
readonly focusNext: () => boolean;
|
|
157
176
|
next(): void;
|
|
158
177
|
prev(): void;
|
|
159
178
|
stop(): void;
|
|
@@ -189,4 +208,4 @@ export declare class WrTourPopup {
|
|
|
189
208
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrTourPopup, never>;
|
|
190
209
|
static ɵcmp: i0.ɵɵComponentDeclaration<WrTourPopup, "wr-tour-popup", never, {}, {}, never, never, true, never>;
|
|
191
210
|
}
|
|
192
|
-
export type { WrTourPlacement, WrTourStep };
|
|
211
|
+
export type { WrTourOptions, WrTourPlacement, WrTourStep };
|
|
@@ -368,8 +368,7 @@ export declare class WrTreeHarness extends ContentContainerComponentHarness {
|
|
|
368
368
|
* prove the pointer path and nothing more.
|
|
369
369
|
*
|
|
370
370
|
* The key is honoured only on the CLOSED trigger, so an open panel is closed
|
|
371
|
-
* first with Escape — the step a keyboard user takes too
|
|
372
|
-
* the panel while it is up.
|
|
371
|
+
* first with Escape — the step a keyboard user takes too.
|
|
373
372
|
*
|
|
374
373
|
* Does nothing, rather than throwing, where the component does nothing —
|
|
375
374
|
* nothing selected, disabled or read-only — so a spec asserts the outcome on
|
package/types/ngwr-tree.d.ts
CHANGED
|
@@ -216,6 +216,15 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
216
216
|
readonly viewportHeight: import("@angular/core").InputSignal<string | number>;
|
|
217
217
|
/** Extra rows kept rendered above and below the viewport as scroll headroom. @default 6 */
|
|
218
218
|
readonly overscan: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
219
|
+
/**
|
|
220
|
+
* `openOn="overlay"` only: focus the cursor row when the panel opens (the
|
|
221
|
+
* list itself in a virtual tree). Off, focus stays on the trigger:
|
|
222
|
+
* ArrowDown, ArrowUp or Tab there move into the panel, and a letter jumps to
|
|
223
|
+
* the row it starts.
|
|
224
|
+
*
|
|
225
|
+
* @default false
|
|
226
|
+
*/
|
|
227
|
+
readonly autoFocus: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
219
228
|
/**
|
|
220
229
|
* Extra CSS classes for the overlay pane, when `openOn` puts the tree in one.
|
|
221
230
|
*
|
|
@@ -544,10 +553,21 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
544
553
|
* The same key and the same split `wr-select` uses, so the two read alike:
|
|
545
554
|
* in MULTI mode Backspace drops the last chip — chip removal is its own
|
|
546
555
|
* control, not gated on `clearable()` — and in SINGLE mode it clears, gated on
|
|
547
|
-
* `clearable()`, because that input IS the clear control. Only while closed
|
|
548
|
-
*
|
|
556
|
+
* `clearable()`, because that input IS the clear control. Only while closed.
|
|
557
|
+
*
|
|
558
|
+
* While the panel is open the trigger is the way into it, since opening
|
|
559
|
+
* leaves focus here unless `autoFocus` asks: the arrows and Tab move to the
|
|
560
|
+
* cursor row, and a letter to the row it starts. The pane sits at the end of
|
|
561
|
+
* `<body>`, where the browser's own Tab would not find it.
|
|
549
562
|
*/
|
|
550
563
|
protected onTriggerKey(event: KeyboardEvent): void;
|
|
564
|
+
/**
|
|
565
|
+
* Type-ahead: move the cursor to the next visible row after `from` that
|
|
566
|
+
* starts with the letters typed so far.
|
|
567
|
+
*
|
|
568
|
+
* @returns whether the key was a type-ahead key.
|
|
569
|
+
*/
|
|
570
|
+
private typeTo;
|
|
551
571
|
protected removeChip(id: TId, event: Event): void;
|
|
552
572
|
protected clearSelection(event: Event): void;
|
|
553
573
|
private toggleExpanded;
|
|
@@ -619,6 +639,12 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
619
639
|
private focusIndex;
|
|
620
640
|
private collectExpandableIds;
|
|
621
641
|
private openOverlay;
|
|
642
|
+
/**
|
|
643
|
+
* Move focus into the open panel. Virtual mode focuses the LIST (managed
|
|
644
|
+
* focus via `aria-activedescendant`); the non-virtual shape focuses the
|
|
645
|
+
* roving row, which carries the tab stop.
|
|
646
|
+
*/
|
|
647
|
+
private focusPanel;
|
|
622
648
|
/** `notify: false` is the destroy path: an output cannot emit from a destroyed view. */
|
|
623
649
|
private closeOverlay;
|
|
624
650
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrTree<any>, never>;
|
|
@@ -713,6 +739,11 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
713
739
|
"required": false;
|
|
714
740
|
"isSignal": true;
|
|
715
741
|
};
|
|
742
|
+
"autoFocus": {
|
|
743
|
+
"alias": "autoFocus";
|
|
744
|
+
"required": false;
|
|
745
|
+
"isSignal": true;
|
|
746
|
+
};
|
|
716
747
|
"panelClass": {
|
|
717
748
|
"alias": "panelClass";
|
|
718
749
|
"required": false;
|
package/types/ngwr-version.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { InjectionToken } from "@angular/core";
|
|
|
15
15
|
* Distinct from `Version` exported by `@angular/core`, which reports the
|
|
16
16
|
* loaded Angular runtime version (e.g. `'22.0.0'`), not ngwr's.
|
|
17
17
|
*/
|
|
18
|
-
export declare const NGWR_VERSION = "16.
|
|
18
|
+
export declare const NGWR_VERSION = "16.5.0";
|
|
19
19
|
/**
|
|
20
20
|
* Injection token holding the ngwr library version string.
|
|
21
21
|
*
|
package/types/ngwr-window.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { ComponentRef, ElementRef, InjectionToken, Signal, TemplateRef, WritableSignal } from "@angular/core";
|
|
3
3
|
import { WrClassInput, WrFeature } from "ngwr/utils";
|
|
4
|
+
import { WrOverlayAutoFocus } from "ngwr/overlay";
|
|
4
5
|
import { ComponentType } from "@angular/cdk/portal";
|
|
5
6
|
import { OverlayRef } from "@angular/cdk/overlay";
|
|
6
7
|
import { Observable, ReplaySubject, Subject } from "rxjs";
|
|
@@ -592,19 +593,21 @@ interface WrWindowConfig<D = unknown> {
|
|
|
592
593
|
*/
|
|
593
594
|
readonly closeOnEscape?: boolean;
|
|
594
595
|
/**
|
|
595
|
-
*
|
|
596
|
-
*
|
|
597
|
-
*
|
|
598
|
-
*
|
|
596
|
+
* Where focus goes when the window opens. `'dialog'` (or `true`) puts it on
|
|
597
|
+
* the window itself, with no ring, so the keyboard is inside and no control
|
|
598
|
+
* is lit; an element marked `cdkFocusInitial` in the body takes it instead.
|
|
599
|
+
* `'first-tabbable'` puts it on the first control in the body, as every
|
|
600
|
+
* window did before 16.5. Closing sends focus back to where it was when
|
|
601
|
+
* `open()` was called, if that element is still on the page.
|
|
599
602
|
*
|
|
600
|
-
* `false` leaves focus where it is — for a window
|
|
601
|
-
* or one that opens without a user asking for it.
|
|
602
|
-
* `restoreLayout()` re-opens default to `false`, so putting a
|
|
603
|
-
* does not walk focus through every window in it; pass
|
|
604
|
-
* opener callback to override.
|
|
605
|
-
* @default
|
|
603
|
+
* `false` leaves focus where it is, `cdkFocusInitial` or not — for a window
|
|
604
|
+
* opened in the background, or one that opens without a user asking for it.
|
|
605
|
+
* Windows that `restoreLayout()` re-opens default to `false`, so putting a
|
|
606
|
+
* workspace back does not walk focus through every window in it; pass a mode
|
|
607
|
+
* from the opener callback to override.
|
|
608
|
+
* @default 'dialog'
|
|
606
609
|
*/
|
|
607
|
-
readonly autoFocus?:
|
|
610
|
+
readonly autoFocus?: WrOverlayAutoFocus | true;
|
|
608
611
|
/** Snap-on-drag mode. @default 'none' */
|
|
609
612
|
readonly snap?: WrWindowSnap;
|
|
610
613
|
/**
|