ngwr 15.0.1 → 15.2.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/anchor/styles/_index.scss +13 -2
- package/bits/aurora/styles/_rules.scss +11 -0
- package/bits/dot-grid/dot-grid.scss +1 -0
- package/bits/dot-grid/styles/_index.scss +8 -0
- package/bits/dot-grid/styles/_rules.scss +54 -0
- package/bits/iridescence/iridescence.scss +1 -0
- package/bits/iridescence/styles/_index.scss +8 -0
- package/bits/iridescence/styles/_rules.scss +72 -0
- package/bits/marquee/styles/_rules.scss +7 -3
- package/bits/ripple-grid/ripple-grid.scss +1 -0
- package/bits/ripple-grid/styles/_index.scss +8 -0
- package/bits/ripple-grid/styles/_rules.scss +63 -0
- package/bits/spotlight-card/styles/_rules.scss +7 -4
- package/bits/star-border/styles/_rules.scss +5 -2
- package/bits/threads/styles/_index.scss +8 -0
- package/bits/threads/styles/_rules.scss +76 -0
- package/bits/threads/threads.scss +1 -0
- package/bits/waves/styles/_rules.scss +8 -1
- package/charts/bar-chart/styles/_index.scss +607 -7
- package/charts/boxplot-chart/styles/_index.scss +297 -0
- package/charts/bullet-chart/styles/_index.scss +268 -0
- package/charts/calendar-heatmap/styles/_index.scss +25 -3
- package/charts/candlestick-chart/styles/_index.scss +307 -0
- package/charts/chart-legend/styles/_index.scss +143 -0
- package/charts/core/styles/_index.scss +30 -0
- package/charts/donut-chart/styles/_index.scss +39 -3
- package/charts/funnel-chart/styles/_index.scss +237 -0
- package/charts/gauge/styles/_index.scss +4 -2
- package/charts/heatmap-chart/styles/_index.scss +329 -0
- package/charts/line-chart/styles/_index.scss +141 -8
- package/charts/meter-group/styles/_index.scss +44 -13
- package/charts/radar-chart/styles/_index.scss +206 -0
- package/charts/scatter-chart/styles/_index.scss +245 -0
- package/charts/sparkline/styles/_index.scss +10 -1
- package/charts/treemap-chart/styles/_index.scss +215 -0
- package/charts/waterfall-chart/styles/_index.scss +321 -0
- package/collapse/styles/_index.scss +6 -1
- package/fesm2022/ngwr-affix.mjs +3 -3
- package/fesm2022/ngwr-alert.mjs +3 -3
- package/fesm2022/ngwr-anchor.mjs +3 -3
- package/fesm2022/ngwr-avatar.mjs +3 -3
- package/fesm2022/ngwr-back-top.mjs +3 -3
- package/fesm2022/ngwr-badge.mjs +6 -6
- package/fesm2022/ngwr-bits-aurora.mjs +30 -38
- package/fesm2022/ngwr-bits-aurora.mjs.map +1 -1
- package/fesm2022/ngwr-bits-blur-text.mjs +3 -3
- package/fesm2022/ngwr-bits-border-glow-testing.mjs.map +1 -1
- package/fesm2022/ngwr-bits-border-glow.mjs +11 -5
- package/fesm2022/ngwr-bits-border-glow.mjs.map +1 -1
- package/fesm2022/ngwr-bits-circular-text.mjs +3 -3
- package/fesm2022/ngwr-bits-click-spark.mjs +3 -3
- package/fesm2022/ngwr-bits-confetti.mjs +3 -3
- package/fesm2022/ngwr-bits-decrypt-text.mjs +3 -3
- package/fesm2022/ngwr-bits-dot-grid-testing.mjs +40 -0
- package/fesm2022/ngwr-bits-dot-grid-testing.mjs.map +1 -0
- package/fesm2022/ngwr-bits-dot-grid.mjs +482 -0
- package/fesm2022/ngwr-bits-dot-grid.mjs.map +1 -0
- package/fesm2022/ngwr-bits-falling-text.mjs +3 -3
- package/fesm2022/ngwr-bits-fuzzy-text.mjs +3 -3
- package/fesm2022/ngwr-bits-glitch-text.mjs +3 -3
- package/fesm2022/ngwr-bits-gradient-text.mjs +3 -3
- package/fesm2022/ngwr-bits-iridescence-testing.mjs +31 -0
- package/fesm2022/ngwr-bits-iridescence-testing.mjs.map +1 -0
- package/fesm2022/ngwr-bits-iridescence.mjs +591 -0
- package/fesm2022/ngwr-bits-iridescence.mjs.map +1 -0
- package/fesm2022/ngwr-bits-marquee-testing.mjs +1 -1
- package/fesm2022/ngwr-bits-marquee-testing.mjs.map +1 -1
- package/fesm2022/ngwr-bits-marquee.mjs +7 -7
- package/fesm2022/ngwr-bits-marquee.mjs.map +1 -1
- package/fesm2022/ngwr-bits-ripple-grid-testing.mjs +40 -0
- package/fesm2022/ngwr-bits-ripple-grid-testing.mjs.map +1 -0
- package/fesm2022/ngwr-bits-ripple-grid.mjs +805 -0
- package/fesm2022/ngwr-bits-ripple-grid.mjs.map +1 -0
- package/fesm2022/ngwr-bits-rotating-text.mjs +3 -3
- package/fesm2022/ngwr-bits-shiny-text.mjs +6 -6
- package/fesm2022/ngwr-bits-splash-cursor.mjs +3 -3
- package/fesm2022/ngwr-bits-split-text.mjs +3 -3
- package/fesm2022/ngwr-bits-spotlight-card-testing.mjs +1 -1
- package/fesm2022/ngwr-bits-spotlight-card-testing.mjs.map +1 -1
- package/fesm2022/ngwr-bits-spotlight-card.mjs +10 -10
- package/fesm2022/ngwr-bits-spotlight-card.mjs.map +1 -1
- package/fesm2022/ngwr-bits-star-border-testing.mjs +1 -1
- package/fesm2022/ngwr-bits-star-border-testing.mjs.map +1 -1
- package/fesm2022/ngwr-bits-star-border.mjs +7 -7
- package/fesm2022/ngwr-bits-star-border.mjs.map +1 -1
- package/fesm2022/ngwr-bits-threads-testing.mjs +41 -0
- package/fesm2022/ngwr-bits-threads-testing.mjs.map +1 -0
- package/fesm2022/ngwr-bits-threads.mjs +482 -0
- package/fesm2022/ngwr-bits-threads.mjs.map +1 -0
- package/fesm2022/ngwr-bits-tilt-card.mjs +6 -6
- package/fesm2022/ngwr-bits-typewriter.mjs +3 -3
- package/fesm2022/ngwr-bits-waves-testing.mjs.map +1 -1
- package/fesm2022/ngwr-bits-waves.mjs +60 -41
- package/fesm2022/ngwr-bits-waves.mjs.map +1 -1
- package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger.mjs +3 -3
- package/fesm2022/ngwr-button.mjs +6 -6
- 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-testing.mjs +127 -3
- package/fesm2022/ngwr-charts-bar-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +683 -49
- package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs +161 -0
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +517 -0
- package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -0
- package/fesm2022/ngwr-charts-bullet-chart-testing.mjs +68 -0
- package/fesm2022/ngwr-charts-bullet-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-bullet-chart.mjs +459 -0
- package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -0
- package/fesm2022/ngwr-charts-calendar-heatmap-testing.mjs +27 -0
- package/fesm2022/ngwr-charts-calendar-heatmap-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +96 -17
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs +107 -0
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +508 -0
- package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -0
- package/fesm2022/ngwr-charts-chart-legend-testing.mjs +126 -0
- package/fesm2022/ngwr-charts-chart-legend-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-chart-legend.mjs +251 -0
- package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -0
- package/fesm2022/ngwr-charts-core.mjs +383 -0
- package/fesm2022/ngwr-charts-core.mjs.map +1 -0
- package/fesm2022/ngwr-charts-donut-chart-testing.mjs +10 -1
- package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart.mjs +187 -31
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs +100 -0
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-funnel-chart.mjs +415 -0
- package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -0
- package/fesm2022/ngwr-charts-gauge-testing.mjs +9 -3
- package/fesm2022/ngwr-charts-gauge-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge.mjs +9 -15
- package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
- package/fesm2022/ngwr-charts-heatmap-chart-testing.mjs +120 -0
- package/fesm2022/ngwr-charts-heatmap-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +519 -0
- package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -0
- package/fesm2022/ngwr-charts-line-chart-testing.mjs +43 -1
- package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart.mjs +436 -122
- package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group-testing.mjs +14 -2
- package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +101 -32
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs +98 -0
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-radar-chart.mjs +720 -0
- package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -0
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs +132 -0
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-scatter-chart.mjs +545 -0
- package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -0
- package/fesm2022/ngwr-charts-sparkline-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-sparkline.mjs +14 -16
- package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
- package/fesm2022/ngwr-charts-treemap-chart-testing.mjs +103 -0
- package/fesm2022/ngwr-charts-treemap-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-treemap-chart.mjs +535 -0
- package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -0
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs +131 -0
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +462 -0
- package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -0
- 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-compare.mjs +3 -3
- package/fesm2022/ngwr-context-menu.mjs +12 -12
- package/fesm2022/ngwr-cookie.mjs +3 -3
- package/fesm2022/ngwr-counter.mjs +6 -6
- package/fesm2022/ngwr-date-picker.mjs +21 -21
- package/fesm2022/ngwr-date.mjs +6 -6
- package/fesm2022/ngwr-density.mjs +6 -6
- package/fesm2022/ngwr-descriptions.mjs +6 -6
- package/fesm2022/ngwr-dialog.mjs +15 -15
- package/fesm2022/ngwr-directives.mjs +12 -12
- package/fesm2022/ngwr-divider.mjs +3 -3
- package/fesm2022/ngwr-drawer.mjs +18 -18
- package/fesm2022/ngwr-dropdown.mjs +9 -9
- package/fesm2022/ngwr-editor.mjs +3 -3
- package/fesm2022/ngwr-empty.mjs +3 -3
- package/fesm2022/ngwr-event-calendar.mjs +6 -6
- package/fesm2022/ngwr-file-upload.mjs +3 -3
- package/fesm2022/ngwr-form.mjs +9 -9
- package/fesm2022/ngwr-graph.mjs +6 -6
- package/fesm2022/ngwr-hotkey.mjs +6 -6
- package/fesm2022/ngwr-i18n-ar.mjs +90 -4
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +90 -4
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +90 -4
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +90 -4
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +90 -4
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +90 -4
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +90 -4
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +90 -4
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +90 -4
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +90 -4
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +90 -4
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +90 -4
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +90 -4
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +90 -4
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +90 -4
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +90 -4
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +90 -4
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +90 -4
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +90 -4
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +90 -4
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +90 -4
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +90 -4
- 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.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 +5 -5
- 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-loading-bar.mjs +6 -6
- package/fesm2022/ngwr-mention.mjs +6 -6
- package/fesm2022/ngwr-meta.mjs +6 -6
- package/fesm2022/ngwr-overlay.mjs +6 -6
- package/fesm2022/ngwr-page-header.mjs +3 -3
- package/fesm2022/ngwr-pagination.mjs +3 -3
- package/fesm2022/ngwr-pipes.mjs +21 -21
- package/fesm2022/ngwr-platform.mjs +6 -6
- package/fesm2022/ngwr-popconfirm.mjs +6 -6
- package/fesm2022/ngwr-popover.mjs +43 -20
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +3 -3
- package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
- package/fesm2022/ngwr-qr.mjs +4 -3
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-radio.mjs +6 -6
- package/fesm2022/ngwr-rating.mjs +3 -3
- package/fesm2022/ngwr-result.mjs +12 -12
- package/fesm2022/ngwr-schema-form.mjs +3 -3
- package/fesm2022/ngwr-scroll.mjs +3 -3
- package/fesm2022/ngwr-segmented.mjs +3 -3
- package/fesm2022/ngwr-select.mjs +12 -12
- package/fesm2022/ngwr-sidebar.mjs +3 -3
- 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.mjs +18 -18
- package/fesm2022/ngwr-tabs-router.mjs +3 -3
- package/fesm2022/ngwr-tabs.mjs +6 -6
- 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-testing.mjs +2 -1
- package/fesm2022/ngwr-toast-testing.mjs.map +1 -1
- package/fesm2022/ngwr-toast.mjs +34 -15
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +3 -3
- package/fesm2022/ngwr-tour.mjs +6 -6
- package/fesm2022/ngwr-transfer.mjs +3 -3
- package/fesm2022/ngwr-tree.mjs +3 -3
- package/fesm2022/ngwr-typography.mjs +3 -3
- package/fesm2022/ngwr-utils.mjs +31 -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-testing.mjs +61 -5
- package/fesm2022/ngwr-window-testing.mjs.map +1 -1
- package/fesm2022/ngwr-window.mjs +1538 -895
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/fesm2022/ngwr.mjs.map +1 -1
- package/i18n/ar.json +84 -4
- package/i18n/cs.json +84 -4
- package/i18n/de.json +84 -4
- package/i18n/en.json +84 -4
- package/i18n/es.json +84 -4
- package/i18n/fr.json +84 -4
- package/i18n/he.json +84 -4
- package/i18n/hi.json +84 -4
- package/i18n/id.json +84 -4
- package/i18n/it.json +84 -4
- package/i18n/ja.json +84 -4
- package/i18n/ko.json +84 -4
- package/i18n/nl.json +84 -4
- package/i18n/pl.json +84 -4
- package/i18n/pt.json +84 -4
- package/i18n/ru.json +84 -4
- package/i18n/sv.json +84 -4
- package/i18n/tr.json +84 -4
- package/i18n/uk.json +84 -4
- package/i18n/vi.json +84 -4
- package/i18n/zh-TW.json +84 -4
- package/i18n/zh.json +84 -4
- package/llms-full.txt +266 -9
- package/llms.txt +30 -7
- package/mcp/api.js +69 -1
- package/mcp/catalog.js +10 -1
- package/mcp/server.js +15 -1
- package/mcp/tools.js +122 -26
- package/package.json +132 -1
- package/popover/styles/_index.scss +75 -7
- package/schematics/component-style/index.js +3 -0
- package/schematics/migrations/v15/index.js +3 -26
- package/schematics/ng-add/index.js +2 -2
- package/schematics/use/symbol-map.json +14 -0
- package/schematics/utility/global-styles.js +19 -4
- package/schematics/utility/v15-moves.js +55 -0
- package/skills/ngwr/SKILL.md +8 -2
- package/skills/ngwr/references/catalog.md +28 -0
- package/skills/ngwr/references/setup.md +5 -4
- package/theme/styles/_focus.scss +8 -0
- package/toast/styles/_index.scss +103 -12
- package/types/ngwr-bits-aurora.d.ts +11 -0
- package/types/ngwr-bits-border-glow-testing.d.ts +5 -6
- package/types/ngwr-bits-border-glow.d.ts +5 -1
- package/types/ngwr-bits-dot-grid-testing.d.ts +92 -0
- package/types/ngwr-bits-dot-grid.d.ts +158 -0
- package/types/ngwr-bits-iridescence-testing.d.ts +85 -0
- package/types/ngwr-bits-iridescence.d.ts +244 -0
- package/types/ngwr-bits-ripple-grid-testing.d.ts +96 -0
- package/types/ngwr-bits-ripple-grid.d.ts +294 -0
- package/types/ngwr-bits-splash-cursor.d.ts +0 -1
- package/types/ngwr-bits-spotlight-card-testing.d.ts +3 -1
- package/types/ngwr-bits-star-border-testing.d.ts +7 -7
- package/types/ngwr-bits-threads-testing.d.ts +97 -0
- package/types/ngwr-bits-threads.d.ts +216 -0
- package/types/ngwr-bits-waves-testing.d.ts +1 -1
- package/types/ngwr-bits-waves.d.ts +20 -3
- package/types/ngwr-charts-bar-chart-testing.d.ts +193 -14
- package/types/ngwr-charts-bar-chart.d.ts +546 -38
- package/types/ngwr-charts-boxplot-chart-testing.d.ts +165 -0
- package/types/ngwr-charts-boxplot-chart.d.ts +308 -0
- package/types/ngwr-charts-bullet-chart-testing.d.ts +99 -0
- package/types/ngwr-charts-bullet-chart.d.ts +262 -0
- package/types/ngwr-charts-calendar-heatmap-testing.d.ts +32 -1
- package/types/ngwr-charts-calendar-heatmap.d.ts +55 -6
- package/types/ngwr-charts-candlestick-chart-testing.d.ts +135 -0
- package/types/ngwr-charts-candlestick-chart.d.ts +361 -0
- package/types/ngwr-charts-chart-legend-testing.d.ts +84 -0
- package/types/ngwr-charts-chart-legend.d.ts +178 -0
- package/types/ngwr-charts-core.d.ts +391 -0
- package/types/ngwr-charts-donut-chart-testing.d.ts +28 -5
- package/types/ngwr-charts-donut-chart.d.ts +124 -12
- package/types/ngwr-charts-funnel-chart-testing.d.ts +130 -0
- package/types/ngwr-charts-funnel-chart.d.ts +296 -0
- package/types/ngwr-charts-gauge-testing.d.ts +5 -0
- package/types/ngwr-charts-gauge.d.ts +6 -4
- package/types/ngwr-charts-heatmap-chart-testing.d.ts +148 -0
- package/types/ngwr-charts-heatmap-chart.d.ts +359 -0
- package/types/ngwr-charts-line-chart-testing.d.ts +72 -11
- package/types/ngwr-charts-line-chart.d.ts +291 -67
- package/types/ngwr-charts-meter-group-testing.d.ts +16 -2
- package/types/ngwr-charts-meter-group.d.ts +71 -11
- package/types/ngwr-charts-radar-chart-testing.d.ts +162 -0
- package/types/ngwr-charts-radar-chart.d.ts +461 -0
- package/types/ngwr-charts-scatter-chart-testing.d.ts +147 -0
- package/types/ngwr-charts-scatter-chart.d.ts +396 -0
- package/types/ngwr-charts-sparkline-testing.d.ts +4 -1
- package/types/ngwr-charts-sparkline.d.ts +8 -6
- package/types/ngwr-charts-treemap-chart-testing.d.ts +131 -0
- package/types/ngwr-charts-treemap-chart.d.ts +295 -0
- package/types/ngwr-charts-waterfall-chart-testing.d.ts +149 -0
- package/types/ngwr-charts-waterfall-chart.d.ts +338 -0
- package/types/ngwr-color-picker.d.ts +0 -21
- package/types/ngwr-dropdown.d.ts +0 -52
- package/types/ngwr-editor.d.ts +2 -84
- package/types/ngwr-i18n.d.ts +0 -15
- package/types/ngwr-mention.d.ts +0 -13
- package/types/ngwr-popconfirm.d.ts +0 -33
- package/types/ngwr-popover.d.ts +29 -53
- package/types/ngwr-toast-testing.d.ts +6 -1
- package/types/ngwr-tour.d.ts +0 -2
- package/types/ngwr-utils.d.ts +49 -7
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window-testing.d.ts +65 -7
- package/types/ngwr-window.d.ts +831 -207
- package/types/ngwr.d.ts +1 -0
- package/window/styles/_index.scss +528 -82
|
@@ -26,10 +26,10 @@ interface WrStarBorderHarnessFilters extends BaseHarnessFilters {
|
|
|
26
26
|
*
|
|
27
27
|
* **The inline values are read off the `style` attribute rather than through
|
|
28
28
|
* `getCssValue()`, and that is not a jsdom concession.** The stylesheet declares its own
|
|
29
|
-
* `--wr-star-border-
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* value nothing else can forge.
|
|
29
|
+
* `--wr-star-border-speed` on `.wr-star-border`, so in a real browser a computed read
|
|
30
|
+
* answers with the stylesheet's default at exactly the moment the host binding is the
|
|
31
|
+
* thing that broke. The colour goes on `--wr-star-border-input-color`, a variable of the
|
|
32
|
+
* component's own. What the component wrote is the only value nothing else can forge.
|
|
33
33
|
*
|
|
34
34
|
* On the attribute form the host's `[class]` binding MERGES with the classes the consumer
|
|
35
35
|
* already put there, so read the variants through {@link isHoverOnly} and
|
|
@@ -73,9 +73,9 @@ export declare class WrStarBorderHarness extends ComponentHarness {
|
|
|
73
73
|
* `null` when none was given.
|
|
74
74
|
*
|
|
75
75
|
* `null` is the common case and a real answer rather than a missing one: with no
|
|
76
|
-
* `[color]` the
|
|
77
|
-
* a component that started writing a colour of its
|
|
78
|
-
* choice away.
|
|
76
|
+
* `[color]` the `--wr-star-border-color` hook decides, by default primary on a light
|
|
77
|
+
* surface and white on a dark one, and a component that started writing a colour of its
|
|
78
|
+
* own there would silently take that choice away.
|
|
79
79
|
*/
|
|
80
80
|
getRayColor(): Promise<string | null>;
|
|
81
81
|
/**
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
|
|
2
|
+
/** Narrows which `<wr-threads>` a harness query matches. */
|
|
3
|
+
interface WrThreadsHarnessFilters extends BaseHarnessFilters {
|
|
4
|
+
/**
|
|
5
|
+
* Match only backgrounds whose canvas has drawn (`true`) or only those still showing
|
|
6
|
+
* the stand-in threads (`false`). A background has no name of its own, so this is the
|
|
7
|
+
* one state that tells two of them apart. With no 2D context — plain jsdom — every
|
|
8
|
+
* background is still `false`; see `WrThreadsHarness.isPainted` for when it turns
|
|
9
|
+
* `true`.
|
|
10
|
+
*/
|
|
11
|
+
readonly painted?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Test harness for `<wr-threads>` — thin lines flowing across a box like strands in a
|
|
15
|
+
* current.
|
|
16
|
+
*
|
|
17
|
+
* **The threads themselves are unreadable and always will be.** They are strokes on a
|
|
18
|
+
* 2D canvas, laid out from the host's measured box and redrawn every frame; a unit test
|
|
19
|
+
* has no box, and plain jsdom no drawing context, so there is nothing to count and
|
|
20
|
+
* nothing to compare. What the component publishes to the DOM is small, deliberate and worth
|
|
21
|
+
* pinning: the handover flag {@link isPainted}, the geometry the CSS stand-in draws at
|
|
22
|
+
* before the canvas takes over ({@link getLineCount}, {@link getLineWidthPx}), and the
|
|
23
|
+
* surface itself.
|
|
24
|
+
*
|
|
25
|
+
* Both geometry reads come from the host's inline declarations, never from a computed
|
|
26
|
+
* style: the stylesheet declares `--wr-threads-count` and `--wr-threads-line-width` too,
|
|
27
|
+
* as the stand-in's own fallbacks, so a computed read would answer `18` and `1px` on a
|
|
28
|
+
* component that had stopped publishing anything — precisely the break the methods
|
|
29
|
+
* exist to catch. And both report what the canvas DRAWS, which is not always what was
|
|
30
|
+
* bound: the count is rounded and held between 1 and 100, the width kept at 0.25px or
|
|
31
|
+
* more, so `[lineCount]="0"` reads back as `1`.
|
|
32
|
+
*
|
|
33
|
+
* There is no `getColor()`: the colour is a canvas `strokeStyle` resolved from a themed
|
|
34
|
+
* custom property that only a stylesheet can supply. No `getPoints()` or
|
|
35
|
+
* `getCanvasSize()`: both fall out of the host's layout box, which is 0×0 here. No
|
|
36
|
+
* `movePointer()`: the pointer listener is on `window`, installed only once a context
|
|
37
|
+
* exists, and what it moves is canvas strokes. And no `isReducedMotion()`, the sharpest
|
|
38
|
+
* of them — the reduced-motion path draws its one still frame through the same code and
|
|
39
|
+
* sets the same flag, so the DOM is identical either way and any answer would be a
|
|
40
|
+
* guess.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const threads = await loader.getHarness(WrThreadsHarness);
|
|
45
|
+
*
|
|
46
|
+
* expect(await threads.hasCanvas()).toBe(true);
|
|
47
|
+
* expect(await threads.isDecorative()).toBe(true);
|
|
48
|
+
* expect(await threads.getLineCount()).toBe(18);
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @see https://ngwr.dev/guides/testing
|
|
52
|
+
*/
|
|
53
|
+
export declare class WrThreadsHarness extends ComponentHarness {
|
|
54
|
+
static hostSelector: string;
|
|
55
|
+
/** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
|
|
56
|
+
static with(options?: WrThreadsHarnessFilters): HarnessPredicate<WrThreadsHarness>;
|
|
57
|
+
private readonly canvas;
|
|
58
|
+
/**
|
|
59
|
+
* Whether the canvas has drawn a frame and retired the CSS stand-in threads.
|
|
60
|
+
*
|
|
61
|
+
* **`false` for as long as the environment gives no 2D context, and that is correct.**
|
|
62
|
+
* Plain jsdom hands back none, so the component leaves the stand-in up rather than
|
|
63
|
+
* declare itself painted over a blank box — the flag is set inside the draw for that
|
|
64
|
+
* reason, not at the end of the boot. Where a context exists — a spec that stubs
|
|
65
|
+
* `getContext('2d')`, or jsdom with the `canvas` package installed — it turns `true`
|
|
66
|
+
* once the first frame is drawn: at once under reduced motion, on the first animation
|
|
67
|
+
* frame otherwise.
|
|
68
|
+
*/
|
|
69
|
+
isPainted(): Promise<boolean>;
|
|
70
|
+
/**
|
|
71
|
+
* How many threads the canvas draws, as the component publishes it for the stand-in.
|
|
72
|
+
*
|
|
73
|
+
* A stand-in drawing eighteen lines that the canvas then replaces with six changes
|
|
74
|
+
* the picture under the reader on hydration — a visible pop nothing else can catch.
|
|
75
|
+
*/
|
|
76
|
+
getLineCount(): Promise<number>;
|
|
77
|
+
/** The stroke width of each thread, in pixels, as the component publishes it for the stand-in. */
|
|
78
|
+
getLineWidthPx(): Promise<number>;
|
|
79
|
+
/**
|
|
80
|
+
* Whether the background is hidden from assistive tech.
|
|
81
|
+
*
|
|
82
|
+
* A background canvas has nothing to announce, so losing this leaves a screen reader
|
|
83
|
+
* stopping on a nameless graphic in front of the section's actual content.
|
|
84
|
+
*/
|
|
85
|
+
isDecorative(): Promise<boolean>;
|
|
86
|
+
/**
|
|
87
|
+
* Whether the drawing surface is in the markup.
|
|
88
|
+
*
|
|
89
|
+
* It is there in every state, including the ones where nothing is ever drawn on it —
|
|
90
|
+
* prerendered, no 2D context, reduced motion before its frame. That is the contract:
|
|
91
|
+
* the element goes up and the component stops, so the stand-in has something to sit
|
|
92
|
+
* behind and {@link isPainted} has something to answer about.
|
|
93
|
+
*/
|
|
94
|
+
hasCanvas(): Promise<boolean>;
|
|
95
|
+
private published;
|
|
96
|
+
}
|
|
97
|
+
export type { WrThreadsHarnessFilters };
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Threads background — thin lines flowing across the box like strands in a
|
|
4
|
+
* current. The bundle meanders as one, breathes wider and narrower along its
|
|
5
|
+
* length, and every strand ripples on its own phase, so neighbours cross and
|
|
6
|
+
* part. With `followPointer` the strands near the pointer bend gently toward
|
|
7
|
+
* it. Fills its nearest positioned ancestor: put it first in a
|
|
8
|
+
* `position: relative` box and give the content after it a position of its own.
|
|
9
|
+
*
|
|
10
|
+
* Decorative only: the canvas is `aria-hidden`, the host has no role and
|
|
11
|
+
* nothing in it takes focus or a click.
|
|
12
|
+
*
|
|
13
|
+
* Under `prefers-reduced-motion` one still frame is drawn and nothing follows —
|
|
14
|
+
* no current, no pointer listeners, no frame loop. The frame is drawn again when
|
|
15
|
+
* an input changes, the box resizes or the colour scheme switches, and the
|
|
16
|
+
* preference is read live, so switching it while the page is open takes effect
|
|
17
|
+
* at once.
|
|
18
|
+
*
|
|
19
|
+
* At `speed` 0 with `followPointer` off nothing can move either, so the same
|
|
20
|
+
* still frame is drawn — held where the current was — and no loop runs. At
|
|
21
|
+
* `speed` 0 with the pointer followed, the loop runs and draws only while the
|
|
22
|
+
* pointer is bending something.
|
|
23
|
+
*
|
|
24
|
+
* Off screen, or with no box to draw on, the loop stops asking for frames and resumes
|
|
25
|
+
* where it left off.
|
|
26
|
+
*
|
|
27
|
+
* The colour is theme-aware by default — `--wr-threads-color`, a soft wash of
|
|
28
|
+
* the primary intent — and `[color]` takes any CSS colour instead, a `var()`
|
|
29
|
+
* token or a `light-dark()` pair included. A canvas reads neither, so either is
|
|
30
|
+
* resolved through the cascade before it reaches a stroke.
|
|
31
|
+
*
|
|
32
|
+
* Until the canvas has drawn — the seconds before hydration on a prerendered
|
|
33
|
+
* page — the stylesheet paints the threads at rest as straight lines, at the
|
|
34
|
+
* same count, colour, width and spread, and `.wr-threads--painted` retires them.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```html
|
|
38
|
+
* <section style="position: relative; min-height: 20rem">
|
|
39
|
+
* <wr-threads />
|
|
40
|
+
* <h1 style="position: relative">Hero copy above the threads</h1>
|
|
41
|
+
* </section>
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @see https://ngwr.dev/bits/threads
|
|
45
|
+
*/
|
|
46
|
+
export declare class WrThreads {
|
|
47
|
+
/** How many threads, rounded and kept between 1 and 100. @default 18 */
|
|
48
|
+
readonly lineCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
49
|
+
/**
|
|
50
|
+
* Thread colour, any CSS colour — a `var()` token or a `light-dark()` pair
|
|
51
|
+
* included. Emptied, it follows the theme. @default 'var(--wr-threads-color)'
|
|
52
|
+
*/
|
|
53
|
+
readonly color: import("@angular/core").InputSignal<string>;
|
|
54
|
+
/** How far the bundle meanders up and down, in px. @default 40 */
|
|
55
|
+
readonly amplitude: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
56
|
+
/** Speed of the current; 0 holds it, a negative value reverses it. @default 1 */
|
|
57
|
+
readonly speed: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
58
|
+
/** Stroke width of each thread, in px. @default 1 */
|
|
59
|
+
readonly lineWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
60
|
+
/** Share of the box height the threads fan across at their widest, 0..1. @default 0.4 */
|
|
61
|
+
readonly spread: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
62
|
+
/** Whether the threads near the pointer bend toward it. @default true */
|
|
63
|
+
readonly followPointer: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
64
|
+
/** The thread count actually drawn. */
|
|
65
|
+
protected readonly count: import("@angular/core").Signal<number>;
|
|
66
|
+
/** The stroke width actually drawn. */
|
|
67
|
+
protected readonly strokeWidth: import("@angular/core").Signal<number>;
|
|
68
|
+
/** The band's share of the height. One thread has no band: it runs through the middle. */
|
|
69
|
+
protected readonly bandShare: import("@angular/core").Signal<number>;
|
|
70
|
+
/**
|
|
71
|
+
* A colour the author chose, published so the stand-in draws in it too; `null`
|
|
72
|
+
* while the input is the theme's. On a variable of its own rather than on the
|
|
73
|
+
* hook, which an author sets from outside: a `null` binding wipes a value of its
|
|
74
|
+
* own name from the host's `style` attribute.
|
|
75
|
+
*/
|
|
76
|
+
protected readonly customColor: import("@angular/core").Signal<string | null>;
|
|
77
|
+
/**
|
|
78
|
+
* Whether anything can change between two frames: never under
|
|
79
|
+
* `prefers-reduced-motion`, read live, and not at `speed` 0 with no pointer to
|
|
80
|
+
* follow. While it is `false` there is no loop, only a still frame.
|
|
81
|
+
*/
|
|
82
|
+
private readonly moving;
|
|
83
|
+
/**
|
|
84
|
+
* Flips once the canvas has drawn, which retires the CSS stand-in. Set inside
|
|
85
|
+
* the draw rather than at the end of the boot, so it can never switch the
|
|
86
|
+
* stand-in off over a canvas with nothing on it.
|
|
87
|
+
*/
|
|
88
|
+
protected readonly painted: import("@angular/core").WritableSignal<boolean>;
|
|
89
|
+
private readonly canvasRef;
|
|
90
|
+
private readonly host;
|
|
91
|
+
private readonly doc;
|
|
92
|
+
private readonly zone;
|
|
93
|
+
private readonly destroyRef;
|
|
94
|
+
private readonly platform;
|
|
95
|
+
private readonly isBrowser;
|
|
96
|
+
private ctx;
|
|
97
|
+
private bounds;
|
|
98
|
+
private rafId;
|
|
99
|
+
/** Seconds of current so far, already scaled by `speed`. Kept across a parked loop, so it resumes in place. */
|
|
100
|
+
private phase;
|
|
101
|
+
/** Eased pointer position in host px (`x`, `y`), where it is heading (`tx`, `ty`), and how hard it pulls, 0..1. */
|
|
102
|
+
private readonly pointer;
|
|
103
|
+
/**
|
|
104
|
+
* Per-sample buffers, reused frame to frame rather than allocated per thread:
|
|
105
|
+
* one thread's heights, and the three terms every thread shares at a sample —
|
|
106
|
+
* the bundle's meander, how wide the band is breathing, and the pointer's bell
|
|
107
|
+
* along `x` — computed once per frame instead of once per thread.
|
|
108
|
+
*/
|
|
109
|
+
private ys;
|
|
110
|
+
private meanders;
|
|
111
|
+
private breaths;
|
|
112
|
+
private alongs;
|
|
113
|
+
/**
|
|
114
|
+
* Whether the picture changed since the loop last drew it — an input, the
|
|
115
|
+
* colour scheme, a restart. The loop skips the frames that would only repeat
|
|
116
|
+
* the last one (a held current, no pull), and this is what makes it draw again.
|
|
117
|
+
*/
|
|
118
|
+
private dirty;
|
|
119
|
+
/** Flips once `boot()` has a context — everything that draws waits for it. */
|
|
120
|
+
private readonly booted;
|
|
121
|
+
/** Whether the host is in the viewport; stays `true` without an observer. */
|
|
122
|
+
private readonly onScreen;
|
|
123
|
+
/**
|
|
124
|
+
* Whether the box has an area. The intersection observer calls a zero-area host
|
|
125
|
+
* intersecting and sends no entry when it gains a size, so this reads the box instead.
|
|
126
|
+
*/
|
|
127
|
+
private readonly hasBox;
|
|
128
|
+
constructor();
|
|
129
|
+
private boot;
|
|
130
|
+
/** Start the current, and the pointer listeners when asked; returns what stops both. */
|
|
131
|
+
private animate;
|
|
132
|
+
/**
|
|
133
|
+
* Track the pointer against the host's box. On `window`, not the host: the
|
|
134
|
+
* content laid over the threads takes the events, and the host takes none.
|
|
135
|
+
* `pointerleave` on the root element covers the rest — the pointer leaving the
|
|
136
|
+
* page, and a finger lifting or a touch turning into a scroll, after which a
|
|
137
|
+
* touch pointer no longer exists.
|
|
138
|
+
*/
|
|
139
|
+
private listenToPointer;
|
|
140
|
+
private easePointer;
|
|
141
|
+
private releasePointer;
|
|
142
|
+
/**
|
|
143
|
+
* Size the bitmap and the drawing space from the LAYOUT box, never from
|
|
144
|
+
* `getBoundingClientRect()`, which is the box after every ancestor's
|
|
145
|
+
* transform. A `ResizeObserver` does not fire when only a transform changes,
|
|
146
|
+
* so a boot inside an opening `wr-dialog` — which enters from `scale(0.96)` —
|
|
147
|
+
* would otherwise keep a bitmap 4% too small, stretched soft, until the
|
|
148
|
+
* window next resized.
|
|
149
|
+
*/
|
|
150
|
+
private setSize;
|
|
151
|
+
/**
|
|
152
|
+
* The frame shown while nothing moves, with no pointer: under reduced motion
|
|
153
|
+
* the current at its start, and at `speed` 0 with nothing to follow, the
|
|
154
|
+
* current where it was held.
|
|
155
|
+
*/
|
|
156
|
+
private drawStill;
|
|
157
|
+
/** Bring the canvas up to date after the picture changed: a still frame now, or the loop's next one. */
|
|
158
|
+
private repaint;
|
|
159
|
+
/**
|
|
160
|
+
* One frame of the field at `time` seconds of current.
|
|
161
|
+
*
|
|
162
|
+
* Each thread's height at `x` is the sum of three things: a meander the whole
|
|
163
|
+
* bundle shares, the thread's place in the band — scaled by how wide the band
|
|
164
|
+
* is breathing at that `x` — and a ripple of the thread's own, whose phase is
|
|
165
|
+
* spaced by the golden angle and whose wavelength grows toward the edges, so
|
|
166
|
+
* neighbours drift in and out of step. Wavelengths are in px rather than in
|
|
167
|
+
* shares of the width, so a phone and a wide monitor show the same current.
|
|
168
|
+
* The pointer then pulls each height toward its own, weighted by a bell in
|
|
169
|
+
* both directions.
|
|
170
|
+
*/
|
|
171
|
+
private draw;
|
|
172
|
+
/**
|
|
173
|
+
* The input, or the theme's hook when it is emptied, resolved through the
|
|
174
|
+
* cascade: `strokeStyle` reads neither a custom property nor a `light-dark()`.
|
|
175
|
+
* Called on every draw, so a scheme switch lands on the next frame.
|
|
176
|
+
*/
|
|
177
|
+
private resolveColor;
|
|
178
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrThreads, never>;
|
|
179
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WrThreads, "wr-threads", never, {
|
|
180
|
+
"lineCount": {
|
|
181
|
+
"alias": "lineCount";
|
|
182
|
+
"required": false;
|
|
183
|
+
"isSignal": true;
|
|
184
|
+
};
|
|
185
|
+
"color": {
|
|
186
|
+
"alias": "color";
|
|
187
|
+
"required": false;
|
|
188
|
+
"isSignal": true;
|
|
189
|
+
};
|
|
190
|
+
"amplitude": {
|
|
191
|
+
"alias": "amplitude";
|
|
192
|
+
"required": false;
|
|
193
|
+
"isSignal": true;
|
|
194
|
+
};
|
|
195
|
+
"speed": {
|
|
196
|
+
"alias": "speed";
|
|
197
|
+
"required": false;
|
|
198
|
+
"isSignal": true;
|
|
199
|
+
};
|
|
200
|
+
"lineWidth": {
|
|
201
|
+
"alias": "lineWidth";
|
|
202
|
+
"required": false;
|
|
203
|
+
"isSignal": true;
|
|
204
|
+
};
|
|
205
|
+
"spread": {
|
|
206
|
+
"alias": "spread";
|
|
207
|
+
"required": false;
|
|
208
|
+
"isSignal": true;
|
|
209
|
+
};
|
|
210
|
+
"followPointer": {
|
|
211
|
+
"alias": "followPointer";
|
|
212
|
+
"required": false;
|
|
213
|
+
"isSignal": true;
|
|
214
|
+
};
|
|
215
|
+
}, {}, never, never, true, never>;
|
|
216
|
+
}
|
|
@@ -28,7 +28,7 @@ interface WrWavesHarnessFilters extends BaseHarnessFilters {
|
|
|
28
28
|
* precisely the break the method exists to catch.
|
|
29
29
|
*
|
|
30
30
|
* There is no `getLineCount()`, `getPoints()` or `getCanvasSize()`: the grid is seeded
|
|
31
|
-
* from
|
|
31
|
+
* from the host's layout box, which is 0×0 here, and the numbers that fall out of
|
|
32
32
|
* that describe nothing. No `getLineColor()` either — it is a canvas `strokeStyle`
|
|
33
33
|
* resolved from a themed custom property that only a stylesheet can supply. No
|
|
34
34
|
* `moveMouse()`: the pointer listeners are on `window` and are only installed once a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class WrWaves {
|
|
3
|
-
/** Line stroke colour, any CSS colour. When unset,
|
|
3
|
+
/** Line stroke colour, any CSS colour. When unset, empty or blank, `--wr-waves-line-color` decides. */
|
|
4
4
|
readonly lineColor: import("@angular/core").InputSignal<string | null>;
|
|
5
5
|
/** Background fill behind the lines. @default 'transparent' */
|
|
6
6
|
readonly backgroundColor: import("@angular/core").InputSignal<string>;
|
|
@@ -31,7 +31,10 @@ export declare class WrWaves {
|
|
|
31
31
|
private ctx;
|
|
32
32
|
private readonly noise;
|
|
33
33
|
private lines;
|
|
34
|
-
|
|
34
|
+
/** The host's layout box, in CSS pixels before any transform: what the grid is laid out in. */
|
|
35
|
+
private box;
|
|
36
|
+
/** Bitmap pixels per CSS pixel the canvas is backed at; 0 until the first fit. */
|
|
37
|
+
private ratio;
|
|
35
38
|
private readonly mouse;
|
|
36
39
|
private rafId;
|
|
37
40
|
/**
|
|
@@ -46,13 +49,27 @@ export declare class WrWaves {
|
|
|
46
49
|
protected readonly painted: import("@angular/core").WritableSignal<boolean>;
|
|
47
50
|
/** Flips once `boot()` has a context and a grid — the motion half waits for it. */
|
|
48
51
|
private readonly booted;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the box has an area. The intersection observer calls a zero-area host
|
|
54
|
+
* intersecting and sends no entry when it gains a size, so this reads the box instead.
|
|
55
|
+
*/
|
|
56
|
+
private readonly hasBox;
|
|
49
57
|
constructor();
|
|
50
58
|
private boot;
|
|
51
59
|
/** Start the drift and the pointer reactivity; returns what stops both. */
|
|
52
60
|
private animate;
|
|
53
|
-
|
|
61
|
+
/** Fit the canvas to a new box or pixel ratio and, when that cleared it, repaint at once. */
|
|
62
|
+
private resize;
|
|
63
|
+
/**
|
|
64
|
+
* Back the canvas for a `width` × `height` box, in CSS pixels, at the screen's
|
|
65
|
+
* pixel ratio. Returns whether anything changed: writing `canvas.width` clears
|
|
66
|
+
* the bitmap even to the value it already has, so an unchanged box is left alone.
|
|
67
|
+
*/
|
|
68
|
+
private fit;
|
|
54
69
|
private setLines;
|
|
55
70
|
private tick;
|
|
71
|
+
/** Put every point where the noise drifts it at `time`. */
|
|
72
|
+
private drift;
|
|
56
73
|
private movePoints;
|
|
57
74
|
private moved;
|
|
58
75
|
private drawLines;
|
|
@@ -1,26 +1,106 @@
|
|
|
1
1
|
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
|
|
2
|
+
import { WrChartLegendHarness } from "ngwr/charts/chart-legend/testing";
|
|
2
3
|
/** Narrows which `<wr-bar-chart>` a harness query matches. */
|
|
3
4
|
interface WrBarChartHarnessFilters extends BaseHarnessFilters {
|
|
4
|
-
/** Match a chart holding a bar with this label. */
|
|
5
|
+
/** Match a chart holding a bar — or, with `series`, a category — with this label. */
|
|
5
6
|
readonly barLabel?: string | RegExp;
|
|
7
|
+
/** Match the chart's accessible name. */
|
|
8
|
+
readonly ariaLabel?: string | RegExp;
|
|
6
9
|
}
|
|
7
10
|
/** One column, as the chart draws and announces it. */
|
|
8
11
|
interface WrBarChartBar {
|
|
9
|
-
/** The label printed under the column — decoration, and `aria-hidden`. */
|
|
12
|
+
/** The label printed under the column, or in the gutter lying down — decoration, and `aria-hidden`. */
|
|
10
13
|
readonly label: string;
|
|
11
|
-
/** The value printed
|
|
14
|
+
/** The value printed at the bar, or `null` when `showValues` is off. */
|
|
12
15
|
readonly value: string | null;
|
|
13
16
|
/** What the column announces: the label and the value in one string. */
|
|
14
17
|
readonly name: string | null;
|
|
15
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* How much of the value axis the bar covers, as a percentage of the whole axis: its
|
|
20
|
+
* height standing up, its length lying down (`orientation="horizontal"`). The bar runs
|
|
21
|
+
* from zero, so where zero is the axis minimum this is the bar's value as a percentage of
|
|
22
|
+
* the axis maximum; beside a line below zero the axis reaches further and the bar starts
|
|
23
|
+
* at {@link WrBarChartHarness.getZeroPercent}, ending that many points above it — or
|
|
24
|
+
* below it, for a negative bar beside `lines`.
|
|
25
|
+
*/
|
|
16
26
|
readonly heightPercent: number;
|
|
17
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* One bar of a chart drawn from `series`, as {@link WrBarChartHarness.getSeriesBars}
|
|
30
|
+
* reads it, in the order drawn: category by category, and within one in series order.
|
|
31
|
+
*/
|
|
32
|
+
interface WrBarChartSeriesBar {
|
|
33
|
+
/** The category the bar is in: the accessible name of the group round it. */
|
|
34
|
+
readonly category: string | null;
|
|
35
|
+
/** What the bar announces: its series' name and its own value, stacked or not. */
|
|
36
|
+
readonly name: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Where the bar starts along the value axis, as a percentage of the axis from its
|
|
39
|
+
* minimum: 0 at the bottom (or at inline start sideways), the zero line's own share
|
|
40
|
+
* for a bar standing on it, and a stacked bar's share where the pile under it ends.
|
|
41
|
+
*/
|
|
42
|
+
readonly startPercent: number;
|
|
43
|
+
/** How much of the value axis the bar covers, as a percentage of it. */
|
|
44
|
+
readonly sizePercent: number;
|
|
45
|
+
/** The colour the component wrote on the bar: its series' own, or the palette's. */
|
|
46
|
+
readonly color: string | null;
|
|
47
|
+
/** The `stroke-dasharray` of the bar's outline, `''` for a solid one. */
|
|
48
|
+
readonly dash: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* One row of the chart's data table (`dataTable`): the category it reads, as its row
|
|
52
|
+
* header, and one cell per column — each series shown, or `data`'s bars, then each line
|
|
53
|
+
* shown — in the order of the table's columns.
|
|
54
|
+
*/
|
|
55
|
+
interface WrBarChartTableRow {
|
|
56
|
+
/** The row header — the category's name. */
|
|
57
|
+
readonly header: string;
|
|
58
|
+
/**
|
|
59
|
+
* Each series' own value in that category — or the bar's, with `data` — then each line's,
|
|
60
|
+
* written as the tooltip writes it; `''` where it is missing.
|
|
61
|
+
*/
|
|
62
|
+
readonly cells: readonly string[];
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* One point of a line drawn from `lines`, as {@link WrBarChartHarnessLine.points} reads it,
|
|
66
|
+
* in category order.
|
|
67
|
+
*/
|
|
68
|
+
interface WrBarChartHarnessLinePoint {
|
|
69
|
+
/** What the point announces: its category's name and the line's value there. */
|
|
70
|
+
readonly name: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Where the point sits along the value axis, as a percentage of the axis from its
|
|
73
|
+
* minimum — the scale every series bar's {@link WrBarChartSeriesBar.startPercent} is on,
|
|
74
|
+
* and {@link WrBarChartHarness.getZeroPercent}, so a point and a bar can be held against
|
|
75
|
+
* each other: a `data` bar ends {@link WrBarChartBar.heightPercent} past zero. Read off the
|
|
76
|
+
* position the component wrote, whichever way the chart runs.
|
|
77
|
+
*/
|
|
78
|
+
readonly valuePercent: number;
|
|
79
|
+
}
|
|
80
|
+
/** One line drawn from `lines`, as {@link WrBarChartHarness.getLines} reads it. */
|
|
81
|
+
interface WrBarChartHarnessLine {
|
|
82
|
+
/** The line's name: the accessible name of the group its points are in. */
|
|
83
|
+
readonly label: string | null;
|
|
84
|
+
/** The colour the component painted the line's points with: its own, or the palette's. */
|
|
85
|
+
readonly color: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* The `stroke-dasharray` of the line's runs, `''` for a solid one — and `null` for a
|
|
88
|
+
* line drawn with no runs at all (only lone points), which has no dash to read.
|
|
89
|
+
*/
|
|
90
|
+
readonly dash: string | null;
|
|
91
|
+
/** The marker shape its points are drawn as: `circle`, `square`, `triangle`, … */
|
|
92
|
+
readonly marker: string | null;
|
|
93
|
+
/** How many straight runs the line is drawn in: one fewer than its points, less one for each break. */
|
|
94
|
+
readonly segmentCount: number;
|
|
95
|
+
/** Its points, in category order: a missing value has none. */
|
|
96
|
+
readonly points: readonly WrBarChartHarnessLinePoint[];
|
|
97
|
+
}
|
|
18
98
|
/**
|
|
19
99
|
* Test harness for `<wr-bar-chart>`.
|
|
20
100
|
*
|
|
21
|
-
* **The bars are read as PERCENTAGES, not as pixels.** Each bar's share of the
|
|
22
|
-
* chart's maximum
|
|
23
|
-
* here times 100, which is the one number that
|
|
101
|
+
* **The bars are read as PERCENTAGES, not as pixels.** Each bar's share of the value
|
|
102
|
+
* axis — of the chart's maximum, while zero is the axis minimum — is written inline, as
|
|
103
|
+
* its `flex-grow` from 0 to 1 and reported here times 100, which is the one number that
|
|
24
104
|
* survives a test with no layout — and it is also the component's whole job, since
|
|
25
105
|
* the maximum is either given or derived from the data. That share is read off the
|
|
26
106
|
* `style` ATTRIBUTE rather than through `getCssValue()`, and the difference is not
|
|
@@ -35,6 +115,24 @@ interface WrBarChartBar {
|
|
|
35
115
|
* {@link WrBarChartBar.label} is what is drawn. Asserting only the second would pass
|
|
36
116
|
* on a chart that announces nothing.
|
|
37
117
|
*
|
|
118
|
+
* **`data` and `series` are read by different methods**, because they draw different
|
|
119
|
+
* things. {@link getBars} reads the single-series columns and is `[]` for a chart drawn
|
|
120
|
+
* from `series`; {@link getSeriesBars} reads the series' bars — each with the category
|
|
121
|
+
* group it is in, its own name, and its place along the value axis as two percentages
|
|
122
|
+
* the component wrote inline — and is `[]` for a chart drawn from `data`. The labels,
|
|
123
|
+
* the plot height and the printed values read the same in both.
|
|
124
|
+
*
|
|
125
|
+
* **`lines` are read by {@link getLines}**, each with its points' names and their place
|
|
126
|
+
* along the value axis — on the same percentage scale as the bars', so a point and a bar
|
|
127
|
+
* can be held against each other — and {@link getLineCount} counts the lines drawn. A line
|
|
128
|
+
* below zero lifts the zero line every bar starts at, which {@link getZeroPercent} reads.
|
|
129
|
+
*
|
|
130
|
+
* **What it cannot read** is where anything lands: jsdom lays nothing out, so there is no
|
|
131
|
+
* method for a bar's pixels, for whether a name was ellipsised, or for which side of the
|
|
132
|
+
* plot the gutter sits on under RTL. {@link getOrientation} reads the orientation the
|
|
133
|
+
* component declared. The tooltip opens on a category's `mouseenter`, which a spec can
|
|
134
|
+
* dispatch, but what it SAYS is in the data table, which {@link getTableRows} reads.
|
|
135
|
+
*
|
|
38
136
|
* @example
|
|
39
137
|
* ```ts
|
|
40
138
|
* const chart = await loader.getHarness(WrBarChartHarness);
|
|
@@ -49,20 +147,43 @@ export declare class WrBarChartHarness extends ComponentHarness {
|
|
|
49
147
|
static hostSelector: string;
|
|
50
148
|
/** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
|
|
51
149
|
static with(options?: WrBarChartHarnessFilters): HarnessPredicate<WrBarChartHarness>;
|
|
52
|
-
/**
|
|
150
|
+
/** The chart's accessible name, on its plot: `ariaLabel`, or the catalog's "Bar chart". */
|
|
151
|
+
getAccessibleName(): Promise<string | null>;
|
|
152
|
+
/** Which way the bars run, as the component declared it on its host. */
|
|
153
|
+
getOrientation(): Promise<'vertical' | 'horizontal'>;
|
|
154
|
+
/** Whether the chart piles its series (`stacked`) — only ever true for a chart drawn from `series`. */
|
|
155
|
+
isStacked(): Promise<boolean>;
|
|
156
|
+
/** Every column, in data order. `[]` for a chart drawn from `series` — see {@link getSeriesBars}. */
|
|
53
157
|
getBars(): Promise<WrBarChartBar[]>;
|
|
54
158
|
/** Parse one bar's declared share. See the class note on why this is not `getCssValue()`. */
|
|
55
159
|
private static heightPercentOf;
|
|
56
|
-
/**
|
|
160
|
+
/**
|
|
161
|
+
* Where zero is along the value axis, as a percentage of the axis from its minimum: the
|
|
162
|
+
* line every bar starts at, read off the share the component wrote on the track. 0 until
|
|
163
|
+
* a value — a `series` bar, a line, or a `data` bar beside `lines` — goes below zero.
|
|
164
|
+
*
|
|
165
|
+
* Throws for a chart drawn from `data` standing up without `lines`, which draws no track:
|
|
166
|
+
* its bars always stand on the bottom of the plot, and answering 0 there would read the
|
|
167
|
+
* same for a chart that failed to write the share it does write everywhere else.
|
|
168
|
+
*/
|
|
169
|
+
getZeroPercent(): Promise<number>;
|
|
170
|
+
/** The category names the chart prints — under the columns, or in the gutter sideways — in order. */
|
|
57
171
|
getLabels(): Promise<string[]>;
|
|
58
|
-
/**
|
|
172
|
+
/**
|
|
173
|
+
* What each `data` column announces — the label and the value together. `[]` for a
|
|
174
|
+
* chart drawn from `series`, whose bars {@link getSeriesBars} reads, each with its own
|
|
175
|
+
* `name`.
|
|
176
|
+
*/
|
|
59
177
|
getAccessibleNames(): Promise<(string | null)[]>;
|
|
60
|
-
/** How many columns the chart drew
|
|
178
|
+
/** How many columns the chart drew from `data`. `0` for a chart drawn from `series`. */
|
|
61
179
|
getBarCount(): Promise<number>;
|
|
62
|
-
/** Whether
|
|
180
|
+
/** Whether values are printed at the bars (`showValues`). */
|
|
63
181
|
hasValues(): Promise<boolean>;
|
|
64
182
|
/**
|
|
65
|
-
* The plot's height in pixels, read off the `style` ATTRIBUTE
|
|
183
|
+
* The plot's height in pixels, read off the `style` ATTRIBUTE: the `height` the
|
|
184
|
+
* component wrote. Lying down (`orientation="horizontal"`) it is written as the plot's
|
|
185
|
+
* `min-height`, since rows that need more room grow the plot past it — and how far is
|
|
186
|
+
* layout, which this method does not read.
|
|
66
187
|
*
|
|
67
188
|
* NOT `getCssValue()`, which is `getComputedStyle()` — the same rule this
|
|
68
189
|
* file's class note already states and this method alone broke. A computed
|
|
@@ -73,5 +194,63 @@ export declare class WrBarChartHarness extends ComponentHarness {
|
|
|
73
194
|
* refuses.
|
|
74
195
|
*/
|
|
75
196
|
getPlotHeight(): Promise<number>;
|
|
197
|
+
/**
|
|
198
|
+
* Every bar a chart drawn from `series` draws, category by category and within one in
|
|
199
|
+
* series order: grouped, a bar per series shown with a value there; stacked, the same
|
|
200
|
+
* bars piled. A missing value draws none, and a hidden series none at all.
|
|
201
|
+
*
|
|
202
|
+
* The two percentages are read off the `style` ATTRIBUTE, the shares the component
|
|
203
|
+
* wrote, for the reason {@link getBars} reads its share there. A bar standing on zero
|
|
204
|
+
* starts at the zero line's own share, which moves up as soon as a value goes below
|
|
205
|
+
* zero — compare bars with each other, or with a chart whose values are all positive,
|
|
206
|
+
* where zero is the axis minimum.
|
|
207
|
+
*/
|
|
208
|
+
getSeriesBars(): Promise<WrBarChartSeriesBar[]>;
|
|
209
|
+
/**
|
|
210
|
+
* The values printed at the bars, in the order drawn: above each `data` column, or past
|
|
211
|
+
* the end of each series bar — a pile's total for each sign under `stacked`. `[]` with
|
|
212
|
+
* `showValues` off. The hidden copies the plot keeps its room from are not read.
|
|
213
|
+
*/
|
|
214
|
+
getValues(): Promise<string[]>;
|
|
215
|
+
/** How many of `lines` the chart draws: a hidden line draws nothing, so it is not counted. */
|
|
216
|
+
getLineCount(): Promise<number>;
|
|
217
|
+
/**
|
|
218
|
+
* Every line the chart draws, in the order of `lines`, hidden ones left out: its name,
|
|
219
|
+
* colour, dash and marker, how many runs it is drawn in, and its points, each with its
|
|
220
|
+
* name and its place along the value axis as a percentage the component wrote. A
|
|
221
|
+
* missing value has no point and breaks the line, which {@link WrBarChartHarnessLine.segmentCount}
|
|
222
|
+
* shows. `[]` for a chart without lines.
|
|
223
|
+
*/
|
|
224
|
+
getLines(): Promise<WrBarChartHarnessLine[]>;
|
|
225
|
+
/** Whether the legend is rendered (`series` or `lines`, and `showLegend`). */
|
|
226
|
+
hasLegend(): Promise<boolean>;
|
|
227
|
+
/**
|
|
228
|
+
* The legend, as a {@link WrChartLegendHarness}: each row's name, its key and its hidden
|
|
229
|
+
* state and, with `toggleableLegend`, the toggles that show and hide a series.
|
|
230
|
+
*
|
|
231
|
+
* Throws when the chart draws no legend (drawn from `data` without `lines`, or `showLegend` off) rather
|
|
232
|
+
* than answering with an empty one: {@link hasLegend} is the question for that.
|
|
233
|
+
*/
|
|
234
|
+
getLegendHarness(): Promise<WrChartLegendHarness>;
|
|
235
|
+
/** Whether the hidden data table is rendered (`dataTable`, with `series` or `data`). */
|
|
236
|
+
hasDataTable(): Promise<boolean>;
|
|
237
|
+
/**
|
|
238
|
+
* The data table's column headings: one per series shown — or one for `data`'s bars,
|
|
239
|
+
* "Value" (`barChart.value`) — then one per line shown, in order. Hidden series and lines
|
|
240
|
+
* leave the table.
|
|
241
|
+
*
|
|
242
|
+
* Throws when the chart renders no table rather than answering with no columns, which
|
|
243
|
+
* is also what a table of fully hidden series answers.
|
|
244
|
+
*/
|
|
245
|
+
getTableColumns(): Promise<string[]>;
|
|
246
|
+
/**
|
|
247
|
+
* The data table's rows, one per category: its name, each series' own value — or the
|
|
248
|
+
* bar's, with `data` — and each line's, as a screen reader walks them: stacked or not,
|
|
249
|
+
* and past a fixed `max` or not. A missing value is `''`.
|
|
250
|
+
*
|
|
251
|
+
* Throws when the chart renders no table, for the reason {@link getTableColumns} gives.
|
|
252
|
+
*/
|
|
253
|
+
getTableRows(): Promise<WrBarChartTableRow[]>;
|
|
254
|
+
private assertDataTable;
|
|
76
255
|
}
|
|
77
|
-
export type { WrBarChartBar, WrBarChartHarnessFilters };
|
|
256
|
+
export type { WrBarChartBar, WrBarChartHarnessFilters, WrBarChartHarnessLine, WrBarChartHarnessLinePoint, WrBarChartSeriesBar, WrBarChartTableRow };
|