ngwr 16.2.0 → 16.4.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/badge/styles/_tag.scss +73 -1
- package/calendar/styles/_index.scss +22 -0
- package/carousel/styles/_index.scss +53 -1
- package/cascader/styles/_rules.scss +7 -0
- package/color-picker/styles/_index.scss +21 -0
- package/date-picker/styles/_index.scss +19 -0
- package/dropdown/styles/_index.scss +13 -19
- package/fesm2022/ngwr-affix.mjs +3 -3
- package/fesm2022/ngwr-alert-testing.mjs +70 -0
- package/fesm2022/ngwr-alert-testing.mjs.map +1 -0
- package/fesm2022/ngwr-alert.mjs +3 -3
- package/fesm2022/ngwr-anchor.mjs +17 -6
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- 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 +3 -3
- 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 +3 -3
- package/fesm2022/ngwr-back-top.mjs +3 -3
- package/fesm2022/ngwr-badge.mjs +129 -11
- package/fesm2022/ngwr-badge.mjs.map +1 -1
- package/fesm2022/ngwr-breadcrumbs-testing.mjs +83 -0
- package/fesm2022/ngwr-breadcrumbs-testing.mjs.map +1 -0
- package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger-testing.mjs +45 -0
- package/fesm2022/ngwr-burger-testing.mjs.map +1 -0
- package/fesm2022/ngwr-burger.mjs +3 -3
- package/fesm2022/ngwr-button.mjs +6 -6
- package/fesm2022/ngwr-calendar-testing.mjs +18 -0
- package/fesm2022/ngwr-calendar-testing.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +500 -73
- package/fesm2022/ngwr-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-card.mjs +9 -9
- package/fesm2022/ngwr-carousel-testing.mjs +24 -1
- package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +73 -10
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +45 -37
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
- 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 +26 -11
- package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +3 -3
- package/fesm2022/ngwr-charts-donut-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- 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-testing.mjs +3 -2
- package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart.mjs +17 -7
- package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +5 -4
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
- 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-testing.mjs +11 -1
- package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +153 -37
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-command-palette.mjs +3 -3
- package/fesm2022/ngwr-comment.mjs +10 -6
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare-testing.mjs +84 -0
- package/fesm2022/ngwr-compare-testing.mjs.map +1 -0
- package/fesm2022/ngwr-compare.mjs +3 -3
- package/fesm2022/ngwr-context-menu.mjs +28 -13
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- 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 +30 -4
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +342 -69
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp.mjs +3 -3
- package/fesm2022/ngwr-date.mjs +59 -8
- 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 +18 -18
- package/fesm2022/ngwr-directives.mjs +15 -15
- package/fesm2022/ngwr-divider.mjs +3 -3
- package/fesm2022/ngwr-drawer.mjs +51 -29
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown-testing.mjs +11 -3
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +70 -99
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +4 -3
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-empty.mjs +3 -3
- package/fesm2022/ngwr-event-calendar.mjs +186 -33
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload-testing.mjs +34 -2
- package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +279 -16
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +9 -9
- 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 +664 -43
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +6 -6
- package/fesm2022/ngwr-i18n-ar.mjs +27 -8
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +27 -8
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +27 -8
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +27 -8
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +27 -8
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +27 -8
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +27 -8
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +27 -8
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +27 -8
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +27 -8
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +27 -8
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +27 -8
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +27 -8
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +27 -8
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +27 -8
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +27 -8
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +27 -8
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +27 -8
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +27 -8
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +27 -8
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +27 -8
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +27 -8
- 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 +3 -3
- package/fesm2022/ngwr-input-number-testing.mjs +11 -0
- package/fesm2022/ngwr-input-number-testing.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +68 -7
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +23 -3
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input-testing.mjs +24 -1
- package/fesm2022/ngwr-input-testing.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +152 -36
- package/fesm2022/ngwr-input.mjs.map +1 -1
- 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 +15 -15
- 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 +175 -13
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-page-header.mjs +3 -3
- package/fesm2022/ngwr-pagination.mjs +6 -3
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +31 -29
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-platform.mjs +9 -9
- package/fesm2022/ngwr-popconfirm-testing.mjs +5 -2
- package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +44 -63
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover-testing.mjs +7 -1
- package/fesm2022/ngwr-popover-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +58 -156
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +50 -9
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-pull-to-refresh-testing.mjs +57 -0
- package/fesm2022/ngwr-pull-to-refresh-testing.mjs.map +1 -0
- 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-testing.mjs +113 -0
- package/fesm2022/ngwr-resizable-testing.mjs.map +1 -0
- package/fesm2022/ngwr-resizable.mjs +3 -3
- package/fesm2022/ngwr-result.mjs +12 -12
- package/fesm2022/ngwr-schema-form-testing.mjs +336 -0
- package/fesm2022/ngwr-schema-form-testing.mjs.map +1 -0
- package/fesm2022/ngwr-schema-form.mjs +416 -19
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +3 -3
- package/fesm2022/ngwr-segmented.mjs +3 -3
- package/fesm2022/ngwr-select-testing.mjs +19 -0
- package/fesm2022/ngwr-select-testing.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +361 -84
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar-testing.mjs +176 -0
- package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -0
- package/fesm2022/ngwr-sidebar.mjs +3 -3
- package/fesm2022/ngwr-skeleton.mjs +3 -3
- package/fesm2022/ngwr-slider-testing.mjs +6 -0
- package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +21 -3
- package/fesm2022/ngwr-slider.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list.mjs +29 -12
- 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 +42 -11
- package/fesm2022/ngwr-stepper.mjs.map +1 -1
- package/fesm2022/ngwr-storage.mjs +3 -3
- package/fesm2022/ngwr-switch.mjs +3 -3
- package/fesm2022/ngwr-table-testing.mjs +157 -3
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +1051 -74
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-router.mjs +3 -3
- package/fesm2022/ngwr-tabs-testing.mjs +1 -1
- package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +15 -10
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea-testing.mjs +11 -0
- package/fesm2022/ngwr-textarea-testing.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +128 -16
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-theme.mjs +3 -3
- package/fesm2022/ngwr-timeline.mjs +6 -6
- package/fesm2022/ngwr-toast.mjs +40 -19
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +3 -3
- package/fesm2022/ngwr-tour-testing.mjs +13 -1
- package/fesm2022/ngwr-tour-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +19 -15
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-transfer-testing.mjs +6 -0
- package/fesm2022/ngwr-transfer-testing.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +24 -5
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree-testing.mjs +62 -2
- package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +978 -79
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-typography.mjs +3 -3
- package/fesm2022/ngwr-utils-router.mjs +3 -3
- package/fesm2022/ngwr-utils.mjs +97 -1
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
- package/fesm2022/ngwr-window.mjs +33 -22
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/file-upload/styles/_index.scss +156 -0
- package/graph/styles/_index.scss +87 -0
- package/i18n/ar.json +29 -8
- package/i18n/cs.json +29 -8
- package/i18n/de.json +29 -8
- package/i18n/en.json +29 -8
- package/i18n/es.json +29 -8
- package/i18n/fr.json +29 -8
- package/i18n/he.json +29 -8
- package/i18n/hi.json +29 -8
- package/i18n/id.json +29 -8
- package/i18n/it.json +29 -8
- package/i18n/ja.json +29 -8
- package/i18n/ko.json +29 -8
- package/i18n/nl.json +29 -8
- package/i18n/pl.json +29 -8
- package/i18n/pt.json +29 -8
- package/i18n/ru.json +29 -8
- package/i18n/sv.json +29 -8
- package/i18n/tr.json +29 -8
- package/i18n/uk.json +29 -8
- package/i18n/vi.json +29 -8
- package/i18n/zh-TW.json +29 -8
- package/i18n/zh.json +29 -8
- package/input/styles/_index.scss +68 -1
- package/input-otp/styles/_index.scss +14 -0
- package/llms-full.txt +53 -21
- package/llms.txt +57 -24
- package/overlay/styles/_arrow.scss +4 -4
- package/package.json +33 -1
- package/popconfirm/styles/_index.scss +3 -11
- package/progress/styles/_index.scss +32 -0
- package/schema-form/styles/_index.scss +78 -0
- package/schematics/collection.json +5 -0
- package/schematics/eject/index.js +158 -0
- package/schematics/eject/schema.js +8 -0
- package/schematics/eject/schema.json +24 -0
- package/schematics/eject/source.js +295 -0
- package/schematics/use/rule.js +2 -0
- package/schematics/use/symbol-map.json +5 -0
- package/select/styles/_index.scss +127 -22
- package/skills/ngwr/SKILL.md +31 -4
- package/skills/ngwr/references/catalog.md +9 -1
- package/slider/styles/_index.scss +22 -0
- package/table/styles/_index.scss +191 -3
- package/textarea/styles/_index.scss +80 -0
- package/theme/styles/_focus.scss +16 -1
- package/theme/styles/_motion.scss +5 -0
- package/transfer/styles/_index.scss +84 -0
- package/tree/styles/_index.scss +138 -5
- package/types/ngwr-alert-testing.d.ts +88 -0
- package/types/ngwr-badge.d.ts +72 -2
- package/types/ngwr-breadcrumbs-testing.d.ts +92 -0
- package/types/ngwr-burger-testing.d.ts +51 -0
- package/types/ngwr-calendar-testing.d.ts +18 -6
- package/types/ngwr-calendar.d.ts +272 -22
- package/types/ngwr-carousel-testing.d.ts +27 -6
- package/types/ngwr-carousel.d.ts +42 -6
- package/types/ngwr-cascader.d.ts +13 -6
- package/types/ngwr-charts-chart-legend.d.ts +9 -4
- package/types/ngwr-charts-line-chart-testing.d.ts +4 -1
- package/types/ngwr-charts-line-chart.d.ts +7 -4
- package/types/ngwr-color-picker-testing.d.ts +15 -4
- package/types/ngwr-color-picker.d.ts +76 -6
- package/types/ngwr-compare-testing.d.ts +72 -0
- package/types/ngwr-context-menu.d.ts +2 -0
- package/types/ngwr-date-picker-testing.d.ts +23 -8
- package/types/ngwr-date-picker.d.ts +100 -9
- package/types/ngwr-date.d.ts +71 -1
- package/types/ngwr-drawer.d.ts +9 -0
- package/types/ngwr-dropdown-testing.d.ts +20 -0
- package/types/ngwr-dropdown.d.ts +26 -6
- package/types/ngwr-event-calendar.d.ts +66 -8
- package/types/ngwr-file-upload-testing.d.ts +31 -2
- package/types/ngwr-file-upload.d.ts +156 -3
- package/types/ngwr-form.d.ts +47 -3
- package/types/ngwr-graph-testing.d.ts +36 -3
- package/types/ngwr-graph.d.ts +309 -13
- package/types/ngwr-input-number-testing.d.ts +10 -0
- package/types/ngwr-input-number.d.ts +30 -1
- package/types/ngwr-input-otp.d.ts +10 -0
- package/types/ngwr-input-testing.d.ts +30 -0
- package/types/ngwr-input.d.ts +54 -3
- package/types/ngwr-overlay.d.ts +84 -5
- package/types/ngwr-pipes.d.ts +2 -1
- package/types/ngwr-popconfirm-testing.d.ts +12 -3
- package/types/ngwr-popconfirm.d.ts +28 -3
- package/types/ngwr-popover-testing.d.ts +19 -2
- package/types/ngwr-popover.d.ts +22 -2
- package/types/ngwr-progress.d.ts +29 -1
- package/types/ngwr-pull-to-refresh-testing.d.ts +83 -0
- package/types/ngwr-resizable-testing.d.ts +116 -0
- package/types/ngwr-schema-form-testing.d.ts +260 -0
- package/types/ngwr-schema-form.d.ts +76 -6
- package/types/ngwr-select-testing.d.ts +20 -0
- package/types/ngwr-select.d.ts +149 -11
- package/types/ngwr-sidebar-testing.d.ts +176 -0
- package/types/ngwr-slider-testing.d.ts +3 -1
- package/types/ngwr-slider.d.ts +21 -1
- package/types/ngwr-sortable-list.d.ts +6 -0
- package/types/ngwr-stepper.d.ts +20 -11
- package/types/ngwr-table-testing.d.ts +122 -7
- package/types/ngwr-table.d.ts +572 -50
- package/types/ngwr-tabs-testing.d.ts +14 -17
- package/types/ngwr-tabs.d.ts +6 -0
- package/types/ngwr-textarea-testing.d.ts +10 -0
- package/types/ngwr-textarea.d.ts +48 -2
- package/types/ngwr-toast.d.ts +8 -1
- package/types/ngwr-tour-testing.d.ts +10 -0
- package/types/ngwr-tour.d.ts +11 -2
- package/types/ngwr-transfer-testing.d.ts +3 -0
- package/types/ngwr-transfer.d.ts +24 -1
- package/types/ngwr-tree-testing.d.ts +65 -1
- package/types/ngwr-tree.d.ts +335 -12
- package/types/ngwr-utils.d.ts +107 -1
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window.d.ts +7 -4
package/types/ngwr-select.d.ts
CHANGED
|
@@ -40,6 +40,8 @@ interface WrSelectOptionRegistration {
|
|
|
40
40
|
* plain reader let the trigger cache the English fallback forever.
|
|
41
41
|
*/
|
|
42
42
|
readonly label: Signal<string>;
|
|
43
|
+
/** `label` lowercased once, for the search filter. Optional, like `host`. */
|
|
44
|
+
readonly searchLabel?: Signal<string>;
|
|
43
45
|
/**
|
|
44
46
|
* The option's own element, when it has one. The keyboard cursor walks the
|
|
45
47
|
* registry, and registration order is CREATION order — projected children are
|
|
@@ -117,6 +119,8 @@ interface WrSelectContext {
|
|
|
117
119
|
selectOption(value: unknown): void;
|
|
118
120
|
/** Register an option; returns an unregister function. */
|
|
119
121
|
registerOption(reg: WrSelectOptionRegistration): () => void;
|
|
122
|
+
/** Replace a registered option, matched by id, without moving it. */
|
|
123
|
+
updateOption(reg: WrSelectOptionRegistration): void;
|
|
120
124
|
}
|
|
121
125
|
/**
|
|
122
126
|
* @license
|
|
@@ -528,10 +532,16 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
528
532
|
readonly retryable: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
529
533
|
/** Search mode: label of the retry action on the error row. Falls back to `select.retry`. */
|
|
530
534
|
readonly retryText: import("@angular/core").InputSignal<string | null>;
|
|
535
|
+
/**
|
|
536
|
+
* Search mode: what a screen reader hears once a search has settled on some
|
|
537
|
+
* options. `{{count}}` is their number. Falls back to `select.results`.
|
|
538
|
+
*/
|
|
539
|
+
readonly resultsText: import("@angular/core").InputSignal<string | null>;
|
|
531
540
|
protected readonly resolvedNoResults: import("@angular/core").Signal<string>;
|
|
532
541
|
protected readonly resolvedLoading: import("@angular/core").Signal<string>;
|
|
533
542
|
protected readonly resolvedLoadError: import("@angular/core").Signal<string>;
|
|
534
543
|
protected readonly resolvedRetry: import("@angular/core").Signal<string>;
|
|
544
|
+
private readonly resultsFormat;
|
|
535
545
|
/**
|
|
536
546
|
* Debounced search query, gated to searchable selects. Emits on every settled
|
|
537
547
|
* change — including the empty string when the field is cleared — so a
|
|
@@ -636,6 +646,24 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
636
646
|
* disabled look — and refuse a pick until one is removed. @default 0
|
|
637
647
|
*/
|
|
638
648
|
readonly maxItems: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
649
|
+
/**
|
|
650
|
+
* Multi mode: a first, pinned "Select all" row in the panel. It toggles every
|
|
651
|
+
* enabled option the panel is offering, so under a search only the ones the
|
|
652
|
+
* query matches, and with `virtualScroll` the whole filtered list rather than
|
|
653
|
+
* the rendered rows. It adds in display order and stops at `maxItems`; a
|
|
654
|
+
* second press, with nothing left to add, takes the offered options out again.
|
|
655
|
+
* A selection the search is hiding is never touched.
|
|
656
|
+
*
|
|
657
|
+
* The row is a `role="option"`, since a listbox owns nothing else, and says
|
|
658
|
+
* its state through `aria-checked`: `true` when every offered option is
|
|
659
|
+
* selected, `mixed` when some are, `false` when none. The arrows and Home
|
|
660
|
+
* reach it like any row and Enter or Space toggles it. Not drawn in single
|
|
661
|
+
* mode, in tag mode, or while the panel offers no option. @default false
|
|
662
|
+
*/
|
|
663
|
+
readonly selectAll: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
664
|
+
/** Text of the select-all row. Falls back to `select.selectAll`, then `'Select all'`. */
|
|
665
|
+
readonly selectAllLabel: import("@angular/core").InputSignal<string | null>;
|
|
666
|
+
protected readonly resolvedSelectAll: import("@angular/core").Signal<string>;
|
|
639
667
|
/**
|
|
640
668
|
* Maximum number of chips rendered before collapsing the rest into a
|
|
641
669
|
* `+N more` indicator. `0` = render every chip. @default 0
|
|
@@ -655,24 +683,52 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
655
683
|
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
656
684
|
/** Listbox id used by the trigger's `aria-controls`. */
|
|
657
685
|
protected readonly listboxId: string;
|
|
658
|
-
/**
|
|
659
|
-
|
|
686
|
+
/**
|
|
687
|
+
* Registered options by id, in creation order. Internal, distinct from the
|
|
688
|
+
* public `[options]` input. A plain map and not a signal of arrays: every
|
|
689
|
+
* option registers as the panel opens and unregisters as it closes, and a
|
|
690
|
+
* copy of the list per option is quadratic. Readers track `registryVersion`.
|
|
691
|
+
*/
|
|
692
|
+
private readonly registrations;
|
|
693
|
+
private readonly registryVersion;
|
|
694
|
+
/** The first registration carrying each value, as `find` over creation order answered. */
|
|
695
|
+
private readonly registryByValue;
|
|
696
|
+
/**
|
|
697
|
+
* The registry sorted by document position. Kept between reads and appended
|
|
698
|
+
* to while each new option follows the last one, as every `[options]` row of
|
|
699
|
+
* an opening panel does: each option's `active` binding reads the order
|
|
700
|
+
* between two registrations, so a sort per read is a sort per option.
|
|
701
|
+
*/
|
|
702
|
+
private ordered;
|
|
703
|
+
private orderStale;
|
|
704
|
+
/** `ordered` is also creation order, so an option no sort can place goes last in both. */
|
|
705
|
+
private orderIsCreation;
|
|
660
706
|
/**
|
|
661
707
|
* The registry in DOM order — the list the keyboard cursor walks.
|
|
662
708
|
*
|
|
663
|
-
*
|
|
709
|
+
* The registry is CREATION order, and projected `<wr-option>` children are created
|
|
664
710
|
* before the panel renders its own `[options]` rows, so with both in play the
|
|
665
711
|
* cursor moved in an order the eye could not follow: opening highlighted the
|
|
666
|
-
* third row on screen and ArrowDown went to the last. Value lookups
|
|
667
|
-
*
|
|
668
|
-
*
|
|
712
|
+
* third row on screen and ArrowDown went to the last. Value lookups do not
|
|
713
|
+
* care about order, and a registration with no element keeps its place, since
|
|
714
|
+
* the sort is stable.
|
|
715
|
+
*
|
|
716
|
+
* It hands out the one `ordered` array, so it never compares equal.
|
|
669
717
|
*/
|
|
670
718
|
private readonly orderedRegistry;
|
|
719
|
+
/**
|
|
720
|
+
* Bumped once the panel is attached. Only then are projected option hosts in
|
|
721
|
+
* the document, so only then can `orderedRegistry` sort what was added or
|
|
722
|
+
* moved while the panel was closed.
|
|
723
|
+
*/
|
|
724
|
+
private readonly panelAttached;
|
|
671
725
|
/** Keyboard cursor index into `options`. -1 = none. */
|
|
672
726
|
protected readonly activeIndex: import("@angular/core").WritableSignal<number>;
|
|
673
727
|
/** Id of the active option (for `aria-activedescendant`). */
|
|
674
728
|
readonly activeOptionId: import("@angular/core").Signal<string | null>;
|
|
675
|
-
|
|
729
|
+
private readonly openState;
|
|
730
|
+
/** Whether the panel is open. Read-only: `open()` and `close()` change it. */
|
|
731
|
+
readonly isOpen: import("@angular/core").Signal<boolean>;
|
|
676
732
|
/** WrSelectContext — whether the panel is open. Options gate their leading visual on it. */
|
|
677
733
|
readonly panelOpen: import("@angular/core").Signal<boolean>;
|
|
678
734
|
/**
|
|
@@ -732,7 +788,7 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
732
788
|
* Trigger label for single mode. Multi reads `selectedChips` instead.
|
|
733
789
|
*
|
|
734
790
|
* A `computed`, and that is the whole point. It used to be a `signal` written
|
|
735
|
-
* from an effect keyed on `value` /
|
|
791
|
+
* from an effect keyed on `value` / the registry / `isMulti` / `displayWith` —
|
|
736
792
|
* not one of which moves when the OPTION'S OWN TEXT does, and that text is
|
|
737
793
|
* projected content whose ordinary way of changing is a translation catalog
|
|
738
794
|
* landing a microtask after the first pass. The trigger kept the English
|
|
@@ -761,6 +817,9 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
761
817
|
* `<wr-option>` in the panel, in every mode that has one.
|
|
762
818
|
*/
|
|
763
819
|
protected readonly dynamicOptions: import("@angular/core").Signal<readonly T[]>;
|
|
820
|
+
private readonly dynamicOptionSet;
|
|
821
|
+
/** Lowercased labels of `dynamicOptions()`, by index: a query reads them, and never `displayWith`. */
|
|
822
|
+
private readonly dynamicSearchLabels;
|
|
764
823
|
private static readonly FALLBACK_ROW_PX;
|
|
765
824
|
private static readonly FALLBACK_VIEWPORT_PX;
|
|
766
825
|
/**
|
|
@@ -871,6 +930,26 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
871
930
|
protected readonly meetsMinChars: import("@angular/core").Signal<boolean>;
|
|
872
931
|
/** Search mode: show "no results" when the panel has nothing to offer. */
|
|
873
932
|
protected readonly hasNoResults: import("@angular/core").Signal<boolean>;
|
|
933
|
+
/**
|
|
934
|
+
* Search mode: what the open panel has to say to someone who cannot see it.
|
|
935
|
+
* The loading, error and "no results" rows are text in a listbox, which a
|
|
936
|
+
* screen reader does not read unless the user walks there, and a count is
|
|
937
|
+
* nowhere on screen at all.
|
|
938
|
+
*/
|
|
939
|
+
private readonly searchStatus;
|
|
940
|
+
/** Text of the one live region. Written {@link ANNOUNCE_DELAY} ms after the status last changed. */
|
|
941
|
+
protected readonly announcement: import("@angular/core").WritableSignal<string>;
|
|
942
|
+
/** The status last said, or taken as said when the panel opened: the same one is not said twice. */
|
|
943
|
+
private announced;
|
|
944
|
+
private announceTimer;
|
|
945
|
+
/**
|
|
946
|
+
* Says the search status once it has stood still. Every keystroke of a client
|
|
947
|
+
* filter moves the count and every debounced load passes through "Loading", so
|
|
948
|
+
* each change restarts the wait and only what the typing settles on is read. A
|
|
949
|
+
* panel that opens on its full list says nothing: the count is news once a
|
|
950
|
+
* query has changed it.
|
|
951
|
+
*/
|
|
952
|
+
private announceStatus;
|
|
874
953
|
/** Search mode: the error row, in place of "no results", after a failed load and through its retry. */
|
|
875
954
|
protected readonly showLoadError: import("@angular/core").Signal<boolean>;
|
|
876
955
|
/** A `<ng-template wrSelectLoadError>` declared as a direct child, or `undefined`. */
|
|
@@ -893,6 +972,34 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
893
972
|
protected readonly retryOffered: import("@angular/core").Signal<boolean>;
|
|
894
973
|
/** Id of the error row, which `aria-activedescendant` names while it offers a retry. */
|
|
895
974
|
protected readonly retryRowId: string;
|
|
975
|
+
/** Id of the select-all row, which `aria-activedescendant` names while the cursor is on it. */
|
|
976
|
+
protected readonly selectAllId: string;
|
|
977
|
+
/**
|
|
978
|
+
* What the select-all row acts on: the value of every enabled option the panel
|
|
979
|
+
* is offering, in display order. The virtual path reads the filtered data, not
|
|
980
|
+
* the rendered window; the full-render path reads the registry, where a
|
|
981
|
+
* filtered-out option stays registered and has to be dropped by hand.
|
|
982
|
+
*/
|
|
983
|
+
private readonly selectAllTargets;
|
|
984
|
+
/** Whether the panel draws the select-all row: asked for, multi, and with something to select. */
|
|
985
|
+
protected readonly showSelectAll: import("@angular/core").Signal<boolean>;
|
|
986
|
+
/** How many of the offered options are selected: every one, some, or none. */
|
|
987
|
+
protected readonly selectAllState: import("@angular/core").Signal<"some" | "none" | "all">;
|
|
988
|
+
/** The row's `aria-checked`. */
|
|
989
|
+
protected readonly selectAllChecked: import("@angular/core").Signal<"true" | "false" | "mixed">;
|
|
990
|
+
/**
|
|
991
|
+
* `maxItems` is full of options the panel is not offering, so the row can
|
|
992
|
+
* neither add one nor take one out.
|
|
993
|
+
*/
|
|
994
|
+
protected readonly selectAllUnavailable: import("@angular/core").Signal<boolean>;
|
|
995
|
+
/** Whether the keyboard cursor is on the select-all row. */
|
|
996
|
+
protected readonly selectAllActive: import("@angular/core").Signal<boolean>;
|
|
997
|
+
/**
|
|
998
|
+
* The select-all row. While an offered option can still be added it adds them,
|
|
999
|
+
* in display order, up to `maxItems`; with nothing left to add it removes the
|
|
1000
|
+
* offered ones. Values the search is hiding stay as they are either way.
|
|
1001
|
+
*/
|
|
1002
|
+
protected toggleSelectAll(): void;
|
|
896
1003
|
/** Search mode: is this option hidden by the current query? @internal */
|
|
897
1004
|
private isOptionHidden;
|
|
898
1005
|
protected readonly panelTpl: import("@angular/core").Signal<TemplateRef<any>>;
|
|
@@ -937,7 +1044,9 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
937
1044
|
protected onSearchBlur(): void;
|
|
938
1045
|
/** A pointer is down inside the panel: until it lifts, a blur of the field is not a leave. */
|
|
939
1046
|
private pressInPanel;
|
|
1047
|
+
private pressEnd;
|
|
940
1048
|
protected onPanelPointerDown(event: PointerEvent): void;
|
|
1049
|
+
private endPanelPress;
|
|
941
1050
|
/** `freeText`: a non-empty trimmed query becomes the value. */
|
|
942
1051
|
private commitQuery;
|
|
943
1052
|
protected onSearchKey(event: KeyboardEvent): void;
|
|
@@ -1007,6 +1116,11 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
1007
1116
|
* is not exported from `ngwr/select`. @internal
|
|
1008
1117
|
*/
|
|
1009
1118
|
registerOption(reg: WrSelectOptionRegistration): () => void;
|
|
1119
|
+
/**
|
|
1120
|
+
* Replaces a registered option in its slot, so a change of value or disabled
|
|
1121
|
+
* does not move it in the keyboard order. @internal
|
|
1122
|
+
*/
|
|
1123
|
+
updateOption(reg: WrSelectOptionRegistration): void;
|
|
1010
1124
|
/**
|
|
1011
1125
|
* Remove one selection (chip × button) BY POSITION. Works for multi and tag
|
|
1012
1126
|
* modes.
|
|
@@ -1047,15 +1161,23 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
1047
1161
|
protected onTriggerKey(event: KeyboardEvent): void;
|
|
1048
1162
|
/**
|
|
1049
1163
|
* A seed was taken before the panel attached. The panel's own `[options]` rows
|
|
1050
|
-
* register as the portal attaches,
|
|
1051
|
-
*
|
|
1164
|
+
* register as the portal attaches, and projected ones can only be put in DOM
|
|
1165
|
+
* order then, so a seed is redone over the list as rendered: `selected` as
|
|
1166
|
+
* `seedActiveIndex` takes it, `first` as a query does. A click-open seeds
|
|
1167
|
+
* nothing and stays cursor-less.
|
|
1052
1168
|
*/
|
|
1053
1169
|
private reseedOnAttach;
|
|
1054
1170
|
private seedActiveIndex;
|
|
1171
|
+
private readonly liveLocale;
|
|
1172
|
+
private readonly typeahead;
|
|
1173
|
+
/** A letter opened the panel: the match is found once its rows are there. */
|
|
1174
|
+
private typeaheadPending;
|
|
1175
|
+
/** Move the cursor to the option the typed letters point at. */
|
|
1176
|
+
private applyTypeahead;
|
|
1055
1177
|
private moveActive;
|
|
1056
1178
|
/**
|
|
1057
1179
|
* Both scan `orderedRegistry`, and that is not interchangeable with
|
|
1058
|
-
*
|
|
1180
|
+
* creation order.
|
|
1059
1181
|
*
|
|
1060
1182
|
* They RETURN an index, and every reader of `activeIndex` — `activeOptionId`,
|
|
1061
1183
|
* `moveActive`, `seedActiveIndex`, the Enter branch of `onTriggerKey` —
|
|
@@ -1207,6 +1329,11 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
1207
1329
|
"required": false;
|
|
1208
1330
|
"isSignal": true;
|
|
1209
1331
|
};
|
|
1332
|
+
"resultsText": {
|
|
1333
|
+
"alias": "resultsText";
|
|
1334
|
+
"required": false;
|
|
1335
|
+
"isSignal": true;
|
|
1336
|
+
};
|
|
1210
1337
|
"loading": {
|
|
1211
1338
|
"alias": "loading";
|
|
1212
1339
|
"required": false;
|
|
@@ -1247,6 +1374,16 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
1247
1374
|
"required": false;
|
|
1248
1375
|
"isSignal": true;
|
|
1249
1376
|
};
|
|
1377
|
+
"selectAll": {
|
|
1378
|
+
"alias": "selectAll";
|
|
1379
|
+
"required": false;
|
|
1380
|
+
"isSignal": true;
|
|
1381
|
+
};
|
|
1382
|
+
"selectAllLabel": {
|
|
1383
|
+
"alias": "selectAllLabel";
|
|
1384
|
+
"required": false;
|
|
1385
|
+
"isSignal": true;
|
|
1386
|
+
};
|
|
1250
1387
|
"maxTagCount": {
|
|
1251
1388
|
"alias": "maxTagCount";
|
|
1252
1389
|
"required": false;
|
|
@@ -1352,6 +1489,7 @@ export declare class WrOption {
|
|
|
1352
1489
|
* chip is never what a `[label]="person.name"` on a missing name meant.
|
|
1353
1490
|
*/
|
|
1354
1491
|
private readonly resolvedLabel;
|
|
1492
|
+
private readonly searchLabel;
|
|
1355
1493
|
/**
|
|
1356
1494
|
* @internal — true when this option is currently selected. Works for
|
|
1357
1495
|
* both single and multi-select parents via `WrSelectContext.isSelected`.
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
|
|
2
|
+
/** Narrows which `<wr-sidebar>` a harness query matches. */
|
|
3
|
+
interface WrSidebarHarnessFilters extends BaseHarnessFilters {
|
|
4
|
+
/** Match the landmark's accessible name: a string is an exact match, a RegExp is tested. */
|
|
5
|
+
readonly label?: string | RegExp;
|
|
6
|
+
}
|
|
7
|
+
/** Narrows which sidebar row a harness query matches. */
|
|
8
|
+
interface WrSidebarItemHarnessFilters extends BaseHarnessFilters {
|
|
9
|
+
/** Match the row's title: a string is an exact match, a RegExp is tested. */
|
|
10
|
+
readonly title?: string | RegExp;
|
|
11
|
+
/** Match only the current page (`true`) or only the other rows (`false`). */
|
|
12
|
+
readonly current?: boolean;
|
|
13
|
+
/** Match only disabled (`true`) or only enabled (`false`) rows. */
|
|
14
|
+
readonly disabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Narrows which sidebar group a harness query matches. */
|
|
17
|
+
interface WrSidebarGroupHarnessFilters extends BaseHarnessFilters {
|
|
18
|
+
/** Match the group's title: a string is an exact match, a RegExp is tested. */
|
|
19
|
+
readonly title?: string | RegExp;
|
|
20
|
+
/** Match only open (`true`) or only closed (`false`) groups, as the toggle announces it. */
|
|
21
|
+
readonly open?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Test harness for one row of a `<wr-sidebar>`: a page link, a disabled page,
|
|
25
|
+
* or the title row of a group.
|
|
26
|
+
*
|
|
27
|
+
* A row's accessible name is its title, badge and count joined by a hidden
|
|
28
|
+
* separator. Each reader here answers one piece without that separator, so
|
|
29
|
+
* `getTitle()` is `'Guides'` and never `'Guides,'`.
|
|
30
|
+
*
|
|
31
|
+
* @see https://ngwr.dev/guides/testing
|
|
32
|
+
*/
|
|
33
|
+
export declare class WrSidebarItemHarness extends ComponentHarness {
|
|
34
|
+
static hostSelector: string;
|
|
35
|
+
/** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
|
|
36
|
+
static with(options?: WrSidebarItemHarnessFilters): HarnessPredicate<WrSidebarItemHarness>;
|
|
37
|
+
/** The row's title, trimmed. */
|
|
38
|
+
getTitle(): Promise<string>;
|
|
39
|
+
/** The line under the title, or `null`. */
|
|
40
|
+
getSubtitle(): Promise<string | null>;
|
|
41
|
+
/** The word badge (`New`, `Soon`), or `null`. */
|
|
42
|
+
getBadge(): Promise<string | null>;
|
|
43
|
+
/** The count as drawn at the end of the row (`'12'`, `'99+'`), or `null`. */
|
|
44
|
+
getCount(): Promise<string | null>;
|
|
45
|
+
/** The nesting level, from 1, out of the row's `wr-sidebar__row--level-<n>` modifier. Level 3 and deeper read `3`. */
|
|
46
|
+
getLevel(): Promise<number>;
|
|
47
|
+
/** Whether this row is the current page, from `aria-current="page"`. */
|
|
48
|
+
isCurrent(): Promise<boolean>;
|
|
49
|
+
/** Whether the row is a disabled page: plain text, out of the tab order. */
|
|
50
|
+
isDisabled(): Promise<boolean>;
|
|
51
|
+
/** Whether the row is the title of a group. {@link WrSidebarGroupHarness} opens and closes it. */
|
|
52
|
+
isGroup(): Promise<boolean>;
|
|
53
|
+
/**
|
|
54
|
+
* Click the row: a link navigates, and a group with no page of its own
|
|
55
|
+
* toggles. Throws for a disabled page, which is text and does nothing.
|
|
56
|
+
*/
|
|
57
|
+
click(): Promise<void>;
|
|
58
|
+
/** Move keyboard focus to the row. */
|
|
59
|
+
focus(): Promise<void>;
|
|
60
|
+
/** Whether the row holds focus. */
|
|
61
|
+
isFocused(): Promise<boolean>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Test harness for one group of a `<wr-sidebar>`: a title row, and the rows it
|
|
65
|
+
* opens.
|
|
66
|
+
*
|
|
67
|
+
* A group comes in two shapes and the harness covers both. Without a page of
|
|
68
|
+
* its own the whole title row is the toggle. With one, the title is a link and
|
|
69
|
+
* the arrow beside it is a separate button: {@link isLink} tells them apart,
|
|
70
|
+
* and {@link toggle} presses whichever element carries `aria-expanded`.
|
|
71
|
+
*
|
|
72
|
+
* Open and closed are read from that attribute. The rows of a closed group
|
|
73
|
+
* stay in the DOM, so {@link isContentHidden} is how a spec checks they are out
|
|
74
|
+
* of reach of the keyboard.
|
|
75
|
+
*
|
|
76
|
+
* @see https://ngwr.dev/guides/testing
|
|
77
|
+
*/
|
|
78
|
+
export declare class WrSidebarGroupHarness extends ComponentHarness {
|
|
79
|
+
static hostSelector: string;
|
|
80
|
+
/** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
|
|
81
|
+
static with(options?: WrSidebarGroupHarnessFilters): HarnessPredicate<WrSidebarGroupHarness>;
|
|
82
|
+
private readonly row;
|
|
83
|
+
private readonly toggleElement;
|
|
84
|
+
private readonly body;
|
|
85
|
+
/** The group's title, trimmed. */
|
|
86
|
+
getTitle(): Promise<string>;
|
|
87
|
+
/** The group's title row, for its subtitle, badge, count and current state. */
|
|
88
|
+
getRow(): Promise<WrSidebarItemHarness>;
|
|
89
|
+
/** Whether the group is open, from its toggle's `aria-expanded`. */
|
|
90
|
+
isOpen(): Promise<boolean>;
|
|
91
|
+
/** Whether the group is a page as well: its title is a link, and the arrow is a button of its own. */
|
|
92
|
+
isLink(): Promise<boolean>;
|
|
93
|
+
/** The toggle's own accessible name: only a split group's arrow has one, the rest are named by their row. */
|
|
94
|
+
getToggleLabel(): Promise<string | null>;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the group is closed around the current page, from the
|
|
97
|
+
* `wr-sidebar__row--holds-active` modifier that draws its dot.
|
|
98
|
+
*/
|
|
99
|
+
holdsCurrent(): Promise<boolean>;
|
|
100
|
+
/** Whether the group's rows are out of reach of the keyboard, from `inert` on its body. */
|
|
101
|
+
isContentHidden(): Promise<boolean>;
|
|
102
|
+
/**
|
|
103
|
+
* The rows under this group, in order, nested groups' rows included.
|
|
104
|
+
* Answered whether the group is open or not: ask {@link isOpen} first when
|
|
105
|
+
* the question is what a user can reach.
|
|
106
|
+
*/
|
|
107
|
+
getItems(filters?: WrSidebarItemHarnessFilters): Promise<WrSidebarItemHarness[]>;
|
|
108
|
+
/** The titles of the rows under this group, in order. */
|
|
109
|
+
getItemTitles(): Promise<string[]>;
|
|
110
|
+
/** Press the toggle. */
|
|
111
|
+
toggle(): Promise<void>;
|
|
112
|
+
/** Open the group. An already-open one is left alone. */
|
|
113
|
+
open(): Promise<void>;
|
|
114
|
+
/** Close the group. An already-closed one is left alone. */
|
|
115
|
+
close(): Promise<void>;
|
|
116
|
+
/** The body's own id, which the toggle's `aria-controls` names. */
|
|
117
|
+
private bodySelector;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Test harness for `<wr-sidebar>`, the navigation drawn from data.
|
|
121
|
+
*
|
|
122
|
+
* The sidebar has no collapsed state of its own: its groups open and close,
|
|
123
|
+
* each through a {@link WrSidebarGroupHarness}. A closed group keeps its rows
|
|
124
|
+
* in the DOM so its height can animate, which means a plain query finds links
|
|
125
|
+
* nobody can reach. {@link getItems} and {@link getGroups} answer with what is
|
|
126
|
+
* reachable, the rows outside every closed group, and `clickItem()` on a row
|
|
127
|
+
* inside one fails and names the rows that are there.
|
|
128
|
+
*
|
|
129
|
+
* The current page is asked for separately, across every row, because a
|
|
130
|
+
* collapsed group can hold it: see {@link getCurrentTitles}.
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* ```ts
|
|
134
|
+
* const nav = await loader.getHarness(WrSidebarHarness);
|
|
135
|
+
*
|
|
136
|
+
* await nav.openGroup('Settings');
|
|
137
|
+
* await nav.clickItem('Billing');
|
|
138
|
+
* expect(await nav.getCurrentTitles()).toEqual(['Billing']);
|
|
139
|
+
* ```
|
|
140
|
+
*
|
|
141
|
+
* @see https://ngwr.dev/guides/testing
|
|
142
|
+
*/
|
|
143
|
+
export declare class WrSidebarHarness extends ComponentHarness {
|
|
144
|
+
static hostSelector: string;
|
|
145
|
+
/** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
|
|
146
|
+
static with(options?: WrSidebarHarnessFilters): HarnessPredicate<WrSidebarHarness>;
|
|
147
|
+
/** The accessible name of the navigation landmark. */
|
|
148
|
+
getLabel(): Promise<string | null>;
|
|
149
|
+
/** The reachable rows, in order: pages, disabled pages and group titles, outside every closed group. */
|
|
150
|
+
getItems(filters?: WrSidebarItemHarnessFilters): Promise<WrSidebarItemHarness[]>;
|
|
151
|
+
/** The titles of the reachable rows, in order. */
|
|
152
|
+
getItemTitles(): Promise<string[]>;
|
|
153
|
+
/** The first reachable row with this title, or a failure naming the rows that are reachable. */
|
|
154
|
+
getItem(title: string | RegExp): Promise<WrSidebarItemHarness>;
|
|
155
|
+
/** The reachable groups, in order. */
|
|
156
|
+
getGroups(filters?: WrSidebarGroupHarnessFilters): Promise<WrSidebarGroupHarness[]>;
|
|
157
|
+
/** The first reachable group with this title, or a failure naming the groups that are reachable. */
|
|
158
|
+
getGroup(title: string | RegExp): Promise<WrSidebarGroupHarness>;
|
|
159
|
+
/**
|
|
160
|
+
* The title of every row marked `aria-current="page"`, in order, whether it
|
|
161
|
+
* is reachable or inside a closed group.
|
|
162
|
+
*
|
|
163
|
+
* A list, because the default match is a path prefix: an entry at `['/']`
|
|
164
|
+
* is current on every route unless it asks for an exact match.
|
|
165
|
+
*/
|
|
166
|
+
getCurrentTitles(): Promise<string[]>;
|
|
167
|
+
/** Click the first reachable row with this title. Throws when it is out of reach, or disabled. */
|
|
168
|
+
clickItem(title: string | RegExp): Promise<void>;
|
|
169
|
+
/** Whether the first reachable group with this title is open. */
|
|
170
|
+
isGroupOpen(title: string | RegExp): Promise<boolean>;
|
|
171
|
+
/** Open the first reachable group with this title. */
|
|
172
|
+
openGroup(title: string | RegExp): Promise<void>;
|
|
173
|
+
/** Close the first reachable group with this title. */
|
|
174
|
+
closeGroup(title: string | RegExp): Promise<void>;
|
|
175
|
+
}
|
|
176
|
+
export type { WrSidebarGroupHarnessFilters, WrSidebarHarnessFilters, WrSidebarItemHarnessFilters };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
|
|
2
|
-
import { WrSliderMark, WrSliderValue } from "ngwr/slider";
|
|
2
|
+
import { WrSliderMark, WrSliderSize, WrSliderValue } from "ngwr/slider";
|
|
3
3
|
/** Which end of a range slider a thumb is — the `--low` / `--high` modifier it carries. */
|
|
4
4
|
type WrSliderThumbPosition = 'low' | 'high';
|
|
5
5
|
/** Narrows which `<wr-slider>` a harness query matches. */
|
|
@@ -221,6 +221,8 @@ export declare class WrSliderHarness extends ComponentHarness {
|
|
|
221
221
|
static with(options?: WrSliderHarnessFilters): HarnessPredicate<WrSliderHarness>;
|
|
222
222
|
/** Whether the slider has two thumbs and answers with a `[low, high]` tuple. */
|
|
223
223
|
isRange(): Promise<boolean>;
|
|
224
|
+
/** The control size. `'md'` is the default and paints no modifier of its own. */
|
|
225
|
+
getSize(): Promise<WrSliderSize>;
|
|
224
226
|
/**
|
|
225
227
|
* Whether the slider refuses interaction.
|
|
226
228
|
*
|
package/types/ngwr-slider.d.ts
CHANGED
|
@@ -14,6 +14,14 @@ interface WrSliderMark {
|
|
|
14
14
|
/** Text under the mark, and the thumb's `aria-valuetext` while it stands on it. */
|
|
15
15
|
readonly label?: string;
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* @license
|
|
19
|
+
*
|
|
20
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
21
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
22
|
+
*/
|
|
23
|
+
/** Size of a `<wr-slider>`. */
|
|
24
|
+
type WrSliderSize = 'sm' | 'md' | 'lg';
|
|
17
25
|
/**
|
|
18
26
|
* @license
|
|
19
27
|
*
|
|
@@ -139,6 +147,13 @@ export declare class WrSlider implements FormValueControl<WrSliderValue> {
|
|
|
139
147
|
* @default 'horizontal'
|
|
140
148
|
*/
|
|
141
149
|
readonly orientation: import("@angular/core").InputSignal<"horizontal" | "vertical">;
|
|
150
|
+
/**
|
|
151
|
+
* Control size: the track's thickness, the thumb, the marks and both kinds
|
|
152
|
+
* of label text.
|
|
153
|
+
*
|
|
154
|
+
* @default 'md'
|
|
155
|
+
*/
|
|
156
|
+
readonly size: import("@angular/core").InputSignal<WrSliderSize>;
|
|
142
157
|
/**
|
|
143
158
|
* Accessible name of the thumb — the single one, or the LOWER one in range
|
|
144
159
|
* mode. Falls back to `slider.label` / `slider.lower`.
|
|
@@ -392,6 +407,11 @@ export declare class WrSlider implements FormValueControl<WrSliderValue> {
|
|
|
392
407
|
"required": false;
|
|
393
408
|
"isSignal": true;
|
|
394
409
|
};
|
|
410
|
+
"size": {
|
|
411
|
+
"alias": "size";
|
|
412
|
+
"required": false;
|
|
413
|
+
"isSignal": true;
|
|
414
|
+
};
|
|
395
415
|
"ariaLabel": {
|
|
396
416
|
"alias": "ariaLabel";
|
|
397
417
|
"required": false;
|
|
@@ -412,4 +432,4 @@ export declare class WrSlider implements FormValueControl<WrSliderValue> {
|
|
|
412
432
|
"touch": "touch";
|
|
413
433
|
}, never, never, true, never>;
|
|
414
434
|
}
|
|
415
|
-
export type { WrSliderMark, WrSliderValue };
|
|
435
|
+
export type { WrSliderMark, WrSliderSize, WrSliderValue };
|
|
@@ -34,6 +34,8 @@ interface WrSortableListContext {
|
|
|
34
34
|
* the slot it had left.
|
|
35
35
|
*/
|
|
36
36
|
readonly items: Signal<readonly unknown[]>;
|
|
37
|
+
/** A row's pointer drag was cancelled with Escape; the drop that follows changes nothing. */
|
|
38
|
+
cancelDrag(drag: object): void;
|
|
37
39
|
/** Register a row on construction, in projection order. */
|
|
38
40
|
register(item: {
|
|
39
41
|
readonly host: ElementRef<HTMLElement>;
|
|
@@ -231,6 +233,10 @@ export declare class WrSortableList<T = unknown> implements WrSortableListContex
|
|
|
231
233
|
/** True while a keyboard move is handing focus back — see `onRowFocusout`. */
|
|
232
234
|
private restoringFocus;
|
|
233
235
|
constructor();
|
|
236
|
+
/** Rows whose pointer drag Escape cancelled; the drop that follows is ignored. */
|
|
237
|
+
private readonly cancelledDrags;
|
|
238
|
+
/** @internal A row's pointer drag was cancelled with Escape. */
|
|
239
|
+
cancelDrag(drag: object): void;
|
|
234
240
|
private onDrop;
|
|
235
241
|
/**
|
|
236
242
|
* The keyboard reorder path: pick up, move, drop — deliberately a two-step
|
package/types/ngwr-stepper.d.ts
CHANGED
|
@@ -106,20 +106,19 @@ export declare class WrStepper implements WrStepperContext {
|
|
|
106
106
|
readonly responsive: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
107
107
|
protected readonly steps: import("@angular/core").Signal<readonly WrStep[]>;
|
|
108
108
|
/**
|
|
109
|
-
* The "optional" badge sits
|
|
110
|
-
* is part of
|
|
111
|
-
*
|
|
112
|
-
* badge is one word shared by every step, and an app that wants other wording
|
|
113
|
-
* overrides `stepper.optional` once instead of on every `<wr-step>`.
|
|
109
|
+
* The word of the "optional" badge, which sits inside the header button's label
|
|
110
|
+
* and so is part of each optional step's accessible name. One input on the
|
|
111
|
+
* stepper covers every step. Falls back to `stepper.optional`, then `'optional'`.
|
|
114
112
|
*/
|
|
115
|
-
|
|
113
|
+
readonly optionalLabel: import("@angular/core").InputSignal<string | null>;
|
|
116
114
|
/**
|
|
117
|
-
* The
|
|
118
|
-
* the
|
|
119
|
-
*
|
|
120
|
-
* `optionalLabel` is.
|
|
115
|
+
* The word a completed step's header button carries after its label, visually
|
|
116
|
+
* hidden: the check mark that replaces the number is `aria-hidden`. Falls back
|
|
117
|
+
* to `stepper.completed`, then `'completed'`.
|
|
121
118
|
*/
|
|
122
|
-
|
|
119
|
+
readonly completedLabel: import("@angular/core").InputSignal<string | null>;
|
|
120
|
+
protected readonly resolvedOptionalLabel: import("@angular/core").Signal<string>;
|
|
121
|
+
protected readonly resolvedCompletedLabel: import("@angular/core").Signal<string>;
|
|
123
122
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
124
123
|
constructor();
|
|
125
124
|
/** Is the step at `index` considered completed? */
|
|
@@ -152,6 +151,16 @@ export declare class WrStepper implements WrStepperContext {
|
|
|
152
151
|
"required": false;
|
|
153
152
|
"isSignal": true;
|
|
154
153
|
};
|
|
154
|
+
"optionalLabel": {
|
|
155
|
+
"alias": "optionalLabel";
|
|
156
|
+
"required": false;
|
|
157
|
+
"isSignal": true;
|
|
158
|
+
};
|
|
159
|
+
"completedLabel": {
|
|
160
|
+
"alias": "completedLabel";
|
|
161
|
+
"required": false;
|
|
162
|
+
"isSignal": true;
|
|
163
|
+
};
|
|
155
164
|
}, {
|
|
156
165
|
"active": "activeChange";
|
|
157
166
|
}, ["steps"], ["*"], true, never>;
|