ngwr 16.6.0 → 16.7.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/avatar/styles/_index.scss +39 -0
- package/button/styles/_index.scss +45 -2
- package/copy-value/styles/_index.scss +4 -0
- package/dropdown/styles/_index.scss +17 -0
- package/fesm2022/ngwr-affix.mjs +3 -3
- package/fesm2022/ngwr-alert.mjs +3 -3
- package/fesm2022/ngwr-anchor.mjs +3 -3
- package/fesm2022/ngwr-animations-aurora.mjs +3 -3
- package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
- package/fesm2022/ngwr-animations-confetti.mjs +3 -3
- package/fesm2022/ngwr-animations-decode.mjs +3 -3
- package/fesm2022/ngwr-animations-destruct.mjs +3 -3
- package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
- package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
- package/fesm2022/ngwr-animations-glitch.mjs +3 -3
- package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
- package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
- package/fesm2022/ngwr-animations-marquee.mjs +4 -3
- package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
- package/fesm2022/ngwr-animations-orbit.mjs +3 -3
- package/fesm2022/ngwr-animations-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
- package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
- package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-tilt.mjs +3 -3
- package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
- package/fesm2022/ngwr-avatar.mjs +171 -6
- package/fesm2022/ngwr-avatar.mjs.map +1 -1
- package/fesm2022/ngwr-back-top.mjs +3 -3
- package/fesm2022/ngwr-badge.mjs +6 -6
- package/fesm2022/ngwr-breadcrumbs.mjs +9 -8
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger.mjs +3 -3
- package/fesm2022/ngwr-button.mjs +26 -6
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +3 -3
- package/fesm2022/ngwr-card.mjs +9 -9
- package/fesm2022/ngwr-carousel.mjs +6 -6
- package/fesm2022/ngwr-cascader.mjs +5 -5
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-chart-legend.mjs +9 -9
- package/fesm2022/ngwr-charts-core.mjs +6 -6
- package/fesm2022/ngwr-charts-donut-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-gauge.mjs +3 -3
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-line-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-meter-group.mjs +3 -3
- package/fesm2022/ngwr-charts-radar-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-scatter-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
- package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
- package/fesm2022/ngwr-checkbox.mjs +6 -6
- package/fesm2022/ngwr-clipboard.mjs +3 -3
- package/fesm2022/ngwr-collapse.mjs +9 -9
- package/fesm2022/ngwr-color-picker.mjs +6 -6
- package/fesm2022/ngwr-command-palette.mjs +3 -3
- package/fesm2022/ngwr-comment.mjs +7 -6
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare.mjs +3 -3
- package/fesm2022/ngwr-context-menu.mjs +12 -12
- package/fesm2022/ngwr-cookie.mjs +3 -3
- package/fesm2022/ngwr-copy-value.mjs +3 -3
- package/fesm2022/ngwr-counter.mjs +6 -6
- package/fesm2022/ngwr-date-picker-testing.mjs +35 -0
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +102 -53
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp.mjs +3 -3
- package/fesm2022/ngwr-date.mjs +40 -16
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-density.mjs +6 -6
- package/fesm2022/ngwr-descriptions.mjs +6 -6
- package/fesm2022/ngwr-dialog.mjs +19 -18
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +181 -18
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-divider.mjs +3 -3
- package/fesm2022/ngwr-drawer.mjs +18 -18
- package/fesm2022/ngwr-dropdown-testing.mjs +5 -1
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +59 -16
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +6 -5
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-empty.mjs +3 -3
- package/fesm2022/ngwr-event-calendar.mjs +7 -6
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload-testing.mjs +5 -0
- package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +68 -13
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +18 -16
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-graph-testing.mjs +30 -0
- package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +100 -11
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +6 -6
- package/fesm2022/ngwr-i18n-ar.mjs +6 -2
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +6 -2
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +6 -2
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +6 -2
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +6 -2
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +6 -2
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +6 -2
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +6 -2
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +6 -2
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +6 -2
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +6 -2
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-kk.mjs +520 -0
- package/fesm2022/ngwr-i18n-kk.mjs.map +1 -0
- package/fesm2022/ngwr-i18n-ko.mjs +6 -2
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +6 -2
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +6 -2
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +6 -2
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +6 -2
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +6 -2
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +6 -2
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +6 -2
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +6 -2
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +6 -2
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +6 -2
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +9 -9
- package/fesm2022/ngwr-icon.mjs +6 -6
- package/fesm2022/ngwr-image-cropper.mjs +8 -4
- package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +3 -3
- package/fesm2022/ngwr-input-otp.mjs +3 -3
- package/fesm2022/ngwr-input.mjs +15 -15
- package/fesm2022/ngwr-keyboard.mjs +3 -3
- package/fesm2022/ngwr-knob.mjs +3 -3
- package/fesm2022/ngwr-layout.mjs +15 -15
- package/fesm2022/ngwr-lightbox.mjs +8 -8
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +8 -8
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-load-state.mjs +16 -15
- package/fesm2022/ngwr-load-state.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar.mjs +6 -6
- package/fesm2022/ngwr-mention.mjs +6 -6
- package/fesm2022/ngwr-meta.mjs +6 -6
- package/fesm2022/ngwr-overlay.mjs +9 -9
- package/fesm2022/ngwr-page-header.mjs +3 -3
- package/fesm2022/ngwr-pagination-testing.mjs +3 -0
- package/fesm2022/ngwr-pagination-testing.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +32 -5
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +27 -27
- package/fesm2022/ngwr-platform.mjs +9 -9
- package/fesm2022/ngwr-popconfirm.mjs +7 -6
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +115 -15
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +75 -10
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
- package/fesm2022/ngwr-qr.mjs +3 -3
- package/fesm2022/ngwr-radio.mjs +6 -6
- package/fesm2022/ngwr-rating.mjs +3 -3
- package/fesm2022/ngwr-resizable.mjs +3 -3
- package/fesm2022/ngwr-result.mjs +12 -12
- package/fesm2022/ngwr-schema-form.mjs +10 -6
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +232 -7
- package/fesm2022/ngwr-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-segmented.mjs +3 -3
- package/fesm2022/ngwr-select.mjs +28 -19
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar-testing.mjs +17 -1
- package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar.mjs +66 -11
- package/fesm2022/ngwr-sidebar.mjs.map +1 -1
- package/fesm2022/ngwr-skeleton.mjs +3 -3
- package/fesm2022/ngwr-slider.mjs +3 -3
- package/fesm2022/ngwr-sortable-list.mjs +11 -11
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +3 -3
- package/fesm2022/ngwr-spinner.mjs +3 -3
- package/fesm2022/ngwr-splitter.mjs +3 -3
- package/fesm2022/ngwr-statistic.mjs +9 -9
- package/fesm2022/ngwr-stepper.mjs +6 -6
- package/fesm2022/ngwr-storage.mjs +3 -3
- package/fesm2022/ngwr-switch.mjs +3 -3
- package/fesm2022/ngwr-table-router.mjs +89 -0
- package/fesm2022/ngwr-table-router.mjs.map +1 -0
- package/fesm2022/ngwr-table-testing.mjs +5 -0
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +268 -42
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-router.mjs +9 -5
- package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-testing.mjs +8 -1
- package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +60 -10
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +3 -3
- package/fesm2022/ngwr-theme.mjs +3 -3
- package/fesm2022/ngwr-timeline.mjs +6 -6
- package/fesm2022/ngwr-toast.mjs +15 -15
- package/fesm2022/ngwr-toolbar.mjs +3 -3
- package/fesm2022/ngwr-tour.mjs +7 -6
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +4 -3
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +3 -3
- package/fesm2022/ngwr-typography.mjs +3 -3
- package/fesm2022/ngwr-utils-router.mjs +3 -3
- package/fesm2022/ngwr-utils.mjs +30 -2
- 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 +3 -3
- package/fesm2022/ngwr-window.mjs +18 -13
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/file-upload/styles/_index.scss +16 -0
- package/graph/styles/_index.scss +48 -0
- package/i18n/ar.json +4 -2
- package/i18n/cs.json +4 -2
- package/i18n/de.json +4 -2
- package/i18n/en.json +4 -2
- package/i18n/es.json +4 -2
- package/i18n/fr.json +4 -2
- package/i18n/he.json +4 -2
- package/i18n/hi.json +4 -2
- package/i18n/id.json +4 -2
- package/i18n/it.json +4 -2
- package/i18n/ja.json +4 -2
- package/i18n/kk.json +567 -0
- package/i18n/ko.json +4 -2
- package/i18n/nl.json +4 -2
- package/i18n/pl.json +4 -2
- package/i18n/pt.json +4 -2
- package/i18n/ru.json +4 -2
- package/i18n/sv.json +4 -2
- package/i18n/tr.json +4 -2
- package/i18n/uk.json +4 -2
- package/i18n/vi.json +4 -2
- package/i18n/zh-TW.json +4 -2
- package/i18n/zh.json +4 -2
- package/llms-full.txt +29 -18
- package/llms.txt +4 -1
- package/package.json +15 -7
- package/pagination/styles/_index.scss +6 -0
- package/popover/styles/_index.scss +4 -2
- package/progress/styles/_index.scss +64 -0
- package/schematics/use/symbol-map.json +5 -0
- package/sidebar/styles/_index.scss +58 -6
- package/skills/ngwr/SKILL.md +7 -6
- package/skills/ngwr/references/catalog.md +6 -4
- package/table/styles/_index.scss +121 -32
- package/tabs/styles/_index.scss +9 -0
- package/theme/styles/_focus.scss +3 -1
- package/tour/styles/_index.scss +3 -2
- package/types/ngwr-avatar.d.ts +39 -0
- package/types/ngwr-button.d.ts +12 -0
- package/types/ngwr-date-picker-testing.d.ts +22 -0
- package/types/ngwr-date-picker.d.ts +78 -17
- package/types/ngwr-date.d.ts +51 -0
- package/types/ngwr-directives.d.ts +45 -0
- package/types/ngwr-dropdown-testing.d.ts +8 -1
- package/types/ngwr-dropdown.d.ts +29 -0
- package/types/ngwr-file-upload-testing.d.ts +10 -0
- package/types/ngwr-file-upload.d.ts +55 -1
- package/types/ngwr-form.d.ts +3 -1
- package/types/ngwr-graph-testing.d.ts +28 -1
- package/types/ngwr-graph.d.ts +53 -3
- package/types/ngwr-i18n-kk.d.ts +3 -0
- package/types/ngwr-image-cropper.d.ts +6 -0
- package/types/ngwr-pagination-testing.d.ts +8 -0
- package/types/ngwr-pagination.d.ts +16 -0
- package/types/ngwr-popover.d.ts +39 -0
- package/types/ngwr-progress.d.ts +63 -1
- package/types/ngwr-scroll.d.ts +86 -0
- package/types/ngwr-select.d.ts +31 -12
- package/types/ngwr-sidebar-testing.d.ts +21 -7
- package/types/ngwr-sidebar.d.ts +66 -4
- package/types/ngwr-table-router.d.ts +49 -0
- package/types/ngwr-table-testing.d.ts +7 -0
- package/types/ngwr-table.d.ts +184 -6
- package/types/ngwr-tabs-router.d.ts +1 -1
- package/types/ngwr-tabs-testing.d.ts +5 -1
- package/types/ngwr-tabs.d.ts +34 -1
- package/types/ngwr-utils.d.ts +13 -0
- package/types/ngwr-version.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngwr-cascader.mjs","names":[],"sources":["../../../projects/lib/cascader/cascader.ts","../../../projects/lib/cascader/cascader.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Directionality } from '@angular/cdk/bidi';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { type OverlayRef, ScrollStrategyOptions } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n Component,\n DestroyRef,\n ElementRef,\n Injector,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n afterNextRender,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport type { FormValueControl } from '@angular/forms/signals';\n\nimport { useFormFieldAria } from 'ngwr/form';\nimport { useI18nText } from 'ngwr/i18n';\nimport { WR_OVERLAY, WrOutsideClick, wrFollowDirection } from 'ngwr/overlay';\nimport { WR_LIVE_LOCALE, wrIsPrintableKey, wrToClassList, wrTypeahead, type WrClassInput } from 'ngwr/utils';\n\nimport type { WrCascaderOption } from './types';\n\nlet panelUid = 0;\n\n/**\n * Whether a keydown is a Tab that takes focus out of the open panel. The pane\n * lives in the overlay container at the end of `<body>`, so the browser's own Tab\n * out of it went to `<body>` — the top of the page — with the panel left standing.\n * The caller focuses the trigger synchronously and does NOT `preventDefault`, so\n * the browser's Tab carries on from there to the trigger's real neighbour — the\n * move `wr-dropdown` makes for its menu.\n *\n * Every Tab inside the pane leaves it, in either direction: the panel holds ONE\n * tab stop (the roving one, see `tabStop`), so there is nowhere else inside it for\n * Tab to go. Asking \"is there a later stop\" instead would also answer wrongly for\n * the moment between an arrow key moving focus and the render that moves the\n * `tabindex=\"0\"` after it.\n */\nfunction tabLeavesPane(pane: HTMLElement, event: KeyboardEvent): boolean {\n if (event.key !== 'Tab' || event.defaultPrevented || event.altKey || event.ctrlKey || event.metaKey) return false;\n const active = pane.ownerDocument.activeElement;\n return !!active && pane.contains(active);\n}\n\n/**\n * Multi-level select — drills down through hierarchical categories\n * (e.g. country → state → city). Each level renders as a column; clicks\n * advance to the next column. Selecting a leaf (no children) commits\n * the full path.\n *\n * A signal-forms native control: it implements `FormValueControl<unknown>`,\n * so `[formField]` binds straight to its `value` model — no\n * `ControlValueAccessor` in between. `[(value)]` works standalone. The value\n * is the path through the tree (an array from root to leaf).\n *\n * @example\n * ```html\n * <!-- signal forms -->\n * <wr-cascader [options]=\"locations\" [formField]=\"form.path\" placeholder=\"Pick a location\" />\n *\n * <!-- standalone two-way binding -->\n * <wr-cascader [options]=\"locations\" [(value)]=\"path\" placeholder=\"Pick a location\" />\n * ```\n *\n * ```ts\n * locations: WrCascaderOption[] = [\n * {\n * value: 'us', label: 'United States', children: [\n * { value: 'ny', label: 'New York', children: [\n * { value: 'nyc', label: 'NYC' },\n * { value: 'buf', label: 'Buffalo' },\n * ] },\n * ],\n * },\n * ];\n * ```\n *\n * @see https://ngwr.dev/reference/components/cascader\n */\nexport type WrCascaderSize = 'sm' | 'md' | 'lg';\n\n@Component({\n selector: 'wr-cascader',\n templateUrl: './cascader.html',\n styleUrl: './cascader.scss',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-cascader', '[class]': 'classes()' },\n})\nexport class WrCascader<T = string> implements FormValueControl<unknown> {\n /** Accessible name. Falls back to `select.clearSelection`, then `'Clear selection'`. */\n readonly clearLabel = input<string | null>(null);\n\n protected readonly resolvedClearLabel = useI18nText(this.clearLabel, 'select.clearSelection', 'Clear selection');\n\n /** Root-level options. Each may have `children` for deeper levels. */\n readonly options = input.required<readonly WrCascaderOption<T>[]>();\n\n /** Placeholder shown when no path is selected. @default '' */\n readonly placeholder = input<string>('');\n\n /**\n * Accessible name of the trigger. Falls back to the placeholder, then to\n * `select.label` — a `role=\"combobox\"` with nothing selected and no\n * placeholder otherwise has no name at all.\n */\n readonly ariaLabel = input<string | null>(null);\n\n private readonly labelText = useI18nText(this.ariaLabel, 'select.label', 'Select');\n protected readonly resolvedAriaLabel = computed(() => {\n // Not `??`: an empty placeholder must fall through to the catalog string.\n const explicit = this.ariaLabel();\n if (explicit) return explicit;\n const placeholder = this.placeholder();\n return placeholder ? placeholder : this.labelText();\n });\n\n /**\n * Disable the cascader. Bound automatically from the field's disabled state\n * when used with `[formField]`.\n *\n * @default false\n */\n readonly disabled = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Refuse changes while the trigger stays focusable and the path still submits.\n * Bound automatically from the field's readonly state when used with\n * `[formField]`.\n *\n * The panel is where every edit happens, so a read-only cascader simply does\n * not open — there is nothing to browse that is not already on the trigger —\n * and the clear button goes away with it. Mirrored as `aria-readonly`, which\n * role `combobox` supports.\n *\n * @default false\n */\n readonly readonly = input(false, { transform: coerceBooleanProperty });\n\n /** The surrounding `<wr-form-field>`'s error state. @internal */\n protected readonly fieldAria = useFormFieldAria();\n\n /**\n * The field's own label, when it renders one — `null` otherwise, and `null`\n * when `[ariaLabel]` was set deliberately.\n *\n * `aria-label` outranks a `<label for>` in the accname order, so without this\n * a cascader inside `<wr-form-field label=\"Region\">` announced its\n * PLACEHOLDER, or the generic `select.label` default, and the visible label\n * reached nobody. Nothing catches it: the control has a name, so axe is\n * satisfied, and the name is plausible, so a reader is too — it fails WCAG\n * 2.5.3, where the visible label has to be IN the accessible name. Same call\n * `wr-rating` and `wr-knob` already make.\n */\n protected readonly labelledBy = computed(() => (this.ariaLabel() ? null : this.fieldAria.labelledBy()));\n\n /** `null` once `aria-labelledby` is carrying the name — see {@link labelledBy}. */\n protected readonly nameLabel = computed(() => (this.labelledBy() ? null : this.resolvedAriaLabel()));\n\n /** Control size — shares the `--wr-control-*` contract. @default 'md' */\n readonly size = input<WrCascaderSize>('md');\n\n /** Stretch the cascader to fill its parent's width. @default false */\n readonly block = input(false, { transform: coerceBooleanProperty });\n\n /** Pill-shaped corners on the trigger. @default false */\n readonly rounded = input(false, { transform: coerceBooleanProperty });\n\n /** Show a clear-all (×) button on the trigger when a path is selected. @default true */\n readonly clearable = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Allow selecting non-leaf (parent) nodes. When `false`, only leaves\n * (nodes without children) commit a selection. @default false\n */\n readonly changeOnSelect = input(false, { transform: coerceBooleanProperty });\n\n /** Separator between labels in the trigger display. @default '/' */\n readonly separator = input<string>('/');\n\n /**\n * Focus the selected option, or the first one, when the panel opens. Off,\n * focus stays on the trigger: ArrowDown, ArrowUp or Tab there move into the\n * panel, and a letter jumps to the option it starts.\n *\n * @default false\n */\n readonly autoFocus = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Extra CSS classes for the column panel's overlay pane.\n *\n * The pane is appended to the overlay container, not to this component, so\n * nothing in the consumer's own template encloses it and no descendant rule\n * written around the trigger can reach it. This input is the only per-instance\n * handle on it. A space-separated string works as well as an array.\n */\n readonly panelClass = input<WrClassInput>(null);\n\n /**\n * Committed selection path (full array from root to leaf). Bound by\n * `[formField]`, or two-way via `[(value)]`.\n */\n readonly value = model<unknown>([]);\n\n /** Emitted on blur / commit so a bound field can mark itself touched. */\n readonly touch = output<void>();\n\n /** Fires after the panel opens. */\n readonly opened = output<void>();\n\n /** Fires after the panel closes. */\n readonly closed = output<void>();\n\n /** Committed selection path (full T[] from root to leaf). @internal */\n protected readonly path = signal<readonly T[]>([]);\n\n /** Currently-expanded column path — drives which columns the panel shows. @internal */\n protected readonly activePath = signal<readonly T[]>([]);\n\n private readonly openState = signal(false);\n\n /** Whether the panel is open. Read-only: `open()` and `close()` change it. */\n readonly isOpen = this.openState.asReadonly();\n\n /**\n * The option the user last moved to inside the open panel — `null` until they\n * move, and again on every open. Written by an option's `focus` event, so\n * whatever moved the caret (an arrow, a click, a harness, a type-ahead letter)\n * moves the tab stop with it.\n */\n private readonly cursor = signal<{ readonly col: number; readonly value: T } | null>(null);\n\n /**\n * The panel's ONE tab stop, as in the APG tree pattern: the option the user\n * moved to, else the selected path's leaf, else the first enabled root. Every\n * other option carries `tabindex=\"-1\"` and is reached with the arrows, so a\n * deep tree is one Tab to enter and one to leave instead of a stop per option.\n *\n * Validated against what is ON SCREEN rather than trusted: choosing a sibling\n * prunes the deeper columns, and a value written from outside replaces the\n * path, so a remembered position can name an option that is gone. A disabled\n * option is never the stop — `focus()` would land on a choice nobody can make.\n * When the leaf itself is not on screen or is disabled, the deepest ancestor on\n * the path that is takes its place.\n */\n protected readonly tabStop = computed<{ readonly col: number; readonly value: T } | null>(() => {\n const cols = this.columns();\n const enabledAt = (col: number, value: T): boolean => !!cols[col]?.some(o => o.value === value && !o.disabled);\n\n const at = this.cursor();\n if (at && enabledAt(at.col, at.value)) return at;\n\n const path = this.path();\n const active = this.activePath();\n for (let col = Math.min(path.length, cols.length) - 1; col >= 0; col--) {\n // Column `col` lists the children of the ACTIVE path above it, so the path's\n // node at that depth is on screen only while the two agree that far down.\n if (!this.pathsEqual(path.slice(0, col), active.slice(0, col))) continue;\n if (enabledAt(col, path[col])) return { col, value: path[col] };\n }\n\n const first = cols[0]?.find(o => !o.disabled);\n return first ? { col: 0, value: first.value } : null;\n });\n\n private readonly liveLocale = inject(WR_LIVE_LOCALE, { optional: true });\n /** Letters typed in quick succession, for type-ahead. */\n private readonly typeahead = wrTypeahead({ locale: () => this.liveLocale?.() });\n\n /** Panel id used by the trigger's `aria-controls`. */\n protected readonly panelId = `wr-cascader-panel-${++panelUid}`;\n\n /**\n * Columns visible in the panel. Each column shows the children of the\n * preceding activePath entry. Column 0 = root options. The last\n * column is whatever the deepest active node's children resolve to —\n * we only render a column when there are children to show.\n */\n protected readonly columns = computed<readonly (readonly WrCascaderOption<T>[])[]>(() => {\n const cols: (readonly WrCascaderOption<T>[])[] = [this.options()];\n const trail = this.activePath();\n let list: readonly WrCascaderOption<T>[] = this.options();\n for (const v of trail) {\n const node = list.find(o => o.value === v);\n if (!node?.children?.length) break;\n cols.push(node.children);\n list = node.children;\n }\n return cols;\n });\n\n /** Label trail joined by `separator()` — what the trigger shows. */\n protected readonly displayLabel = computed(() => {\n const p = this.path();\n if (p.length === 0) return null;\n const labels: string[] = [];\n let list: readonly WrCascaderOption<T>[] = this.options();\n for (const v of p) {\n const node = list.find(o => o.value === v);\n if (!node) return null;\n labels.push(node.label);\n list = node.children ?? [];\n }\n const sep = ` ${this.separator()} `;\n return labels.join(sep);\n });\n\n protected readonly hasSelection = computed(() => this.path().length > 0);\n\n protected readonly classes = computed(() => {\n const parts: string[] = [];\n const size = this.size();\n if (size !== 'md') parts.push(`wr-cascader--${size}`);\n if (this.rounded()) parts.push('wr-cascader--rounded');\n if (this.block()) parts.push('wr-cascader--block');\n if (this.isOpen()) parts.push('wr-cascader--open');\n if (this.disabled()) parts.push('wr-cascader--disabled');\n else if (this.readonly()) parts.push('wr-cascader--readonly');\n return parts.join(' ');\n });\n\n protected readonly panelTpl = viewChild.required('panelTpl', { read: TemplateRef });\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly overlay = inject(WR_OVERLAY);\n private readonly outsideClick = inject(WrOutsideClick);\n private readonly vcr = inject(ViewContainerRef);\n private readonly scrollStrategies = inject(ScrollStrategyOptions);\n private readonly destroyRef = inject(DestroyRef);\n private readonly injector = inject(Injector);\n /**\n * Ambient reading direction, for the open panel alone — nothing in this\n * component reads it directly. Optional so a bare `TestBed` needs no\n * provider; `Directionality` is root-provided anyway, and a missing one\n * simply reads as `ltr`.\n */\n private readonly dir = inject(Directionality, { optional: true });\n private overlayRef: OverlayRef | null = null;\n\n constructor() {\n // Same contract as wr-select / wr-dropdown / wr-lightbox: an overlay lives in\n // the CDK container, not in this component's view, so destroying the\n // component while the panel is open would strand the pane and its scroll\n // strategy.\n this.destroyRef.onDestroy(() => this.closeOverlay(false));\n\n effect(() => {\n if (this.isOpen()) {\n this.openOverlay();\n } else {\n this.closeOverlay();\n }\n });\n\n // Close the panel if the control becomes disabled or read-only while open.\n effect(() => {\n if (this.disabled() || this.readonly()) this.openState.set(false);\n });\n\n // Mirror an external `value` write into the internal path/activePath\n // (the old `writeValue`). Skipped when the write merely echoes the\n // committed path, so a live drill-down can never be clobbered.\n effect(() => {\n // Coerce null/undefined/non-array to an empty path — a classic-forms\n // binding can write null, which the old `writeValue(value: unknown)`\n // treated as \"no selection\" too.\n const value = this.value();\n untracked(() => {\n const next: readonly T[] = Array.isArray(value) ? (value as readonly T[]) : [];\n if (this.pathsEqual(this.path(), next)) return;\n this.path.set(next);\n this.activePath.set(next);\n });\n });\n }\n\n /**\n * Focus the trigger — what Signal Forms calls to focus this control. The\n * panel stays shut: ArrowDown or a click opens it, the way it does after Tab.\n */\n focus(options?: FocusOptions): void {\n this.host.nativeElement.querySelector<HTMLElement>('.wr-cascader__trigger')?.focus(options);\n }\n\n /** Open the panel on the selected path, as the trigger does. Refused while disabled or read-only. */\n open(): void {\n if (this.disabled() || this.readonly() || this.isOpen()) return;\n this.activePath.set(this.path());\n this.openState.set(true);\n }\n\n /** Close the panel. */\n close(): void {\n this.openState.set(false);\n }\n\n // Template handlers\n\n protected onTriggerClick(): void {\n if (this.disabled() || this.readonly()) return;\n if (!this.isOpen()) this.activePath.set(this.path());\n this.openState.update(v => !v);\n }\n\n /**\n * ArrowDown / ArrowUp open the panel, Alt+ArrowDown included — the combobox way in,\n * and the shape `wr-dropdown`'s trigger uses. Enter and Space need no branch: the\n * trigger is a real `<button>`, so the browser turns them into the click above.\n *\n * Opening leaves the caret here unless `autoFocus` asks, so while the panel is\n * up the trigger is the way in: see {@link enterPanelFromTrigger}.\n */\n protected onTriggerKeydown(event: KeyboardEvent): void {\n if (this.disabled() || this.readonly()) return;\n if (this.isOpen()) {\n this.enterPanelFromTrigger(event);\n return;\n }\n\n // Backspace is the × from the keyboard, and it has to be: the × is a\n // `tabindex=\"-1\"` span INSIDE this button, and a keydown goes to the focused\n // element, so the `(keydown.enter)` / `(keydown.space)` it used to carry could\n // never fire. Clearing was reachable by pointer alone — a WCAG 2.1.1 failure,\n // not a missing convenience. The span stays unfocusable, because a focusable\n // child of a button is `nested-interactive`. Same key, same gating as\n // `wr-select`: `clearable()` IS the clear control, so a consumer who turned\n // the × off did not ask for a keyboard twin of it.\n if (event.key === 'Backspace') {\n if (!this.clearable() || !this.hasSelection()) return;\n event.preventDefault();\n this.clearSelection(event);\n return;\n }\n\n if (event.key !== 'ArrowDown' && event.key !== 'ArrowUp') return;\n event.preventDefault();\n this.activePath.set(this.path());\n this.openState.set(true);\n }\n\n /**\n * Keys on the trigger while the panel is open. The arrows and Tab move to the\n * panel's tab stop: the pane sits at the end of `<body>`, where the browser's\n * own Tab would not find it. A letter jumps to the option of that column it\n * starts. Shift+Tab, or Tab with nothing to land on, closes the panel and\n * moves on through the page.\n */\n private enterPanelFromTrigger(event: KeyboardEvent): void {\n const pane = this.overlayRef?.overlayElement;\n if (!pane || event.defaultPrevented) return;\n const stop = pane.querySelector<HTMLElement>('[role=\"treeitem\"][tabindex=\"0\"]');\n\n if (wrIsPrintableKey(event) && event.key !== ' ') {\n const column = stop?.closest<HTMLElement>('[role=\"group\"]');\n if (column && this.typeAhead(column, null, event)) event.preventDefault();\n return;\n }\n if (event.altKey || event.ctrlKey || event.metaKey) return;\n if (event.key === 'Tab') {\n if (event.shiftKey || !stop) {\n this.openState.set(false);\n return;\n }\n } else if (event.shiftKey || (event.key !== 'ArrowDown' && event.key !== 'ArrowUp')) {\n return;\n }\n event.preventDefault();\n stop?.focus();\n }\n\n protected onOptionClick(colIndex: number, opt: WrCascaderOption<T>, event: Event): void {\n event.stopPropagation();\n if (opt.disabled || this.disabled() || this.readonly()) return;\n\n const head = this.activePath().slice(0, colIndex);\n const newPath = [...head, opt.value];\n\n const hasChildren = !!opt.children?.length;\n\n // Always update active column for visual feedback / next column.\n this.activePath.set(newPath);\n // A pointer click focuses the option anyway (see `onOptionFocus`); a scripted\n // `click()` does not, and the tab stop belongs where the choice was made.\n this.cursor.set({ col: colIndex, value: opt.value });\n\n // Commit when we've reached a leaf, or when changeOnSelect is on.\n if (!hasChildren || this.changeOnSelect()) {\n this.path.set(newPath);\n this.value.set(newPath);\n this.touch.emit();\n // Close once we hit a true leaf — parent commits keep the panel open.\n if (!hasChildren) this.openState.set(false);\n }\n }\n\n /**\n * The tree keys the panel's roles promise, per the APG tree pattern: Up / Down\n * within a column, Home / End to its ends, the inline-end arrow into a branch's\n * children — opening the next column on the way — and the inline-start arrow back\n * to the option the column belongs to, or, from a root, closing the column it\n * opened. A letter moves to the next option in the column whose label starts with\n * what was typed. Enter and Space stay the commit.\n *\n * These are the ONLY way between options: the panel holds one tab stop (see\n * {@link tabStop}), and Tab leaves it.\n */\n protected onOptionKeydown(colIndex: number, opt: WrCascaderOption<T>, event: KeyboardEvent): void {\n const current = event.currentTarget as HTMLElement;\n const column = current.closest<HTMLElement>('[role=\"group\"]');\n if (!column) return;\n // Before the modifier check, because Shift is how a capital letter is typed.\n if (wrIsPrintableKey(event) && event.key !== ' ') {\n this.typeAhead(column, current, event);\n event.preventDefault();\n return;\n }\n if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) return;\n const rtl = this.dir?.value === 'rtl';\n const inward = rtl ? 'ArrowLeft' : 'ArrowRight';\n const outward = rtl ? 'ArrowRight' : 'ArrowLeft';\n const enabled = [...column.querySelectorAll<HTMLElement>('[role=\"treeitem\"]')].filter(\n o => o.getAttribute('aria-disabled') !== 'true'\n );\n const at = enabled.indexOf(current);\n\n switch (event.key) {\n case 'ArrowDown':\n enabled[at + 1]?.focus();\n break;\n case 'ArrowUp':\n if (at > 0) enabled[at - 1].focus();\n break;\n case 'Home':\n enabled[0]?.focus();\n break;\n case 'End':\n enabled[enabled.length - 1]?.focus();\n break;\n case inward: {\n if (opt.disabled || !opt.children?.length || this.disabled() || this.readonly()) break;\n this.activePath.set([...this.activePath().slice(0, colIndex), opt.value]);\n // The column is not in the DOM until the render this write schedules.\n afterNextRender(\n () =>\n this.overlayRef?.overlayElement\n .querySelector<HTMLElement>(\n `#${this.columnId(colIndex + 1)} [role=\"treeitem\"]:not([aria-disabled=\"true\"])`\n )\n ?.focus(),\n { injector: this.injector }\n );\n break;\n }\n case outward: {\n if (colIndex > 0) {\n const parent = this.parentOptionId(colIndex);\n if (parent) this.overlayRef?.overlayElement.querySelector<HTMLElement>(`#${parent}`)?.focus();\n } else if (opt.children?.length && this.isActiveAt(colIndex, opt.value)) {\n this.activePath.set([]);\n }\n break;\n }\n case ' ':\n // The commit is `(keydown.space)`'s; the page scrolling a screen under the\n // panel is the browser's, and it went with every Space on an option.\n break;\n default:\n return;\n }\n event.preventDefault();\n }\n\n /** The caret reached an option, by whatever route — the tab stop follows it. */\n protected onOptionFocus(colIndex: number, opt: WrCascaderOption<T>): void {\n if (opt.disabled) return;\n this.cursor.set({ col: colIndex, value: opt.value });\n }\n\n /** Whether this option is the panel's one `tabindex=\"0\"`. */\n protected isTabStop(colIndex: number, opt: WrCascaderOption<T>): boolean {\n const stop = this.tabStop();\n return !opt.disabled && stop !== null && stop.col === colIndex && stop.value === opt.value;\n }\n\n /**\n * Move to the next enabled option in `column` whose label starts with the letters\n * typed so far: {@link wrTypeahead} over the column's labels. `current` is\n * `null` when the caret is not in the column yet.\n *\n * @returns whether the caret moved.\n */\n private typeAhead(column: HTMLElement, current: HTMLElement | null, event: KeyboardEvent): boolean {\n const enabled = [...column.querySelectorAll<HTMLElement>('[role=\"treeitem\"]')].filter(\n o => o.getAttribute('aria-disabled') !== 'true'\n );\n const labels = enabled.map(o => o.querySelector('.wr-cascader__opt-label')?.textContent ?? '');\n const index = this.typeahead.handleKey(event, labels, current ? enabled.indexOf(current) : -1);\n if (index === null || index < 0) return false;\n enabled[index].focus();\n return true;\n }\n\n protected clearSelection(event: Event): void {\n event.stopPropagation();\n if (this.disabled() || this.readonly()) return;\n this.path.set([]);\n this.activePath.set([]);\n this.value.set([]);\n this.touch.emit();\n }\n\n protected isActiveAt(colIndex: number, value: T): boolean {\n return this.activePath()[colIndex] === value;\n }\n\n /**\n * Whether this option is the committed choice — `null` when it is not a\n * choice at all.\n *\n * Two questions the panel has to keep apart, and `--active` answers only the\n * first: `activePath()` is where the user has NAVIGATED to, `path()` is what\n * they have COMMITTED. They agree once a leaf is picked and diverge for the\n * whole walk down.\n *\n * `null` — the attribute absent — on a branch while `changeOnSelect` is off,\n * because such a branch genuinely cannot be chosen; ARIA reads a missing\n * `aria-selected` as \"not selectable\", which is exactly true here. That makes\n * this binding the first expression the `changeOnSelect` contract has ever had\n * in ARIA, in both directions.\n */\n protected isSelectedAt(colIndex: number, opt: WrCascaderOption<T>): boolean | null {\n const committable = !opt.children?.length || this.changeOnSelect();\n if (!committable) return null;\n const path = this.path();\n return colIndex === path.length - 1 && path[colIndex] === opt.value;\n }\n\n /** Stable id for one option — what a column's `aria-labelledby` points at. */\n protected optionId(colIndex: number, optIndex: number): string {\n return `${this.panelId}-opt-${colIndex}-${optIndex}`;\n }\n\n /** Stable id for one column — what an expanded branch's `aria-controls` points at. */\n protected columnId(colIndex: number): string {\n return `${this.panelId}-col-${colIndex}`;\n }\n\n /**\n * The option whose children a column holds, by id — its accessible name.\n *\n * The columns are DOM SIBLINGS, so nothing in the markup says the second one\n * belongs to \"Europe\". Column 0 has no parent and stays unnamed; the tree\n * itself already carries the control's name.\n */\n protected parentOptionId(colIndex: number): string | null {\n if (colIndex === 0) return null;\n const parent = this.columns()[colIndex - 1] ?? [];\n const index = parent.findIndex(o => this.isActiveAt(colIndex - 1, o.value));\n return index < 0 ? null : this.optionId(colIndex - 1, index);\n }\n\n private pathsEqual(a: readonly T[], b: readonly T[]): boolean {\n return a.length === b.length && a.every((v, i) => v === b[i]);\n }\n\n // Overlay\n\n private openOverlay(): void {\n if (this.overlayRef) return;\n // Each open starts from the selected path, not from where the last visit ended.\n this.cursor.set(null);\n\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.host)\n .withPositions([\n { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top' },\n { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom' },\n ])\n .withPush(true);\n\n this.overlayRef = this.overlay.create({\n positionStrategy,\n scrollStrategy: this.scrollStrategies.reposition(),\n panelClass: wrToClassList('wr-cascader-overlay', this.panelClass()),\n });\n\n // The columns cascade inline-wards, and the CDK captured the direction as a\n // string when this ref was created — so a flip while the panel is open left\n // the whole cascade running the other way from the page around it.\n wrFollowDirection(this.overlayRef, this.dir, this.injector);\n\n const portal = new TemplatePortal(this.panelTpl(), this.vcr);\n this.overlayRef.attach(portal);\n\n // Opening moves no focus unless `autoFocus` asks. The pane is appended to\n // `<body>`, where Tab from the trigger would not find it, so the trigger's\n // own arrows and Tab walk in: see `enterPanelFromTrigger`.\n //\n // `afterNextRender`, NOT `queueMicrotask`: under zoneless CD change detection runs\n // in a macrotask, so a microtask queued here fires before the columns are in the\n // DOM — the trap that once left `wr-calendar`'s ring and its real focus on\n // different days.\n if (this.autoFocus()) afterNextRender(() => this.focusPanelOption(), { injector: this.injector });\n\n this.outsideClick\n .outsidePointerEvents(this.overlayRef)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(event => {\n if (this.host.nativeElement.contains(event.target as Node)) return;\n this.openState.set(false);\n });\n\n this.overlayRef\n .keydownEvents()\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(event => {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.openState.set(false);\n return;\n }\n if (this.overlayRef && tabLeavesPane(this.overlayRef.overlayElement, event)) {\n this.host.nativeElement.querySelector<HTMLElement>('.wr-cascader__trigger')?.focus();\n this.openState.set(false);\n }\n });\n\n this.opened.emit();\n }\n\n /**\n * The option the panel opens on: its tab stop, which on open is the selected path's\n * leaf, else the first enabled root (see {@link tabStop}). A disabled option is\n * never the stop, so `focus()` cannot land on a choice nobody can make.\n */\n private focusPanelOption(): void {\n this.overlayRef?.overlayElement.querySelector<HTMLElement>('[role=\"treeitem\"][tabindex=\"0\"]')?.focus();\n }\n\n /** `notify: false` is the destroy path: an output cannot emit from a destroyed view. */\n private closeOverlay(notify = true): void {\n if (!this.overlayRef) return;\n // Every option commits on Enter, so on the keyboard the caret is INSIDE the\n // pane when a choice is made — and the ordinary way to finish choosing (`onOptionClick` on a leaf) closes it.\n // Disposing without handing focus back dropped it on `<body>` on the SUCCESS\n // path, not merely on dismissal: a keyboard user who had just picked a value\n // then had to Tab from the top of the document to get back to the control.\n // Untouched when focus had already moved elsewhere — that click is usually\n // what closed us, and stealing the caret back would fight the user for it.\n const pane = this.overlayRef.overlayElement;\n const focusWasInside = pane.contains(this.host.nativeElement.ownerDocument.activeElement);\n this.overlayRef.dispose();\n this.overlayRef = null;\n if (!notify) return;\n if (focusWasInside) this.host.nativeElement.querySelector<HTMLElement>('.wr-cascader__trigger')?.focus();\n this.closed.emit();\n }\n}\n\nexport type { WrCascaderOption } from './types';\n","<button\n type=\"button\"\n class=\"wr-cascader__trigger\"\n role=\"combobox\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [disabled]=\"disabled()\"\n [attr.aria-haspopup]=\"'tree'\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"panelId\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-invalid]=\"fieldAria.ariaInvalid()\"\n [attr.aria-required]=\"fieldAria.ariaRequired()\"\n [attr.aria-describedby]=\"fieldAria.describedBy()\"\n (click)=\"onTriggerClick()\"\n (keydown)=\"onTriggerKeydown($event)\"\n (blur)=\"touch.emit()\"\n>\n @if (displayLabel(); as label) {\n <span class=\"wr-cascader__value\">{{ label }}</span>\n } @else {\n <span class=\"wr-cascader__placeholder\">{{ placeholder() }}</span>\n }\n\n @if (clearable() && hasSelection() && !disabled() && !readonly()) {\n <span\n class=\"wr-cascader__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClearLabel()\"\n tabindex=\"-1\"\n (click)=\"clearSelection($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n\n <svg\n class=\"wr-icon__svg wr-cascader__chevron\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n</button>\n\n<ng-template #panelTpl>\n <div\n class=\"wr-cascader-panel\"\n [class.wr-cascader-panel--sm]=\"size() === 'sm'\"\n [class.wr-cascader-panel--lg]=\"size() === 'lg'\"\n role=\"tree\"\n [attr.id]=\"panelId\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n >\n <!--\n tree / group / treeitem, and NOT menu. A combobox's popup may be a listbox,\n a tree, a grid or a dialog and nothing else, so `aria-haspopup=\"menu\"` on\n the trigger was an author error — and a `menu` may own menuitems and\n groups, never other menus, so the columns were a second one. Neither is\n visible to axe: `menu` is a valid token for the global `aria-haspopup`, and\n `aria-required-children` passes a menu-inside-menu (measured against this\n exact fragment). A tree is what this control has always been — the value is\n a PATH, and only `treeitem` supports aria-expanded, aria-level,\n aria-setsize, aria-posinset and aria-selected at once.\n\n The columns stay `group` rather than collapsing to `role=\"presentation\"`,\n which is also axe-clean: the DOM is column-MAJOR, so a flat tree would\n leave level plus document order as the only structure, and \"Germany\"\n (level 2) would read as a child of \"Antarctica\" (level 1, the item\n immediately before it in source order).\n -->\n @for (col of columns(); track $index; let colIndex = $index) {\n <ul\n class=\"wr-cascader__col\"\n role=\"group\"\n [attr.id]=\"columnId(colIndex)\"\n [attr.aria-labelledby]=\"parentOptionId(colIndex)\"\n >\n @for (opt of col; track opt.value; let optIndex = $index) {\n <!--\n `aria-expanded` is exactly `isActiveAt`: `columns()` renders the next\n column for the active option and only when it has children, so the\n state can never claim a column that is not on screen — and\n `aria-controls` rides that same invariant, which is what makes\n \"expanded\" refer to something when the expanded content is a SIBLING\n rather than a descendant. It is emitted only while expanded: a\n reference to an absent id is a violation with `aria-expanded=\"true\"`\n and clean while collapsed.\n\n `aria-level` is load-bearing rather than decorative. The columns are\n siblings, so the DOM ancestry represents no level at all and every\n option would read as level 1. `aria-setsize` / `aria-posinset` are\n not strictly required — each column IS a complete sibling set — and\n are written anyway, because a tree that owns sibling groups is the\n uncommon shape where browser/AT pairs are known to miscompute both.\n\n `aria-selected` is written on every option that can be COMMITTED,\n `false` included, matching `wr-tree`. The alternative a reviewer may\n prefer: only the selected node, leaning on treeitem's implicit false,\n which is quieter in a long column and loses the \"this row is\n selectable\" signal that presence carries.\n\n `tabindex` is a ROVING stop, as in the APG tree pattern: one option\n carries `0` (see `tabStop`) and every other one `-1`, so the panel is\n one Tab to enter and one to leave, and the arrows move between options.\n -->\n <li\n class=\"wr-cascader__opt\"\n role=\"treeitem\"\n [attr.id]=\"optionId(colIndex, optIndex)\"\n [class.wr-cascader__opt--active]=\"isActiveAt(colIndex, opt.value)\"\n [class.wr-cascader__opt--disabled]=\"opt.disabled\"\n [attr.tabindex]=\"isTabStop(colIndex, opt) ? 0 : -1\"\n [attr.aria-disabled]=\"opt.disabled ? true : null\"\n [attr.aria-level]=\"colIndex + 1\"\n [attr.aria-setsize]=\"$count\"\n [attr.aria-posinset]=\"optIndex + 1\"\n [attr.aria-selected]=\"isSelectedAt(colIndex, opt)\"\n [attr.aria-expanded]=\"opt.children?.length ? isActiveAt(colIndex, opt.value) : null\"\n [attr.aria-controls]=\"\n opt.children?.length && isActiveAt(colIndex, opt.value) ? columnId(colIndex + 1) : null\n \"\n (click)=\"onOptionClick(colIndex, opt, $event)\"\n (focus)=\"onOptionFocus(colIndex, opt)\"\n (keydown)=\"onOptionKeydown(colIndex, opt, $event)\"\n (keydown.enter)=\"onOptionClick(colIndex, opt, $event)\"\n (keydown.space)=\"onOptionClick(colIndex, opt, $event)\"\n >\n <span class=\"wr-cascader__opt-label\">{{ opt.label }}</span>\n @if (opt.children?.length) {\n <svg\n class=\"wr-icon__svg wr-cascader__opt-arrow\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n }\n </li>\n }\n </ul>\n }\n </div>\n</ng-template>\n"],"mappings":";;;;;;;;;;;;;;;;;AAwCA,IAAI,WAAW;AAgBf,SAAS,cAAc,MAAmB,OAAoB;CAC5D,IAAI,MAAM,QAAQ,SAAS,MAAM,oBAAoB,MAAM,UAAU,MAAM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GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,GAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,aAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,OAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,YAAU;IAAI,MAAM;IAAa,UAAA;GAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"ngwr-cascader.mjs","names":[],"sources":["../../../projects/lib/cascader/cascader.ts","../../../projects/lib/cascader/cascader.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Directionality } from '@angular/cdk/bidi';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { type OverlayRef, ScrollStrategyOptions } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n Component,\n DestroyRef,\n ElementRef,\n Injector,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n afterNextRender,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport type { FormValueControl } from '@angular/forms/signals';\n\nimport { useFormFieldAria } from 'ngwr/form';\nimport { useI18nText } from 'ngwr/i18n';\nimport { WR_OVERLAY, WrOutsideClick, wrFollowDirection } from 'ngwr/overlay';\nimport { WR_LIVE_LOCALE, wrIsPrintableKey, wrToClassList, wrTypeahead, type WrClassInput } from 'ngwr/utils';\n\nimport type { WrCascaderOption } from './types';\n\nlet panelUid = 0;\n\n/**\n * Whether a keydown is a Tab that takes focus out of the open panel. The pane\n * lives in the overlay container at the end of `<body>`, so the browser's own Tab\n * out of it went to `<body>` — the top of the page — with the panel left standing.\n * The caller focuses the trigger synchronously and does NOT `preventDefault`, so\n * the browser's Tab carries on from there to the trigger's real neighbour — the\n * move `wr-dropdown` makes for its menu.\n *\n * Every Tab inside the pane leaves it, in either direction: the panel holds ONE\n * tab stop (the roving one, see `tabStop`), so there is nowhere else inside it for\n * Tab to go. Asking \"is there a later stop\" instead would also answer wrongly for\n * the moment between an arrow key moving focus and the render that moves the\n * `tabindex=\"0\"` after it.\n */\nfunction tabLeavesPane(pane: HTMLElement, event: KeyboardEvent): boolean {\n if (event.key !== 'Tab' || event.defaultPrevented || event.altKey || event.ctrlKey || event.metaKey) return false;\n const active = pane.ownerDocument.activeElement;\n return !!active && pane.contains(active);\n}\n\n/**\n * Multi-level select — drills down through hierarchical categories\n * (e.g. country → state → city). Each level renders as a column; clicks\n * advance to the next column. Selecting a leaf (no children) commits\n * the full path.\n *\n * A signal-forms native control: it implements `FormValueControl<unknown>`,\n * so `[formField]` binds straight to its `value` model — no\n * `ControlValueAccessor` in between. `[(value)]` works standalone. The value\n * is the path through the tree (an array from root to leaf).\n *\n * @example\n * ```html\n * <!-- signal forms -->\n * <wr-cascader [options]=\"locations\" [formField]=\"form.path\" placeholder=\"Pick a location\" />\n *\n * <!-- standalone two-way binding -->\n * <wr-cascader [options]=\"locations\" [(value)]=\"path\" placeholder=\"Pick a location\" />\n * ```\n *\n * ```ts\n * locations: WrCascaderOption[] = [\n * {\n * value: 'us', label: 'United States', children: [\n * { value: 'ny', label: 'New York', children: [\n * { value: 'nyc', label: 'NYC' },\n * { value: 'buf', label: 'Buffalo' },\n * ] },\n * ],\n * },\n * ];\n * ```\n *\n * @see https://ngwr.dev/reference/components/cascader\n */\nexport type WrCascaderSize = 'sm' | 'md' | 'lg';\n\n@Component({\n selector: 'wr-cascader',\n templateUrl: './cascader.html',\n styleUrl: './cascader.scss',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-cascader', '[class]': 'classes()' },\n})\nexport class WrCascader<T = string> implements FormValueControl<unknown> {\n /** Accessible name. Falls back to `select.clearSelection`, then `'Clear selection'`. */\n readonly clearLabel = input<string | null>(null);\n\n protected readonly resolvedClearLabel = useI18nText(this.clearLabel, 'select.clearSelection', 'Clear selection');\n\n /** Root-level options. Each may have `children` for deeper levels. */\n readonly options = input.required<readonly WrCascaderOption<T>[]>();\n\n /** Placeholder shown when no path is selected. @default '' */\n readonly placeholder = input<string>('');\n\n /**\n * Accessible name of the trigger. Falls back to the placeholder, then to\n * `select.label` — a `role=\"combobox\"` with nothing selected and no\n * placeholder otherwise has no name at all.\n */\n readonly ariaLabel = input<string | null>(null);\n\n private readonly labelText = useI18nText(this.ariaLabel, 'select.label', 'Select');\n protected readonly resolvedAriaLabel = computed(() => {\n // Not `??`: an empty placeholder must fall through to the catalog string.\n const explicit = this.ariaLabel();\n if (explicit) return explicit;\n const placeholder = this.placeholder();\n return placeholder ? placeholder : this.labelText();\n });\n\n /**\n * Disable the cascader. Bound automatically from the field's disabled state\n * when used with `[formField]`.\n *\n * @default false\n */\n readonly disabled = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Refuse changes while the trigger stays focusable and the path still submits.\n * Bound automatically from the field's readonly state when used with\n * `[formField]`.\n *\n * The panel is where every edit happens, so a read-only cascader simply does\n * not open — there is nothing to browse that is not already on the trigger —\n * and the clear button goes away with it. Mirrored as `aria-readonly`, which\n * role `combobox` supports.\n *\n * @default false\n */\n readonly readonly = input(false, { transform: coerceBooleanProperty });\n\n /** The surrounding `<wr-form-field>`'s error state. @internal */\n protected readonly fieldAria = useFormFieldAria();\n\n /**\n * The field's own label, when it renders one — `null` otherwise, and `null`\n * when `[ariaLabel]` was set deliberately.\n *\n * `aria-label` outranks a `<label for>` in the accname order, so without this\n * a cascader inside `<wr-form-field label=\"Region\">` announced its\n * PLACEHOLDER, or the generic `select.label` default, and the visible label\n * reached nobody. Nothing catches it: the control has a name, so axe is\n * satisfied, and the name is plausible, so a reader is too — it fails WCAG\n * 2.5.3, where the visible label has to be IN the accessible name. Same call\n * `wr-rating` and `wr-knob` already make.\n */\n protected readonly labelledBy = computed(() => (this.ariaLabel() ? null : this.fieldAria.labelledBy()));\n\n /** `null` once `aria-labelledby` is carrying the name — see {@link labelledBy}. */\n protected readonly nameLabel = computed(() => (this.labelledBy() ? null : this.resolvedAriaLabel()));\n\n /** Control size — shares the `--wr-control-*` contract. @default 'md' */\n readonly size = input<WrCascaderSize>('md');\n\n /** Stretch the cascader to fill its parent's width. @default false */\n readonly block = input(false, { transform: coerceBooleanProperty });\n\n /** Pill-shaped corners on the trigger. @default false */\n readonly rounded = input(false, { transform: coerceBooleanProperty });\n\n /** Show a clear-all (×) button on the trigger when a path is selected. @default true */\n readonly clearable = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Allow selecting non-leaf (parent) nodes. When `false`, only leaves\n * (nodes without children) commit a selection. @default false\n */\n readonly changeOnSelect = input(false, { transform: coerceBooleanProperty });\n\n /** Separator between labels in the trigger display. @default '/' */\n readonly separator = input<string>('/');\n\n /**\n * Focus the selected option, or the first one, when the panel opens. Off,\n * focus stays on the trigger: ArrowDown, ArrowUp or Tab there move into the\n * panel, and a letter jumps to the option it starts.\n *\n * @default false\n */\n readonly autoFocus = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Extra CSS classes for the column panel's overlay pane.\n *\n * The pane is appended to the overlay container, not to this component, so\n * nothing in the consumer's own template encloses it and no descendant rule\n * written around the trigger can reach it. This input is the only per-instance\n * handle on it. A space-separated string works as well as an array.\n */\n readonly panelClass = input<WrClassInput>(null);\n\n /**\n * Committed selection path (full array from root to leaf). Bound by\n * `[formField]`, or two-way via `[(value)]`.\n */\n readonly value = model<unknown>([]);\n\n /** Emitted on blur / commit so a bound field can mark itself touched. */\n readonly touch = output<void>();\n\n /** Fires after the panel opens. */\n readonly opened = output<void>();\n\n /** Fires after the panel closes. */\n readonly closed = output<void>();\n\n /** Committed selection path (full T[] from root to leaf). @internal */\n protected readonly path = signal<readonly T[]>([]);\n\n /** Currently-expanded column path — drives which columns the panel shows. @internal */\n protected readonly activePath = signal<readonly T[]>([]);\n\n private readonly openState = signal(false);\n\n /** Whether the panel is open. Read-only: `open()` and `close()` change it. */\n readonly isOpen = this.openState.asReadonly();\n\n /**\n * The option the user last moved to inside the open panel — `null` until they\n * move, and again on every open. Written by an option's `focus` event, so\n * whatever moved the caret (an arrow, a click, a harness, a type-ahead letter)\n * moves the tab stop with it.\n */\n private readonly cursor = signal<{ readonly col: number; readonly value: T } | null>(null);\n\n /**\n * The panel's ONE tab stop, as in the APG tree pattern: the option the user\n * moved to, else the selected path's leaf, else the first enabled root. Every\n * other option carries `tabindex=\"-1\"` and is reached with the arrows, so a\n * deep tree is one Tab to enter and one to leave instead of a stop per option.\n *\n * Validated against what is ON SCREEN rather than trusted: choosing a sibling\n * prunes the deeper columns, and a value written from outside replaces the\n * path, so a remembered position can name an option that is gone. A disabled\n * option is never the stop — `focus()` would land on a choice nobody can make.\n * When the leaf itself is not on screen or is disabled, the deepest ancestor on\n * the path that is takes its place.\n */\n protected readonly tabStop = computed<{ readonly col: number; readonly value: T } | null>(() => {\n const cols = this.columns();\n const enabledAt = (col: number, value: T): boolean => !!cols[col]?.some(o => o.value === value && !o.disabled);\n\n const at = this.cursor();\n if (at && enabledAt(at.col, at.value)) return at;\n\n const path = this.path();\n const active = this.activePath();\n for (let col = Math.min(path.length, cols.length) - 1; col >= 0; col--) {\n // Column `col` lists the children of the ACTIVE path above it, so the path's\n // node at that depth is on screen only while the two agree that far down.\n if (!this.pathsEqual(path.slice(0, col), active.slice(0, col))) continue;\n if (enabledAt(col, path[col])) return { col, value: path[col] };\n }\n\n const first = cols[0]?.find(o => !o.disabled);\n return first ? { col: 0, value: first.value } : null;\n });\n\n private readonly liveLocale = inject(WR_LIVE_LOCALE, { optional: true });\n /** Letters typed in quick succession, for type-ahead. */\n private readonly typeahead = wrTypeahead({ locale: () => this.liveLocale?.() });\n\n /** Panel id used by the trigger's `aria-controls`. */\n protected readonly panelId = `wr-cascader-panel-${++panelUid}`;\n\n /**\n * Columns visible in the panel. Each column shows the children of the\n * preceding activePath entry. Column 0 = root options. The last\n * column is whatever the deepest active node's children resolve to —\n * we only render a column when there are children to show.\n */\n protected readonly columns = computed<readonly (readonly WrCascaderOption<T>[])[]>(() => {\n const cols: (readonly WrCascaderOption<T>[])[] = [this.options()];\n const trail = this.activePath();\n let list: readonly WrCascaderOption<T>[] = this.options();\n for (const v of trail) {\n const node = list.find(o => o.value === v);\n if (!node?.children?.length) break;\n cols.push(node.children);\n list = node.children;\n }\n return cols;\n });\n\n /** Label trail joined by `separator()` — what the trigger shows. */\n protected readonly displayLabel = computed(() => {\n const p = this.path();\n if (p.length === 0) return null;\n const labels: string[] = [];\n let list: readonly WrCascaderOption<T>[] = this.options();\n for (const v of p) {\n const node = list.find(o => o.value === v);\n if (!node) return null;\n labels.push(node.label);\n list = node.children ?? [];\n }\n const sep = ` ${this.separator()} `;\n return labels.join(sep);\n });\n\n protected readonly hasSelection = computed(() => this.path().length > 0);\n\n protected readonly classes = computed(() => {\n const parts: string[] = [];\n const size = this.size();\n if (size !== 'md') parts.push(`wr-cascader--${size}`);\n if (this.rounded()) parts.push('wr-cascader--rounded');\n if (this.block()) parts.push('wr-cascader--block');\n if (this.isOpen()) parts.push('wr-cascader--open');\n if (this.disabled()) parts.push('wr-cascader--disabled');\n else if (this.readonly()) parts.push('wr-cascader--readonly');\n return parts.join(' ');\n });\n\n protected readonly panelTpl = viewChild.required('panelTpl', { read: TemplateRef });\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly overlay = inject(WR_OVERLAY);\n private readonly outsideClick = inject(WrOutsideClick);\n private readonly vcr = inject(ViewContainerRef);\n private readonly scrollStrategies = inject(ScrollStrategyOptions);\n private readonly destroyRef = inject(DestroyRef);\n private readonly injector = inject(Injector);\n /**\n * Ambient reading direction, for the open panel alone — nothing in this\n * component reads it directly. Optional so a bare `TestBed` needs no\n * provider; `Directionality` is root-provided anyway, and a missing one\n * simply reads as `ltr`.\n */\n private readonly dir = inject(Directionality, { optional: true });\n private overlayRef: OverlayRef | null = null;\n\n constructor() {\n // Same contract as wr-select / wr-dropdown / wr-lightbox: an overlay lives in\n // the CDK container, not in this component's view, so destroying the\n // component while the panel is open would strand the pane and its scroll\n // strategy.\n this.destroyRef.onDestroy(() => this.closeOverlay(false));\n\n effect(() => {\n if (this.isOpen()) {\n this.openOverlay();\n } else {\n this.closeOverlay();\n }\n });\n\n // Close the panel if the control becomes disabled or read-only while open.\n effect(() => {\n if (this.disabled() || this.readonly()) this.openState.set(false);\n });\n\n // Mirror an external `value` write into the internal path/activePath\n // (the old `writeValue`). Skipped when the write merely echoes the\n // committed path, so a live drill-down can never be clobbered.\n effect(() => {\n // Coerce null/undefined/non-array to an empty path — a classic-forms\n // binding can write null, which the old `writeValue(value: unknown)`\n // treated as \"no selection\" too.\n const value = this.value();\n untracked(() => {\n const next: readonly T[] = Array.isArray(value) ? (value as readonly T[]) : [];\n if (this.pathsEqual(this.path(), next)) return;\n this.path.set(next);\n this.activePath.set(next);\n });\n });\n }\n\n /**\n * Focus the trigger — what Signal Forms calls to focus this control. The\n * panel stays shut: ArrowDown or a click opens it, the way it does after Tab.\n */\n focus(options?: FocusOptions): void {\n this.host.nativeElement.querySelector<HTMLElement>('.wr-cascader__trigger')?.focus(options);\n }\n\n /** Open the panel on the selected path, as the trigger does. Refused while disabled or read-only. */\n open(): void {\n if (this.disabled() || this.readonly() || this.isOpen()) return;\n this.activePath.set(this.path());\n this.openState.set(true);\n }\n\n /** Close the panel. */\n close(): void {\n this.openState.set(false);\n }\n\n // Template handlers\n\n protected onTriggerClick(): void {\n if (this.disabled() || this.readonly()) return;\n if (!this.isOpen()) this.activePath.set(this.path());\n this.openState.update(v => !v);\n }\n\n /**\n * ArrowDown / ArrowUp open the panel, Alt+ArrowDown included — the combobox way in,\n * and the shape `wr-dropdown`'s trigger uses. Enter and Space need no branch: the\n * trigger is a real `<button>`, so the browser turns them into the click above.\n *\n * Opening leaves the caret here unless `autoFocus` asks, so while the panel is\n * up the trigger is the way in: see {@link enterPanelFromTrigger}.\n */\n protected onTriggerKeydown(event: KeyboardEvent): void {\n if (this.disabled() || this.readonly()) return;\n if (this.isOpen()) {\n this.enterPanelFromTrigger(event);\n return;\n }\n\n // Backspace is the × from the keyboard, and it has to be: the × is a\n // `tabindex=\"-1\"` span INSIDE this button, and a keydown goes to the focused\n // element, so the `(keydown.enter)` / `(keydown.space)` it used to carry could\n // never fire. Clearing was reachable by pointer alone — a WCAG 2.1.1 failure,\n // not a missing convenience. The span stays unfocusable, because a focusable\n // child of a button is `nested-interactive`. Same key, same gating as\n // `wr-select`: `clearable()` IS the clear control, so a consumer who turned\n // the × off did not ask for a keyboard twin of it.\n if (event.key === 'Backspace') {\n if (!this.clearable() || !this.hasSelection()) return;\n event.preventDefault();\n this.clearSelection(event);\n return;\n }\n\n if (event.key !== 'ArrowDown' && event.key !== 'ArrowUp') return;\n event.preventDefault();\n this.activePath.set(this.path());\n this.openState.set(true);\n }\n\n /**\n * Keys on the trigger while the panel is open. The arrows and Tab move to the\n * panel's tab stop: the pane sits at the end of `<body>`, where the browser's\n * own Tab would not find it. A letter jumps to the option of that column it\n * starts. Shift+Tab, or Tab with nothing to land on, closes the panel and\n * moves on through the page.\n */\n private enterPanelFromTrigger(event: KeyboardEvent): void {\n const pane = this.overlayRef?.overlayElement;\n if (!pane || event.defaultPrevented) return;\n const stop = pane.querySelector<HTMLElement>('[role=\"treeitem\"][tabindex=\"0\"]');\n\n if (wrIsPrintableKey(event) && event.key !== ' ') {\n const column = stop?.closest<HTMLElement>('[role=\"group\"]');\n if (column && this.typeAhead(column, null, event)) event.preventDefault();\n return;\n }\n if (event.altKey || event.ctrlKey || event.metaKey) return;\n if (event.key === 'Tab') {\n if (event.shiftKey || !stop) {\n this.openState.set(false);\n return;\n }\n } else if (event.shiftKey || (event.key !== 'ArrowDown' && event.key !== 'ArrowUp')) {\n return;\n }\n event.preventDefault();\n stop?.focus();\n }\n\n protected onOptionClick(colIndex: number, opt: WrCascaderOption<T>, event: Event): void {\n event.stopPropagation();\n if (opt.disabled || this.disabled() || this.readonly()) return;\n\n const head = this.activePath().slice(0, colIndex);\n const newPath = [...head, opt.value];\n\n const hasChildren = !!opt.children?.length;\n\n // Always update active column for visual feedback / next column.\n this.activePath.set(newPath);\n // A pointer click focuses the option anyway (see `onOptionFocus`); a scripted\n // `click()` does not, and the tab stop belongs where the choice was made.\n this.cursor.set({ col: colIndex, value: opt.value });\n\n // Commit when we've reached a leaf, or when changeOnSelect is on.\n if (!hasChildren || this.changeOnSelect()) {\n this.path.set(newPath);\n this.value.set(newPath);\n this.touch.emit();\n // Close once we hit a true leaf — parent commits keep the panel open.\n if (!hasChildren) this.openState.set(false);\n }\n }\n\n /**\n * The tree keys the panel's roles promise, per the APG tree pattern: Up / Down\n * within a column, Home / End to its ends, the inline-end arrow into a branch's\n * children — opening the next column on the way — and the inline-start arrow back\n * to the option the column belongs to, or, from a root, closing the column it\n * opened. A letter moves to the next option in the column whose label starts with\n * what was typed. Enter and Space stay the commit.\n *\n * These are the ONLY way between options: the panel holds one tab stop (see\n * {@link tabStop}), and Tab leaves it.\n */\n protected onOptionKeydown(colIndex: number, opt: WrCascaderOption<T>, event: KeyboardEvent): void {\n const current = event.currentTarget as HTMLElement;\n const column = current.closest<HTMLElement>('[role=\"group\"]');\n if (!column) return;\n // Before the modifier check, because Shift is how a capital letter is typed.\n if (wrIsPrintableKey(event) && event.key !== ' ') {\n this.typeAhead(column, current, event);\n event.preventDefault();\n return;\n }\n if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) return;\n const rtl = this.dir?.value === 'rtl';\n const inward = rtl ? 'ArrowLeft' : 'ArrowRight';\n const outward = rtl ? 'ArrowRight' : 'ArrowLeft';\n const enabled = [...column.querySelectorAll<HTMLElement>('[role=\"treeitem\"]')].filter(\n o => o.getAttribute('aria-disabled') !== 'true'\n );\n const at = enabled.indexOf(current);\n\n switch (event.key) {\n case 'ArrowDown':\n enabled[at + 1]?.focus();\n break;\n case 'ArrowUp':\n if (at > 0) enabled[at - 1].focus();\n break;\n case 'Home':\n enabled[0]?.focus();\n break;\n case 'End':\n enabled[enabled.length - 1]?.focus();\n break;\n case inward: {\n if (opt.disabled || !opt.children?.length || this.disabled() || this.readonly()) break;\n this.activePath.set([...this.activePath().slice(0, colIndex), opt.value]);\n // The column is not in the DOM until the render this write schedules.\n afterNextRender(\n () =>\n this.overlayRef?.overlayElement\n .querySelector<HTMLElement>(\n `#${this.columnId(colIndex + 1)} [role=\"treeitem\"]:not([aria-disabled=\"true\"])`\n )\n ?.focus(),\n { injector: this.injector }\n );\n break;\n }\n case outward: {\n if (colIndex > 0) {\n const parent = this.parentOptionId(colIndex);\n if (parent) this.overlayRef?.overlayElement.querySelector<HTMLElement>(`#${parent}`)?.focus();\n } else if (opt.children?.length && this.isActiveAt(colIndex, opt.value)) {\n this.activePath.set([]);\n }\n break;\n }\n case ' ':\n // The commit is `(keydown.space)`'s; the page scrolling a screen under the\n // panel is the browser's, and it went with every Space on an option.\n break;\n default:\n return;\n }\n event.preventDefault();\n }\n\n /** The caret reached an option, by whatever route — the tab stop follows it. */\n protected onOptionFocus(colIndex: number, opt: WrCascaderOption<T>): void {\n if (opt.disabled) return;\n this.cursor.set({ col: colIndex, value: opt.value });\n }\n\n /** Whether this option is the panel's one `tabindex=\"0\"`. */\n protected isTabStop(colIndex: number, opt: WrCascaderOption<T>): boolean {\n const stop = this.tabStop();\n return !opt.disabled && stop !== null && stop.col === colIndex && stop.value === opt.value;\n }\n\n /**\n * Move to the next enabled option in `column` whose label starts with the letters\n * typed so far: {@link wrTypeahead} over the column's labels. `current` is\n * `null` when the caret is not in the column yet.\n *\n * @returns whether the caret moved.\n */\n private typeAhead(column: HTMLElement, current: HTMLElement | null, event: KeyboardEvent): boolean {\n const enabled = [...column.querySelectorAll<HTMLElement>('[role=\"treeitem\"]')].filter(\n o => o.getAttribute('aria-disabled') !== 'true'\n );\n const labels = enabled.map(o => o.querySelector('.wr-cascader__opt-label')?.textContent ?? '');\n const index = this.typeahead.handleKey(event, labels, current ? enabled.indexOf(current) : -1);\n if (index === null || index < 0) return false;\n enabled[index].focus();\n return true;\n }\n\n protected clearSelection(event: Event): void {\n event.stopPropagation();\n if (this.disabled() || this.readonly()) return;\n this.path.set([]);\n this.activePath.set([]);\n this.value.set([]);\n this.touch.emit();\n }\n\n protected isActiveAt(colIndex: number, value: T): boolean {\n return this.activePath()[colIndex] === value;\n }\n\n /**\n * Whether this option is the committed choice — `null` when it is not a\n * choice at all.\n *\n * Two questions the panel has to keep apart, and `--active` answers only the\n * first: `activePath()` is where the user has NAVIGATED to, `path()` is what\n * they have COMMITTED. They agree once a leaf is picked and diverge for the\n * whole walk down.\n *\n * `null` — the attribute absent — on a branch while `changeOnSelect` is off,\n * because such a branch genuinely cannot be chosen; ARIA reads a missing\n * `aria-selected` as \"not selectable\", which is exactly true here. That makes\n * this binding the first expression the `changeOnSelect` contract has ever had\n * in ARIA, in both directions.\n */\n protected isSelectedAt(colIndex: number, opt: WrCascaderOption<T>): boolean | null {\n const committable = !opt.children?.length || this.changeOnSelect();\n if (!committable) return null;\n const path = this.path();\n return colIndex === path.length - 1 && path[colIndex] === opt.value;\n }\n\n /** Stable id for one option — what a column's `aria-labelledby` points at. */\n protected optionId(colIndex: number, optIndex: number): string {\n return `${this.panelId}-opt-${colIndex}-${optIndex}`;\n }\n\n /** Stable id for one column — what an expanded branch's `aria-controls` points at. */\n protected columnId(colIndex: number): string {\n return `${this.panelId}-col-${colIndex}`;\n }\n\n /**\n * The option whose children a column holds, by id — its accessible name.\n *\n * The columns are DOM SIBLINGS, so nothing in the markup says the second one\n * belongs to \"Europe\". Column 0 has no parent and stays unnamed; the tree\n * itself already carries the control's name.\n */\n protected parentOptionId(colIndex: number): string | null {\n if (colIndex === 0) return null;\n const parent = this.columns()[colIndex - 1] ?? [];\n const index = parent.findIndex(o => this.isActiveAt(colIndex - 1, o.value));\n return index < 0 ? null : this.optionId(colIndex - 1, index);\n }\n\n private pathsEqual(a: readonly T[], b: readonly T[]): boolean {\n return a.length === b.length && a.every((v, i) => v === b[i]);\n }\n\n // Overlay\n\n private openOverlay(): void {\n if (this.overlayRef) return;\n // Each open starts from the selected path, not from where the last visit ended.\n this.cursor.set(null);\n\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.host)\n .withPositions([\n { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top' },\n { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom' },\n ])\n .withPush(true);\n\n this.overlayRef = this.overlay.create({\n positionStrategy,\n scrollStrategy: this.scrollStrategies.reposition(),\n panelClass: wrToClassList('wr-cascader-overlay', this.panelClass()),\n });\n\n // The columns cascade inline-wards, and the CDK captured the direction as a\n // string when this ref was created — so a flip while the panel is open left\n // the whole cascade running the other way from the page around it.\n wrFollowDirection(this.overlayRef, this.dir, this.injector);\n\n const portal = new TemplatePortal(this.panelTpl(), this.vcr);\n this.overlayRef.attach(portal);\n\n // Opening moves no focus unless `autoFocus` asks. The pane is appended to\n // `<body>`, where Tab from the trigger would not find it, so the trigger's\n // own arrows and Tab walk in: see `enterPanelFromTrigger`.\n //\n // `afterNextRender`, NOT `queueMicrotask`: under zoneless CD change detection runs\n // in a macrotask, so a microtask queued here fires before the columns are in the\n // DOM — the trap that once left `wr-calendar`'s ring and its real focus on\n // different days.\n if (this.autoFocus()) afterNextRender(() => this.focusPanelOption(), { injector: this.injector });\n\n this.outsideClick\n .outsidePointerEvents(this.overlayRef)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(event => {\n if (this.host.nativeElement.contains(event.target as Node)) return;\n this.openState.set(false);\n });\n\n this.overlayRef\n .keydownEvents()\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(event => {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.openState.set(false);\n return;\n }\n if (this.overlayRef && tabLeavesPane(this.overlayRef.overlayElement, event)) {\n this.host.nativeElement.querySelector<HTMLElement>('.wr-cascader__trigger')?.focus();\n this.openState.set(false);\n }\n });\n\n this.opened.emit();\n }\n\n /**\n * The option the panel opens on: its tab stop, which on open is the selected path's\n * leaf, else the first enabled root (see {@link tabStop}). A disabled option is\n * never the stop, so `focus()` cannot land on a choice nobody can make.\n */\n private focusPanelOption(): void {\n this.overlayRef?.overlayElement.querySelector<HTMLElement>('[role=\"treeitem\"][tabindex=\"0\"]')?.focus();\n }\n\n /** `notify: false` is the destroy path: an output cannot emit from a destroyed view. */\n private closeOverlay(notify = true): void {\n if (!this.overlayRef) return;\n // Every option commits on Enter, so on the keyboard the caret is INSIDE the\n // pane when a choice is made — and the ordinary way to finish choosing (`onOptionClick` on a leaf) closes it.\n // Disposing without handing focus back dropped it on `<body>` on the SUCCESS\n // path, not merely on dismissal: a keyboard user who had just picked a value\n // then had to Tab from the top of the document to get back to the control.\n // Untouched when focus had already moved elsewhere — that click is usually\n // what closed us, and stealing the caret back would fight the user for it.\n const pane = this.overlayRef.overlayElement;\n const focusWasInside = pane.contains(this.host.nativeElement.ownerDocument.activeElement);\n this.overlayRef.dispose();\n this.overlayRef = null;\n if (!notify) return;\n if (focusWasInside) this.host.nativeElement.querySelector<HTMLElement>('.wr-cascader__trigger')?.focus();\n this.closed.emit();\n }\n}\n\nexport type { WrCascaderOption } from './types';\n","<button\n type=\"button\"\n class=\"wr-cascader__trigger\"\n role=\"combobox\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [disabled]=\"disabled()\"\n [attr.aria-haspopup]=\"'tree'\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"panelId\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-invalid]=\"fieldAria.ariaInvalid()\"\n [attr.aria-required]=\"fieldAria.ariaRequired()\"\n [attr.aria-describedby]=\"fieldAria.describedBy()\"\n (click)=\"onTriggerClick()\"\n (keydown)=\"onTriggerKeydown($event)\"\n (blur)=\"touch.emit()\"\n>\n @if (displayLabel(); as label) {\n <span class=\"wr-cascader__value\">{{ label }}</span>\n } @else {\n <span class=\"wr-cascader__placeholder\">{{ placeholder() }}</span>\n }\n\n @if (clearable() && hasSelection() && !disabled() && !readonly()) {\n <span\n class=\"wr-cascader__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClearLabel()\"\n tabindex=\"-1\"\n (click)=\"clearSelection($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n\n <svg\n class=\"wr-icon__svg wr-cascader__chevron\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n</button>\n\n<ng-template #panelTpl>\n <div\n class=\"wr-cascader-panel\"\n [class.wr-cascader-panel--sm]=\"size() === 'sm'\"\n [class.wr-cascader-panel--lg]=\"size() === 'lg'\"\n role=\"tree\"\n [attr.id]=\"panelId\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n >\n <!--\n tree / group / treeitem, and NOT menu. A combobox's popup may be a listbox,\n a tree, a grid or a dialog and nothing else, so `aria-haspopup=\"menu\"` on\n the trigger was an author error — and a `menu` may own menuitems and\n groups, never other menus, so the columns were a second one. Neither is\n visible to axe: `menu` is a valid token for the global `aria-haspopup`, and\n `aria-required-children` passes a menu-inside-menu (measured against this\n exact fragment). A tree is what this control has always been — the value is\n a PATH, and only `treeitem` supports aria-expanded, aria-level,\n aria-setsize, aria-posinset and aria-selected at once.\n\n The columns stay `group` rather than collapsing to `role=\"presentation\"`,\n which is also axe-clean: the DOM is column-MAJOR, so a flat tree would\n leave level plus document order as the only structure, and \"Germany\"\n (level 2) would read as a child of \"Antarctica\" (level 1, the item\n immediately before it in source order).\n -->\n @for (col of columns(); track $index; let colIndex = $index) {\n <ul\n class=\"wr-cascader__col\"\n role=\"group\"\n [attr.id]=\"columnId(colIndex)\"\n [attr.aria-labelledby]=\"parentOptionId(colIndex)\"\n >\n @for (opt of col; track opt.value; let optIndex = $index) {\n <!--\n `aria-expanded` is exactly `isActiveAt`: `columns()` renders the next\n column for the active option and only when it has children, so the\n state can never claim a column that is not on screen — and\n `aria-controls` rides that same invariant, which is what makes\n \"expanded\" refer to something when the expanded content is a SIBLING\n rather than a descendant. It is emitted only while expanded: a\n reference to an absent id is a violation with `aria-expanded=\"true\"`\n and clean while collapsed.\n\n `aria-level` is load-bearing rather than decorative. The columns are\n siblings, so the DOM ancestry represents no level at all and every\n option would read as level 1. `aria-setsize` / `aria-posinset` are\n not strictly required — each column IS a complete sibling set — and\n are written anyway, because a tree that owns sibling groups is the\n uncommon shape where browser/AT pairs are known to miscompute both.\n\n `aria-selected` is written on every option that can be COMMITTED,\n `false` included, matching `wr-tree`. The alternative a reviewer may\n prefer: only the selected node, leaning on treeitem's implicit false,\n which is quieter in a long column and loses the \"this row is\n selectable\" signal that presence carries.\n\n `tabindex` is a ROVING stop, as in the APG tree pattern: one option\n carries `0` (see `tabStop`) and every other one `-1`, so the panel is\n one Tab to enter and one to leave, and the arrows move between options.\n -->\n <li\n class=\"wr-cascader__opt\"\n role=\"treeitem\"\n [attr.id]=\"optionId(colIndex, optIndex)\"\n [class.wr-cascader__opt--active]=\"isActiveAt(colIndex, opt.value)\"\n [class.wr-cascader__opt--disabled]=\"opt.disabled\"\n [attr.tabindex]=\"isTabStop(colIndex, opt) ? 0 : -1\"\n [attr.aria-disabled]=\"opt.disabled ? true : null\"\n [attr.aria-level]=\"colIndex + 1\"\n [attr.aria-setsize]=\"$count\"\n [attr.aria-posinset]=\"optIndex + 1\"\n [attr.aria-selected]=\"isSelectedAt(colIndex, opt)\"\n [attr.aria-expanded]=\"opt.children?.length ? isActiveAt(colIndex, opt.value) : null\"\n [attr.aria-controls]=\"\n opt.children?.length && isActiveAt(colIndex, opt.value) ? columnId(colIndex + 1) : null\n \"\n (click)=\"onOptionClick(colIndex, opt, $event)\"\n (focus)=\"onOptionFocus(colIndex, opt)\"\n (keydown)=\"onOptionKeydown(colIndex, opt, $event)\"\n (keydown.enter)=\"onOptionClick(colIndex, opt, $event)\"\n (keydown.space)=\"onOptionClick(colIndex, opt, $event)\"\n >\n <span class=\"wr-cascader__opt-label\">{{ opt.label }}</span>\n @if (opt.children?.length) {\n <svg\n class=\"wr-icon__svg wr-cascader__opt-arrow\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n }\n </li>\n }\n </ul>\n }\n </div>\n</ng-template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,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,GAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,aAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,OAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,YAAU;IAAI,MAAM;IAAa,UAAA;GAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
@@ -620,7 +620,7 @@ var WrBarChart = class WrBarChart {
|
|
|
620
620
|
}
|
|
621
621
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
622
622
|
minVersion: "12.0.0",
|
|
623
|
-
version: "22.
|
|
623
|
+
version: "22.3.0",
|
|
624
624
|
ngImport: i0,
|
|
625
625
|
type: WrBarChart,
|
|
626
626
|
deps: [],
|
|
@@ -628,7 +628,7 @@ var WrBarChart = class WrBarChart {
|
|
|
628
628
|
});
|
|
629
629
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
630
630
|
minVersion: "17.0.0",
|
|
631
|
-
version: "22.
|
|
631
|
+
version: "22.3.0",
|
|
632
632
|
type: WrBarChart,
|
|
633
633
|
isStandalone: true,
|
|
634
634
|
selector: "wr-bar-chart",
|
|
@@ -891,7 +891,7 @@ var WrBarChart = class WrBarChart {
|
|
|
891
891
|
};
|
|
892
892
|
i0.ɵɵngDeclareClassMetadata({
|
|
893
893
|
minVersion: "12.0.0",
|
|
894
|
-
version: "22.
|
|
894
|
+
version: "22.3.0",
|
|
895
895
|
ngImport: i0,
|
|
896
896
|
type: WrBarChart,
|
|
897
897
|
decorators: [{
|
|
@@ -412,7 +412,7 @@ var WrBoxplotChart = class WrBoxplotChart {
|
|
|
412
412
|
}
|
|
413
413
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
414
414
|
minVersion: "12.0.0",
|
|
415
|
-
version: "22.
|
|
415
|
+
version: "22.3.0",
|
|
416
416
|
ngImport: i0,
|
|
417
417
|
type: WrBoxplotChart,
|
|
418
418
|
deps: [],
|
|
@@ -420,7 +420,7 @@ var WrBoxplotChart = class WrBoxplotChart {
|
|
|
420
420
|
});
|
|
421
421
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
422
422
|
minVersion: "17.0.0",
|
|
423
|
-
version: "22.
|
|
423
|
+
version: "22.3.0",
|
|
424
424
|
type: WrBoxplotChart,
|
|
425
425
|
isStandalone: true,
|
|
426
426
|
selector: "wr-boxplot-chart",
|
|
@@ -560,7 +560,7 @@ var WrBoxplotChart = class WrBoxplotChart {
|
|
|
560
560
|
};
|
|
561
561
|
i0.ɵɵngDeclareClassMetadata({
|
|
562
562
|
minVersion: "12.0.0",
|
|
563
|
-
version: "22.
|
|
563
|
+
version: "22.3.0",
|
|
564
564
|
ngImport: i0,
|
|
565
565
|
type: WrBoxplotChart,
|
|
566
566
|
decorators: [{
|
|
@@ -268,7 +268,7 @@ var WrBulletChart = class WrBulletChart {
|
|
|
268
268
|
});
|
|
269
269
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
270
270
|
minVersion: "12.0.0",
|
|
271
|
-
version: "22.
|
|
271
|
+
version: "22.3.0",
|
|
272
272
|
ngImport: i0,
|
|
273
273
|
type: WrBulletChart,
|
|
274
274
|
deps: [],
|
|
@@ -276,7 +276,7 @@ var WrBulletChart = class WrBulletChart {
|
|
|
276
276
|
});
|
|
277
277
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
278
278
|
minVersion: "17.0.0",
|
|
279
|
-
version: "22.
|
|
279
|
+
version: "22.3.0",
|
|
280
280
|
type: WrBulletChart,
|
|
281
281
|
isStandalone: true,
|
|
282
282
|
selector: "wr-bullet-chart",
|
|
@@ -411,7 +411,7 @@ var WrBulletChart = class WrBulletChart {
|
|
|
411
411
|
};
|
|
412
412
|
i0.ɵɵngDeclareClassMetadata({
|
|
413
413
|
minVersion: "12.0.0",
|
|
414
|
-
version: "22.
|
|
414
|
+
version: "22.3.0",
|
|
415
415
|
ngImport: i0,
|
|
416
416
|
type: WrBulletChart,
|
|
417
417
|
decorators: [{
|
|
@@ -306,7 +306,7 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
|
|
|
306
306
|
}
|
|
307
307
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
308
308
|
minVersion: "12.0.0",
|
|
309
|
-
version: "22.
|
|
309
|
+
version: "22.3.0",
|
|
310
310
|
ngImport: i0,
|
|
311
311
|
type: WrCalendarHeatmap,
|
|
312
312
|
deps: [],
|
|
@@ -314,7 +314,7 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
|
|
|
314
314
|
});
|
|
315
315
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
316
316
|
minVersion: "17.0.0",
|
|
317
|
-
version: "22.
|
|
317
|
+
version: "22.3.0",
|
|
318
318
|
type: WrCalendarHeatmap,
|
|
319
319
|
isStandalone: true,
|
|
320
320
|
selector: "wr-calendar-heatmap",
|
|
@@ -507,7 +507,7 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
|
|
|
507
507
|
};
|
|
508
508
|
i0.ɵɵngDeclareClassMetadata({
|
|
509
509
|
minVersion: "12.0.0",
|
|
510
|
-
version: "22.
|
|
510
|
+
version: "22.3.0",
|
|
511
511
|
ngImport: i0,
|
|
512
512
|
type: WrCalendarHeatmap,
|
|
513
513
|
decorators: [{
|
|
@@ -385,7 +385,7 @@ var WrCandlestickChart = class WrCandlestickChart {
|
|
|
385
385
|
}
|
|
386
386
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
387
387
|
minVersion: "12.0.0",
|
|
388
|
-
version: "22.
|
|
388
|
+
version: "22.3.0",
|
|
389
389
|
ngImport: i0,
|
|
390
390
|
type: WrCandlestickChart,
|
|
391
391
|
deps: [],
|
|
@@ -393,7 +393,7 @@ var WrCandlestickChart = class WrCandlestickChart {
|
|
|
393
393
|
});
|
|
394
394
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
395
395
|
minVersion: "17.0.0",
|
|
396
|
-
version: "22.
|
|
396
|
+
version: "22.3.0",
|
|
397
397
|
type: WrCandlestickChart,
|
|
398
398
|
isStandalone: true,
|
|
399
399
|
selector: "wr-candlestick-chart",
|
|
@@ -575,7 +575,7 @@ var WrCandlestickChart = class WrCandlestickChart {
|
|
|
575
575
|
};
|
|
576
576
|
i0.ɵɵngDeclareClassMetadata({
|
|
577
577
|
minVersion: "12.0.0",
|
|
578
|
-
version: "22.
|
|
578
|
+
version: "22.3.0",
|
|
579
579
|
ngImport: i0,
|
|
580
580
|
type: WrCandlestickChart,
|
|
581
581
|
decorators: [{
|
|
@@ -18,7 +18,7 @@ var WrChartLegendPart = class WrChartLegendPart {
|
|
|
18
18
|
wrChartLegendPart = input("", ...ngDevMode ? [{ debugName: "wrChartLegendPart" }] : /* istanbul ignore next */ []);
|
|
19
19
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
20
20
|
minVersion: "12.0.0",
|
|
21
|
-
version: "22.
|
|
21
|
+
version: "22.3.0",
|
|
22
22
|
ngImport: i0,
|
|
23
23
|
type: WrChartLegendPart,
|
|
24
24
|
deps: [],
|
|
@@ -26,7 +26,7 @@ var WrChartLegendPart = class WrChartLegendPart {
|
|
|
26
26
|
});
|
|
27
27
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
28
28
|
minVersion: "17.1.0",
|
|
29
|
-
version: "22.
|
|
29
|
+
version: "22.3.0",
|
|
30
30
|
type: WrChartLegendPart,
|
|
31
31
|
isStandalone: true,
|
|
32
32
|
selector: "[wrChartLegendPart]",
|
|
@@ -43,7 +43,7 @@ var WrChartLegendPart = class WrChartLegendPart {
|
|
|
43
43
|
};
|
|
44
44
|
i0.ɵɵngDeclareClassMetadata({
|
|
45
45
|
minVersion: "12.0.0",
|
|
46
|
-
version: "22.
|
|
46
|
+
version: "22.3.0",
|
|
47
47
|
ngImport: i0,
|
|
48
48
|
type: WrChartLegendPart,
|
|
49
49
|
decorators: [{
|
|
@@ -134,7 +134,7 @@ var WrChartLegend = class WrChartLegend {
|
|
|
134
134
|
}
|
|
135
135
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
136
136
|
minVersion: "12.0.0",
|
|
137
|
-
version: "22.
|
|
137
|
+
version: "22.3.0",
|
|
138
138
|
ngImport: i0,
|
|
139
139
|
type: WrChartLegend,
|
|
140
140
|
deps: [],
|
|
@@ -142,7 +142,7 @@ var WrChartLegend = class WrChartLegend {
|
|
|
142
142
|
});
|
|
143
143
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
144
144
|
minVersion: "17.0.0",
|
|
145
|
-
version: "22.
|
|
145
|
+
version: "22.3.0",
|
|
146
146
|
type: WrChartLegend,
|
|
147
147
|
isStandalone: true,
|
|
148
148
|
selector: "ul[wr-chart-legend]",
|
|
@@ -229,7 +229,7 @@ var WrChartLegend = class WrChartLegend {
|
|
|
229
229
|
};
|
|
230
230
|
i0.ɵɵngDeclareClassMetadata({
|
|
231
231
|
minVersion: "12.0.0",
|
|
232
|
-
version: "22.
|
|
232
|
+
version: "22.3.0",
|
|
233
233
|
ngImport: i0,
|
|
234
234
|
type: WrChartLegend,
|
|
235
235
|
decorators: [{
|
|
@@ -336,7 +336,7 @@ var WrChartScale = class WrChartScale {
|
|
|
336
336
|
}, ...ngDevMode ? [{ debugName: "parts" }] : /* istanbul ignore next */ []);
|
|
337
337
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
338
338
|
minVersion: "12.0.0",
|
|
339
|
-
version: "22.
|
|
339
|
+
version: "22.3.0",
|
|
340
340
|
ngImport: i0,
|
|
341
341
|
type: WrChartScale,
|
|
342
342
|
deps: [],
|
|
@@ -344,7 +344,7 @@ var WrChartScale = class WrChartScale {
|
|
|
344
344
|
});
|
|
345
345
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
346
346
|
minVersion: "17.0.0",
|
|
347
|
-
version: "22.
|
|
347
|
+
version: "22.3.0",
|
|
348
348
|
type: WrChartScale,
|
|
349
349
|
isStandalone: true,
|
|
350
350
|
selector: "wr-chart-scale",
|
|
@@ -408,7 +408,7 @@ var WrChartScale = class WrChartScale {
|
|
|
408
408
|
};
|
|
409
409
|
i0.ɵɵngDeclareClassMetadata({
|
|
410
410
|
minVersion: "12.0.0",
|
|
411
|
-
version: "22.
|
|
411
|
+
version: "22.3.0",
|
|
412
412
|
ngImport: i0,
|
|
413
413
|
type: WrChartScale,
|
|
414
414
|
decorators: [{
|
|
@@ -125,7 +125,7 @@ var WrChartState = class WrChartState {
|
|
|
125
125
|
label = input.required(...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
126
126
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
127
127
|
minVersion: "12.0.0",
|
|
128
|
-
version: "22.
|
|
128
|
+
version: "22.3.0",
|
|
129
129
|
ngImport: i0,
|
|
130
130
|
type: WrChartState,
|
|
131
131
|
deps: [],
|
|
@@ -133,7 +133,7 @@ var WrChartState = class WrChartState {
|
|
|
133
133
|
});
|
|
134
134
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
135
135
|
minVersion: "17.0.0",
|
|
136
|
-
version: "22.
|
|
136
|
+
version: "22.3.0",
|
|
137
137
|
type: WrChartState,
|
|
138
138
|
isStandalone: true,
|
|
139
139
|
selector: "wr-chart-state",
|
|
@@ -169,7 +169,7 @@ var WrChartState = class WrChartState {
|
|
|
169
169
|
};
|
|
170
170
|
i0.ɵɵngDeclareClassMetadata({
|
|
171
171
|
minVersion: "12.0.0",
|
|
172
|
-
version: "22.
|
|
172
|
+
version: "22.3.0",
|
|
173
173
|
ngImport: i0,
|
|
174
174
|
type: WrChartState,
|
|
175
175
|
decorators: [{
|
|
@@ -217,7 +217,7 @@ var WrChartTable = class WrChartTable {
|
|
|
217
217
|
hasGroupHeaders = computed(() => this.data().groups.some((group) => !!group.header), ...ngDevMode ? [{ debugName: "hasGroupHeaders" }] : /* istanbul ignore next */ []);
|
|
218
218
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
219
219
|
minVersion: "12.0.0",
|
|
220
|
-
version: "22.
|
|
220
|
+
version: "22.3.0",
|
|
221
221
|
ngImport: i0,
|
|
222
222
|
type: WrChartTable,
|
|
223
223
|
deps: [],
|
|
@@ -225,7 +225,7 @@ var WrChartTable = class WrChartTable {
|
|
|
225
225
|
});
|
|
226
226
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
227
227
|
minVersion: "17.0.0",
|
|
228
|
-
version: "22.
|
|
228
|
+
version: "22.3.0",
|
|
229
229
|
type: WrChartTable,
|
|
230
230
|
isStandalone: true,
|
|
231
231
|
selector: "wr-chart-table",
|
|
@@ -244,7 +244,7 @@ var WrChartTable = class WrChartTable {
|
|
|
244
244
|
};
|
|
245
245
|
i0.ɵɵngDeclareClassMetadata({
|
|
246
246
|
minVersion: "12.0.0",
|
|
247
|
-
version: "22.
|
|
247
|
+
version: "22.3.0",
|
|
248
248
|
ngImport: i0,
|
|
249
249
|
type: WrChartTable,
|
|
250
250
|
decorators: [{
|
|
@@ -267,7 +267,7 @@ var WrDonutChart = class WrDonutChart {
|
|
|
267
267
|
}
|
|
268
268
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
269
269
|
minVersion: "12.0.0",
|
|
270
|
-
version: "22.
|
|
270
|
+
version: "22.3.0",
|
|
271
271
|
ngImport: i0,
|
|
272
272
|
type: WrDonutChart,
|
|
273
273
|
deps: [],
|
|
@@ -275,7 +275,7 @@ var WrDonutChart = class WrDonutChart {
|
|
|
275
275
|
});
|
|
276
276
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
277
277
|
minVersion: "17.0.0",
|
|
278
|
-
version: "22.
|
|
278
|
+
version: "22.3.0",
|
|
279
279
|
type: WrDonutChart,
|
|
280
280
|
isStandalone: true,
|
|
281
281
|
selector: "wr-donut-chart",
|
|
@@ -473,7 +473,7 @@ var WrDonutChart = class WrDonutChart {
|
|
|
473
473
|
};
|
|
474
474
|
i0.ɵɵngDeclareClassMetadata({
|
|
475
475
|
minVersion: "12.0.0",
|
|
476
|
-
version: "22.
|
|
476
|
+
version: "22.3.0",
|
|
477
477
|
ngImport: i0,
|
|
478
478
|
type: WrDonutChart,
|
|
479
479
|
decorators: [{
|
|
@@ -217,7 +217,7 @@ var WrFunnelChart = class WrFunnelChart {
|
|
|
217
217
|
}
|
|
218
218
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
219
219
|
minVersion: "12.0.0",
|
|
220
|
-
version: "22.
|
|
220
|
+
version: "22.3.0",
|
|
221
221
|
ngImport: i0,
|
|
222
222
|
type: WrFunnelChart,
|
|
223
223
|
deps: [],
|
|
@@ -225,7 +225,7 @@ var WrFunnelChart = class WrFunnelChart {
|
|
|
225
225
|
});
|
|
226
226
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
227
227
|
minVersion: "17.0.0",
|
|
228
|
-
version: "22.
|
|
228
|
+
version: "22.3.0",
|
|
229
229
|
type: WrFunnelChart,
|
|
230
230
|
isStandalone: true,
|
|
231
231
|
selector: "wr-funnel-chart",
|
|
@@ -368,7 +368,7 @@ var WrFunnelChart = class WrFunnelChart {
|
|
|
368
368
|
};
|
|
369
369
|
i0.ɵɵngDeclareClassMetadata({
|
|
370
370
|
minVersion: "12.0.0",
|
|
371
|
-
version: "22.
|
|
371
|
+
version: "22.3.0",
|
|
372
372
|
ngImport: i0,
|
|
373
373
|
type: WrFunnelChart,
|
|
374
374
|
decorators: [{
|
|
@@ -108,7 +108,7 @@ var WrGauge = class WrGauge {
|
|
|
108
108
|
});
|
|
109
109
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
110
110
|
minVersion: "12.0.0",
|
|
111
|
-
version: "22.
|
|
111
|
+
version: "22.3.0",
|
|
112
112
|
ngImport: i0,
|
|
113
113
|
type: WrGauge,
|
|
114
114
|
deps: [],
|
|
@@ -116,7 +116,7 @@ var WrGauge = class WrGauge {
|
|
|
116
116
|
});
|
|
117
117
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
118
118
|
minVersion: "17.0.0",
|
|
119
|
-
version: "22.
|
|
119
|
+
version: "22.3.0",
|
|
120
120
|
type: WrGauge,
|
|
121
121
|
isStandalone: true,
|
|
122
122
|
selector: "wr-gauge",
|
|
@@ -255,7 +255,7 @@ var WrGauge = class WrGauge {
|
|
|
255
255
|
};
|
|
256
256
|
i0.ɵɵngDeclareClassMetadata({
|
|
257
257
|
minVersion: "12.0.0",
|
|
258
|
-
version: "22.
|
|
258
|
+
version: "22.3.0",
|
|
259
259
|
ngImport: i0,
|
|
260
260
|
type: WrGauge,
|
|
261
261
|
decorators: [{
|