ngwr 16.3.0 → 16.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/carousel/styles/_index.scss +53 -1
- package/charts/bar-chart/styles/_index.scss +494 -305
- package/charts/boxplot-chart/styles/_index.scss +114 -48
- package/charts/bullet-chart/styles/_index.scss +113 -42
- package/charts/calendar-heatmap/styles/_index.scss +111 -20
- package/charts/candlestick-chart/styles/_index.scss +61 -26
- package/charts/chart-legend/styles/_index.scss +119 -1
- package/charts/core/styles/_index.scss +201 -5
- package/charts/donut-chart/styles/_index.scss +76 -21
- package/charts/funnel-chart/styles/_index.scss +66 -38
- package/charts/gauge/styles/_index.scss +12 -1
- package/charts/heatmap-chart/styles/_index.scss +90 -53
- package/charts/line-chart/styles/_index.scss +143 -139
- package/charts/meter-group/styles/_index.scss +87 -25
- package/charts/radar-chart/styles/_index.scss +82 -40
- package/charts/scatter-chart/styles/_index.scss +117 -44
- package/charts/sparkline/styles/_index.scss +7 -1
- package/charts/treemap-chart/styles/_index.scss +94 -42
- package/charts/waterfall-chart/styles/_index.scss +150 -87
- package/color-picker/styles/_index.scss +7 -3
- package/copy-value/styles/_index.scss +21 -2
- package/date-stamp/styles/_index.scss +2 -1
- package/dialog/styles/_index.scss +6 -0
- package/drawer/styles/_index.scss +5 -1
- package/fesm2022/ngwr-breadcrumbs.mjs +2 -2
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-carousel-testing.mjs +27 -1
- package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +86 -4
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader-testing.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +56 -25
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart-testing.mjs +16 -14
- package/fesm2022/ngwr-charts-bar-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +399 -141
- package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs +19 -5
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +250 -56
- package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bullet-chart.mjs +118 -18
- package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +266 -46
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs +21 -10
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +319 -72
- package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-chart-legend.mjs +211 -9
- package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +299 -18
- package/fesm2022/ngwr-charts-core.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart.mjs +206 -27
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs +4 -4
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart.mjs +113 -10
- package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge.mjs +98 -12
- package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +226 -31
- package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart-testing.mjs +16 -4
- package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart.mjs +407 -172
- package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group-testing.mjs +4 -4
- package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +223 -31
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs +2 -1
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +255 -66
- package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs +39 -18
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart.mjs +431 -53
- package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-sparkline.mjs +19 -8
- package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
- package/fesm2022/ngwr-charts-treemap-chart.mjs +253 -44
- package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs +15 -7
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +151 -23
- package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +44 -4
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu-testing.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu.mjs +60 -17
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value-testing.mjs +5 -1
- package/fesm2022/ngwr-copy-value-testing.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value.mjs +38 -2
- package/fesm2022/ngwr-copy-value.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +56 -8
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +13 -5
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +19 -3
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +49 -6
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +1 -0
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +7 -3
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-graph-testing.mjs +27 -0
- package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +643 -14
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +13 -4
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +13 -4
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +13 -4
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +13 -4
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +13 -4
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +13 -4
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +13 -4
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +13 -4
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +13 -4
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +13 -4
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +13 -4
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +13 -4
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +13 -4
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +13 -4
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +13 -4
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +13 -4
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +13 -4
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +13 -4
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +13 -4
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +13 -4
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +13 -4
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +13 -4
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +22 -5
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +2 -2
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +21 -2
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +1 -0
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm-testing.mjs +4 -1
- package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +41 -5
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +67 -12
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +3 -0
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +100 -3
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list.mjs +2 -2
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-table-testing.mjs +71 -3
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +173 -11
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tour-testing.mjs +13 -1
- package/fesm2022/ngwr-tour-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +25 -16
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +52 -8
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +64 -1
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-window.mjs +16 -9
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/graph/styles/_index.scss +87 -0
- package/i18n/ar.json +13 -4
- package/i18n/cs.json +13 -4
- package/i18n/de.json +13 -4
- package/i18n/en.json +13 -4
- package/i18n/es.json +13 -4
- package/i18n/fr.json +13 -4
- package/i18n/he.json +13 -4
- package/i18n/hi.json +13 -4
- package/i18n/id.json +13 -4
- package/i18n/it.json +13 -4
- package/i18n/ja.json +13 -4
- package/i18n/ko.json +13 -4
- package/i18n/nl.json +13 -4
- package/i18n/pl.json +13 -4
- package/i18n/pt.json +13 -4
- package/i18n/ru.json +13 -4
- package/i18n/sv.json +13 -4
- package/i18n/tr.json +13 -4
- package/i18n/uk.json +13 -4
- package/i18n/vi.json +13 -4
- package/i18n/zh-TW.json +13 -4
- package/i18n/zh.json +13 -4
- package/llms-full.txt +12 -12
- package/llms.txt +64 -27
- package/package.json +1 -1
- package/popconfirm/styles/_index.scss +6 -0
- package/popover/styles/_index.scss +24 -13
- package/schematics/collection.json +5 -0
- package/schematics/eject/index.js +158 -0
- package/schematics/eject/schema.js +8 -0
- package/schematics/eject/schema.json +24 -0
- package/schematics/eject/source.js +295 -0
- package/schematics/use/symbol-map.json +2 -0
- package/select/styles/_index.scss +13 -0
- package/skills/ngwr/SKILL.md +30 -3
- package/skills/ngwr/references/catalog.md +2 -2
- package/table/styles/_index.scss +24 -0
- package/theme/styles/_focus.scss +11 -1
- package/tour/styles/_index.scss +6 -0
- package/types/ngwr-carousel-testing.d.ts +29 -6
- package/types/ngwr-carousel.d.ts +52 -5
- package/types/ngwr-cascader-testing.d.ts +4 -3
- package/types/ngwr-cascader.d.ts +29 -7
- package/types/ngwr-charts-bar-chart-testing.d.ts +15 -13
- package/types/ngwr-charts-bar-chart.d.ts +220 -48
- package/types/ngwr-charts-boxplot-chart-testing.d.ts +9 -2
- package/types/ngwr-charts-boxplot-chart.d.ts +110 -19
- package/types/ngwr-charts-bullet-chart.d.ts +72 -12
- package/types/ngwr-charts-calendar-heatmap.d.ts +119 -15
- package/types/ngwr-charts-candlestick-chart-testing.d.ts +19 -9
- package/types/ngwr-charts-candlestick-chart.d.ts +195 -62
- package/types/ngwr-charts-chart-legend.d.ts +142 -5
- package/types/ngwr-charts-core.d.ts +259 -21
- package/types/ngwr-charts-donut-chart-testing.d.ts +11 -5
- package/types/ngwr-charts-donut-chart.d.ts +124 -16
- package/types/ngwr-charts-funnel-chart.d.ts +62 -6
- package/types/ngwr-charts-gauge-testing.d.ts +5 -1
- package/types/ngwr-charts-gauge.d.ts +72 -10
- package/types/ngwr-charts-heatmap-chart.d.ts +103 -20
- package/types/ngwr-charts-line-chart-testing.d.ts +16 -2
- package/types/ngwr-charts-line-chart.d.ts +215 -86
- package/types/ngwr-charts-meter-group.d.ts +96 -7
- package/types/ngwr-charts-radar-chart-testing.d.ts +14 -3
- package/types/ngwr-charts-radar-chart.d.ts +148 -28
- package/types/ngwr-charts-scatter-chart-testing.d.ts +22 -10
- package/types/ngwr-charts-scatter-chart.d.ts +188 -18
- package/types/ngwr-charts-sparkline.d.ts +26 -4
- package/types/ngwr-charts-treemap-chart.d.ts +121 -23
- package/types/ngwr-charts-waterfall-chart-testing.d.ts +8 -1
- package/types/ngwr-charts-waterfall-chart.d.ts +108 -21
- package/types/ngwr-color-picker.d.ts +27 -0
- package/types/ngwr-context-menu-testing.d.ts +10 -9
- package/types/ngwr-context-menu.d.ts +19 -0
- package/types/ngwr-copy-value.d.ts +8 -0
- package/types/ngwr-date-picker.d.ts +34 -2
- package/types/ngwr-dialog.d.ts +30 -10
- package/types/ngwr-drawer.d.ts +32 -1
- package/types/ngwr-dropdown-testing.d.ts +8 -5
- package/types/ngwr-dropdown.d.ts +31 -6
- package/types/ngwr-file-upload.d.ts +8 -2
- package/types/ngwr-graph-testing.d.ts +28 -0
- package/types/ngwr-graph.d.ts +263 -91
- package/types/ngwr-lightbox.d.ts +15 -0
- package/types/ngwr-overlay.d.ts +16 -1
- package/types/ngwr-popconfirm-testing.d.ts +11 -2
- package/types/ngwr-popconfirm.d.ts +28 -1
- package/types/ngwr-popover.d.ts +59 -9
- package/types/ngwr-select.d.ts +37 -0
- package/types/ngwr-table-testing.d.ts +52 -1
- package/types/ngwr-table.d.ts +102 -10
- package/types/ngwr-tour-testing.d.ts +10 -0
- package/types/ngwr-tour.d.ts +32 -4
- package/types/ngwr-tree-testing.d.ts +1 -2
- package/types/ngwr-tree.d.ts +35 -2
- package/types/ngwr-utils.d.ts +79 -1
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window.d.ts +14 -11
- package/window/styles/_index.scss +5 -10
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
|
*
|
|
@@ -314,6 +323,8 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
314
323
|
* `wrFollowDirection` in `openOverlay()` is where that lives.
|
|
315
324
|
*/
|
|
316
325
|
private readonly dir;
|
|
326
|
+
private readonly liveLocale;
|
|
327
|
+
private readonly typeahead;
|
|
317
328
|
/** Currently focused row's index in the flattened visible list. */
|
|
318
329
|
protected readonly focusedIndex: import("@angular/core").WritableSignal<number>;
|
|
319
330
|
/**
|
|
@@ -542,10 +553,21 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
542
553
|
* The same key and the same split `wr-select` uses, so the two read alike:
|
|
543
554
|
* in MULTI mode Backspace drops the last chip — chip removal is its own
|
|
544
555
|
* control, not gated on `clearable()` — and in SINGLE mode it clears, gated on
|
|
545
|
-
* `clearable()`, because that input IS the clear control. Only while closed
|
|
546
|
-
*
|
|
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.
|
|
547
562
|
*/
|
|
548
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;
|
|
549
571
|
protected removeChip(id: TId, event: Event): void;
|
|
550
572
|
protected clearSelection(event: Event): void;
|
|
551
573
|
private toggleExpanded;
|
|
@@ -617,6 +639,12 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
617
639
|
private focusIndex;
|
|
618
640
|
private collectExpandableIds;
|
|
619
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;
|
|
620
648
|
/** `notify: false` is the destroy path: an output cannot emit from a destroyed view. */
|
|
621
649
|
private closeOverlay;
|
|
622
650
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrTree<any>, never>;
|
|
@@ -711,6 +739,11 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
711
739
|
"required": false;
|
|
712
740
|
"isSignal": true;
|
|
713
741
|
};
|
|
742
|
+
"autoFocus": {
|
|
743
|
+
"alias": "autoFocus";
|
|
744
|
+
"required": false;
|
|
745
|
+
"isSignal": true;
|
|
746
|
+
};
|
|
714
747
|
"panelClass": {
|
|
715
748
|
"alias": "panelClass";
|
|
716
749
|
"required": false;
|
package/types/ngwr-utils.d.ts
CHANGED
|
@@ -872,6 +872,84 @@ export declare function wrIsPrintableKey(event: KeyboardEvent): boolean;
|
|
|
872
872
|
* ```
|
|
873
873
|
*/
|
|
874
874
|
export declare function wrIsComposing(event: KeyboardEvent): boolean;
|
|
875
|
+
/**
|
|
876
|
+
* @license
|
|
877
|
+
*
|
|
878
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
879
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
880
|
+
*/
|
|
881
|
+
/** Options of {@link wrTypeahead}. */
|
|
882
|
+
interface WrTypeaheadOptions {
|
|
883
|
+
/**
|
|
884
|
+
* The pause, in milliseconds, after which the next key starts a new run.
|
|
885
|
+
* @default 500
|
|
886
|
+
*/
|
|
887
|
+
readonly resetMs?: number;
|
|
888
|
+
/**
|
|
889
|
+
* The language the labels are written in, as a BCP 47 tag or a function that
|
|
890
|
+
* returns one, for the case folding (`I` and `ı` in Turkish). The browser's
|
|
891
|
+
* own locale when omitted.
|
|
892
|
+
*/
|
|
893
|
+
readonly locale?: string | (() => string | undefined);
|
|
894
|
+
}
|
|
895
|
+
/** One row of the list a {@link WrTypeahead} searches. */
|
|
896
|
+
interface WrTypeaheadItem {
|
|
897
|
+
/** The text the row is matched by. */
|
|
898
|
+
readonly label: string;
|
|
899
|
+
/** A disabled row is never a match. */
|
|
900
|
+
readonly disabled?: boolean;
|
|
901
|
+
}
|
|
902
|
+
/** What {@link wrTypeahead} returns. */
|
|
903
|
+
interface WrTypeahead {
|
|
904
|
+
/**
|
|
905
|
+
* Feed a `keydown` and get the row to move to: `type()` and `find()` in one
|
|
906
|
+
* call.
|
|
907
|
+
*
|
|
908
|
+
* @returns the index of the match, `-1` when the key joined the run and no row
|
|
909
|
+
* matches it, or `null` when the key is not a typeahead key and the caller's
|
|
910
|
+
* own handling goes on.
|
|
911
|
+
*/
|
|
912
|
+
handleKey(event: KeyboardEvent, items: readonly (string | WrTypeaheadItem)[], current: number): number | null;
|
|
913
|
+
/**
|
|
914
|
+
* Add a `keydown` to the run. Returns whether the key was taken: a printable
|
|
915
|
+
* character with no Ctrl, Meta or Alt, outside an IME composition and outside
|
|
916
|
+
* a text field. Space is taken only while a run is active, so it keeps its
|
|
917
|
+
* own job as the first key.
|
|
918
|
+
*/
|
|
919
|
+
type(event: KeyboardEvent): boolean;
|
|
920
|
+
/**
|
|
921
|
+
* The row the run points at, or `-1`. One letter, typed once or repeated,
|
|
922
|
+
* looks from the row after `current` and wraps, so the same letter cycles. A
|
|
923
|
+
* longer run looks from `current` itself, so the row it already matches stays.
|
|
924
|
+
*/
|
|
925
|
+
find(items: readonly (string | WrTypeaheadItem)[], current: number): number;
|
|
926
|
+
/** Whether a run is in progress: a key was taken less than `resetMs` ago. */
|
|
927
|
+
readonly active: boolean;
|
|
928
|
+
/** Drop the run. */
|
|
929
|
+
reset(): void;
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* Type-to-jump for a list: the letters typed in a row select the next row whose
|
|
933
|
+
* label starts with them, as the WAI-ARIA listbox, menu and tree patterns ask.
|
|
934
|
+
*
|
|
935
|
+
* It holds the letters typed so far and nothing else: the caller passes the
|
|
936
|
+
* labels and the current row with each key, and moves its own cursor to the
|
|
937
|
+
* index that comes back. Matching ignores case, skips disabled rows and wraps
|
|
938
|
+
* past the end.
|
|
939
|
+
*
|
|
940
|
+
* @example
|
|
941
|
+
* ```ts
|
|
942
|
+
* private readonly typeahead = wrTypeahead();
|
|
943
|
+
*
|
|
944
|
+
* protected onKeydown(event: KeyboardEvent): void {
|
|
945
|
+
* const index = this.typeahead.handleKey(event, this.labels(), this.cursor());
|
|
946
|
+
* if (index === null) return this.onOtherKey(event);
|
|
947
|
+
* event.preventDefault();
|
|
948
|
+
* if (index >= 0) this.cursor.set(index);
|
|
949
|
+
* }
|
|
950
|
+
* ```
|
|
951
|
+
*/
|
|
952
|
+
export declare function wrTypeahead(options?: WrTypeaheadOptions): WrTypeahead;
|
|
875
953
|
/**
|
|
876
954
|
* @license
|
|
877
955
|
*
|
|
@@ -1168,4 +1246,4 @@ export declare function wrKeyedAction<K, A = void, R = void>(fn: (key: K, arg: A
|
|
|
1168
1246
|
* @returns A read-only signal of the value.
|
|
1169
1247
|
*/
|
|
1170
1248
|
export declare function wrResourceValue<T>(resource: Resource<T | undefined>, fallback: NoInfer<T>): Signal<T>;
|
|
1171
|
-
export type { WrAction, WrActionStatus, WrClassInput, WrColorScheme, WrDebouncedFn, WrDecimalLike, WrFeature, WrInitialsOptions, WrInitialsOrder, WrInitialsStyle, WrKey, WrKeyedAction, WrMaybe, WrResolveCssSizeOptions, WrResolvedCssSize, WrSafeAny, WrThrottledFn, WrWatchColorSchemeOptions };
|
|
1249
|
+
export type { WrAction, WrActionStatus, WrClassInput, WrColorScheme, WrDebouncedFn, WrDecimalLike, WrFeature, WrInitialsOptions, WrInitialsOrder, WrInitialsStyle, WrKey, WrKeyedAction, WrMaybe, WrResolveCssSizeOptions, WrResolvedCssSize, WrSafeAny, WrThrottledFn, WrTypeahead, WrTypeaheadItem, WrTypeaheadOptions, WrWatchColorSchemeOptions };
|
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
|
/**
|
|
@@ -100,16 +100,11 @@
|
|
|
100
100
|
display: none;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
// The window itself takes focus (`tabindex="-1"`) when
|
|
104
|
-
//
|
|
105
|
-
//
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
&:focus-visible {
|
|
109
|
-
@include theme.focus-ring;
|
|
110
|
-
box-shadow:
|
|
111
|
-
0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo),
|
|
112
|
-
var(--wr-shadow-modal);
|
|
103
|
+
// The window itself takes focus (`tabindex="-1"`) when it opens, so the
|
|
104
|
+
// keyboard is inside it and no control is lit. It is a container, never a
|
|
105
|
+
// control, so it draws no ring; the active window is told by its chrome.
|
|
106
|
+
&:focus {
|
|
107
|
+
outline: none;
|
|
113
108
|
}
|
|
114
109
|
|
|
115
110
|
// Keyboard move / resize: a dashed ring says the arrow keys now move or size
|